Re: JMS Component Query

2014-02-04 Thread gilboy
Thanks for the response

I tried that, i.e. changed my domain object to not implement Serializable
and set jmsMessageType=Object in the JMS Endpoint but I get the following
error:

 javax.jms.MessageFormatException: No type converter available to convert
from type: com.fmrco.ptd.domain.BlockVO to the required type:
java.io.Serializable with value BlockVO

Thanks
Joe



--
View this message in context: 
http://camel.465427.n5.nabble.com/JMS-Component-Query-tp5746751p5746790.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: JMS Component Query

2014-02-04 Thread Claus Ibsen
On Tue, Feb 4, 2014 at 3:49 PM, gilboy josephoto...@gmail.com wrote:
 Thanks for the response

 I tried that, i.e. changed my domain object to not implement Serializable
 and set jmsMessageType=Object in the JMS Endpoint but I get the following
 error:

  javax.jms.MessageFormatException: No type converter available to convert
 from type: com.fmrco.ptd.domain.BlockVO to the required type:
 java.io.Serializable with value BlockVO


Ah yeah when you use that JMS message type, then the data needs to be
serialized over the network.
And therefore needs to be serializable - either impl that interface,
or do it a bit manually with Externalizable



 Thanks
 Joe



 --
 View this message in context: 
 http://camel.465427.n5.nabble.com/JMS-Component-Query-tp5746751p5746790.html
 Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-
Red Hat, Inc.
Email: cib...@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
Make your Camel applications look hawt, try: http://hawt.io


JMS Component Query

2014-02-03 Thread gilboy
Hi

I have a route which is placing messages on to a JMS Queue. The JMS Message
Type is ObjectMessage. Rather than having the IN Message Type implement
Serializable is there any way in the DSL that I can specify the JMS Message
Type. 

The object(IN Message Type) is a Domain Object and I would prefer not to
have it implement Serializable

Thanks in advance
Joe



--
View this message in context: 
http://camel.465427.n5.nabble.com/JMS-Component-Query-tp5746751.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: JMS Component Query

2014-02-03 Thread Claus Ibsen
There is the jmsMessageType option you can set on the jms endpoint
http://camel.apache.org/jms

On Mon, Feb 3, 2014 at 11:36 PM, gilboy josephoto...@gmail.com wrote:
 Hi

 I have a route which is placing messages on to a JMS Queue. The JMS Message
 Type is ObjectMessage. Rather than having the IN Message Type implement
 Serializable is there any way in the DSL that I can specify the JMS Message
 Type.

 The object(IN Message Type) is a Domain Object and I would prefer not to
 have it implement Serializable

 Thanks in advance
 Joe



 --
 View this message in context: 
 http://camel.465427.n5.nabble.com/JMS-Component-Query-tp5746751.html
 Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-
Red Hat, Inc.
Email: cib...@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
Make your Camel applications look hawt, try: http://hawt.io