camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <willem.ji...@gmail.com>
Subject Re: WS -->JMS --> WS says RuntimeException
Date Mon, 17 Jan 2011 12:06:17 GMT
On 1/16/11 12:54 PM, Bill wrote:
>
> Hello,
> It's the defalut dataFormat (POJO), so throws an exception.
> but when I set the dataFormat = PAYLOAD , it  warns "Cannot determine
> specific JmsMessage type to use from body class. Will use generic
> JmsMessage."  and i recived an ActiveMQMessage.
> when I set the dataFormat = MESSAGE , I recived an byteMessage , and I
> cann't read the soap context from it.
>
> what i want it's send the soap context to the JMS.
>
> my route is set like this :
> from("cxf:bean:orderEndpoint").to("jms:dataQueue");
>
> and I have another question: my ws client send a request to the proxy
> webservice,I don't know how to set the reply to the client. and the client
> always get the SoapFault: The OUT message was not received within: 20000
> millis ..
> I try to process the exchange :  exchange.getOut.setBody("") , but it
> doesn't work.
Does the jms endpoint will send the response back ?
If not, you need to change the message exchange pattern to InOnly like this.

from("cxf:bean:orderEndpoint").InOnly().to("jms:dataQueue").InOut().to("cxf:bean:real").


>
> where I can find the sample like this.
> Thank you.


-- 
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
          http://jnn.javaeye.com (Chinese)
Twitter: willemjiang

Mime
View raw message