Effective October 27, 2012, online and email support for FuseSource products will move to Red Hat support channels. For more information, please see the JIRA Migration to Red Hat FAQ.
As of October 27th, please open all new issues in the Red Hat Customer Portal .
Issue Details (XML | Word | Printable)

Key: MR-414
Type: Support Request Support Request
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Torsten Mielke
Reporter: Lowry Curry
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
FUSE Mediation Router

routing from activemq JMS to CXF web service

Created: 03/Feb/11 02:59 AM   Updated: 10/Feb/11 02:17 PM
Component/s: None
Affects Version/s: 2.4.0-fuse-02-00
Fix Version/s: None

Environment: all


 Description  « Hide
I need a camel route that receives a one-way JMS message, modifies the message so that its suitable for the destination web service, then invokes the external web service.
I'm thinking the following (pseudo) route could do the trick.

<camelContext xmlns="http://camel.apache.org/schema/spring">
<route>
<from uri="activemq:queue:requestQueue"/>
<bean ref="myProcessor" method="process"/>
<to uri="cxf:bean:serviceEndpoint"/>
</route>
</camelContext>

What i'm not clear on is this the best approach? Will the myProcess step be able to transform the jms message into a payload suitable for the cxf producer endpoint? What will the process() method use - wsdl2java/jaxb object perhaps? - as the argument to setBody() on message before it goes to the cxf producer endpoint?
I can imagine an alternative approach would be for the myProcessor bean to hold on to a CXF client-side proxy (set via Spring injection) and invoke on that. That way i could just use the JAX-WS / JAXB object model to map and populate the outgoing request from the content of the JMS message.
Thoughts? Have u seen this done and/or any sample code?



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Torsten Mielke made changes - 03/Feb/11 01:41 PM
Field Original Value New Value
Assignee Torsten Mielke [ tmielke ]
Torsten Mielke made changes - 10/Feb/11 02:17 PM
Status Open [ 1 ] Closed [ 6 ]
Resolution Fixed [ 1 ]