Re: Routing based on exchange IN message body clas

2011-04-19 Thread Claus Ibsen
s.getName' work? What are the > limitations in allowed return types of a method? > AFAIR the methods from java.lang.Object is omitted by Camel. > -- > View this message in context: > http://camel.465427.n5.nabble.com/Routing-based-on-exchange-IN-message-body-clas-tp4313282p

Re: Routing based on exchange IN message body clas

2011-04-19 Thread Gert Villemos
thod? -- View this message in context: http://camel.465427.n5.nabble.com/Routing-based-on-exchange-IN-message-body-clas-tp4313282p4313626.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Routing based on exchange IN message body clas

2011-04-19 Thread Romain Manni-Bucau
ethods > returning String from base classes works fine. > > Is there any way around this limitation? Do I need to tell 'Simple' what > type is returned from getClass? > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Routing-based-on-exchange-IN-

Re: Routing based on exchange IN message body clas

2011-04-19 Thread Claus Ibsen
sor method on my class and then the route > works. It only seem because the getClass is an inherited method, or maybe > because it doesnt return a string but that is not what the exception states. > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Routi

Re: Routing based on exchange IN message body clas

2011-04-19 Thread Gert Villemos
m getClass? -- View this message in context: http://camel.465427.n5.nabble.com/Routing-based-on-exchange-IN-message-body-clas-tp4313282p4313604.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Routing based on exchange IN message body clas

2011-04-19 Thread Gert Villemos
or method on my class and then the route works. It only seem because the getClass is an inherited method, or maybe because it doesnt return a string but that is not what the exception states. -- View this message in context: http://camel.465427.n5.nabble.com/Routing-based-on-exchange-IN-message-bo

Re: Routing based on exchange IN message body clas

2011-04-19 Thread Romain Manni-Bucau
same solution: http://camel.apache.org/content-based-router.html 2011/4/19 Gert Villemos > ... and if I'm using the Spring annotation, i.e. XML? > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Routing-based-on-exchange-IN-message-body-clas-tp

Re: Routing based on exchange IN message body clas

2011-04-19 Thread Gert Villemos
... and if I'm using the Spring annotation, i.e. XML? -- View this message in context: http://camel.465427.n5.nabble.com/Routing-based-on-exchange-IN-message-body-clas-tp4313282p4313325.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Routing based on exchange IN message body clas

2011-04-19 Thread Romain Manni-Bucau
de > and hoped that this was possible by default Camel. > > Is it? > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Routing-based-on-exchange-IN-message-body-clas-tp4313282p4313282.html > Sent from the Camel - Users mailing list archive at Nabble.com. >

Routing based on exchange IN message body clas

2011-04-19 Thread Gert Villemos
then route based on this header field. I just hate creating redundant code and hoped that this was possible by default Camel. Is it? -- View this message in context: http://camel.465427.n5.nabble.com/Routing-based-on-exchange-IN-message-body-clas-tp4313282p4313282.html Sent from the Camel - Use