You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by gilboy <jo...@gmail.com> on 2014/02/03 23:36:05 UTC

JMS Component Query

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

Posted by Claus Ibsen <cl...@gmail.com>.
On Tue, Feb 4, 2014 at 3:49 PM, gilboy <jo...@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: cibsen@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

Re: JMS Component Query

Posted by gilboy <jo...@gmail.com>.
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

Posted by Claus Ibsen <cl...@gmail.com>.
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 <jo...@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: cibsen@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