-
1. Re: Is there any API or service in Jboss ESB to read from the Queue
somsathi Feb 27, 2013 2:37 AM (in response to somsathi)Like to be more specific,
here is my requirement.
I am placing a Message in the Queue using JMS Router of ESB after many operations (attaching my Jboss-esb.xml), now to read from the queue in which i have posted using JMS Router, is it possible to configure in the Jboss-esb.xml, using a built in class(if there is) of Jboss ESB, and expose it as a webservice.
<?
?>
<
"http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.0.1.xsd"
"http://www.w3.org/2001/XMLSchema-instance"
"http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.0.1.xsd http://anonsvn.jboss.org/repos/labs/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.0.1.xsd"
>
>
>
>
/>
>
>
/>
>
>
>
/>
/>
>
>
/>
/>
>
>
>
/>
>
>
/>
>
>
>
>
>
>
/>
/>
/>
/>
>
>
/>
>
/>
/>
>
>
>
<action name="testStore" class="org.jboss.soa.esb.actions.TestMessageStore"/>
>
>
>
>
/>
/>
>
>
>
>
>
/>
/>
/>
/>
/>
>
>
>
/>
>
>
>
>
/>
/>
/>
/>
/>
/>
/>
/>
>
<!-- The next action is for Continuous Integration testing -->
/>
>
>
>
</
>
-
2. Re: Is there any API or service in Jboss ESB to read from the Queue
tcunning Feb 27, 2013 9:53 AM (in response to somsathi)Sathya,
I'm a little confused by what you are trying to do here - JMSRouter can send messages to a queue, which you can then consume using something else (MDB, etc). If you want to send a message from one ESB service to another, there are better ways to do that (ServiceInvoker, StaticRouter, etc).
--Tom
-
3. Re: Is there any API or service in Jboss ESB to read from the Queue
jmiguel77 May 20, 2013 2:08 PM (in response to tcunning)Hi
I am using a JMSRouter to place a message on a queue, but in my mdb i am receiving this, in the message payload:
<Envelope><Header xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"><wsa:To>invm://6e446576656c6f7065722424242424242424242424245661636174696f6e205265717565737420526573706f6e73652053657276696365/false?false#10000</wsa:To><jbossesb:type xmlns:jbossesb="http://schemas.jboss.com/ws/2007/01/jbossesb">urn:jboss/esb/epr/type/invm</jbossesb:type><jbossesb:passByValue xmlns:jbossesb="http://schemas.jboss.com/ws/2007/01/jbossesb">false</jbossesb:passByValue><wsa:MessageID>25b13d75-cd96-4f8a-aaf6-d9a9f7f6f945</wsa:MessageID></Header><Context /><Body><Content><Key>cGlJZA==</Key><Value><marshalunmarshal><plugin-type>urn:xml/marshalunmarshal/plugin/serialization</plugin-type>rO0ABXNyAA5qYXZhLmxhbmcuTG9uZzuL5JDMjyPfAgABSgAFdmFsdWV4cgAQamF2YS5sYW5nLk51bWJlcoaslR0LlOCLAgAAeHAAAAAAAAAEUg==</marshalunmarshal></Value></Content><Content><Key>cmVxdWVzdElk</Key><Value><marshalunmarshal><plugin-type>urn:xml/marshalunmarshal/plugin/serialization</plugin-type>rO0ABXNyABFqYXZhLmxhbmcuSW50ZWdlchLioKT3gYc4AgABSQAFdmFsdWV4cgAQamF2YS5sYW5nLk51bWJlcoaslR0LlOCLAgAAeHAAAAAE</marshalunmarshal></Value></Content><Content><Key>cGlWZXJzaW9u</Key><Value><marshalunmarshal><plugin-type>urn:xml/marshalunmarshal/plugin/serialization</plugin-type>rO0ABXNyABFqYXZhLmxhbmcuSW50ZWdlchLioKT3gYc4AgABSQAFdmFsdWV4cgAQamF2YS5sYW5nLk51bWJlcoaslR0LlOCLAgAAeHAAAAAB</marshalunmarshal></Value></Content></Body><Attachment /><Properties><Property><Key>amJvc3MuZXNiOmNhdGVnb3J5PU1lc3NhZ2VDb3VudGVyLGRlcGxveW1lbnQ9VmFjYXRpb25SZXF1ZXN0UHJveHkuZXNiLHNlcnZpY2UtY2F0ZWdvcnk9bkRldmVsb3BlcixzZXJ2aWNlLW5hbWU9VmFjYXRpb24gUmVxdWVzdCBSZXNwb25zZSBTZXJ2aWNlVGltZQ==</Key><Value>rO0ABXNyAA5qYXZhLmxhbmcuTG9uZzuL5JDMjyPfAgABSgAFdmFsdWV4cgAQamF2YS5sYW5nLk51bWJlcoaslR0LlOCLAgAAeHAAAAAAAAYUjw==</Value></Property></Properties></Envelope>
In the documentation, it is mentioned that if i set the unwrap property of the JMRouter, to true, i could receive the deserialized info, but doing so i get an exception
What can i do to read the info in the mdb ??
JM