You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by "Russell, Brian" <BR...@medplus.com> on 2010/10/06 20:23:51 UTC

Splitter Question

In addition to testing my clustered quartz configuration, I have the
following question...

I have a bean returning a java.util.List<CustomPOJO>  (see get_list
below).  I then try to use the <simple>body</simple> to route each
CustomPOJO.  See following...

<route id="route1">
	<from ref="quartz_scheduler" />
	<to ref="get_list" />
	<split>
		<simple>body</simple>
		<to ref="map_object" />
		<to ref="jms_queue" />
	</split>
</route>

It's not reaching the "map_object" bean endpoint.

Should this be working or am I misconfiguring something?

I am using camel 2.4.

Thanks.










Confidentiality Notice: The information contained in this electronic transmission is confidential and may be legally privileged. It is intended only for the addressee(s) named above. If you are not an intended recipient, be aware that any disclosure, copying, distribution or use of the information contained in this transmission is prohibited and may be unlawful. If you have received this transmission in error, please notify us by telephone (513) 229-5500 or by email (postmaster@MedPlus.com). After replying, please erase it from your computer system.




Re: Splitter Question

Posted by Claus Ibsen <cl...@gmail.com>.
I added an test which works
http://svn.apache.org/viewvc?rev=1005355&view=rev

Could you compare and also you can use the Tracer to see whats going on
http://camel.apache.org/tracer

On Wed, Oct 6, 2010 at 10:26 PM, Russell, Brian <BR...@medplus.com> wrote:
> Also, I assume the "map_object" bean would take CustomPOJO as the input parameter -- correct?
>
>
> -----Original Message-----
> From: Russell, Brian [mailto:BRussell@medplus.com]
> Sent: Wednesday, October 06, 2010 3:51 PM
> To: users@camel.apache.org
> Subject: RE: Splitter Question
>
> Thanks Claus.  I tried that also and still not working.  I verified the List coming out of my bean contains multiple CustomPOJO objects with values.
>
> I just wanted to make sure I am approaching this the correct way.
>
> Brian.
>
>
> -----Original Message-----
> From: Claus Ibsen [mailto:claus.ibsen@gmail.com]
> Sent: Wednesday, October 06, 2010 2:56 PM
> To: users@camel.apache.org
> Subject: Re: Splitter Question
>
> On Wed, Oct 6, 2010 at 8:23 PM, Russell, Brian <BR...@medplus.com> wrote:
>> In addition to testing my clustered quartz configuration, I have the
>> following question...
>>
>> I have a bean returning a java.util.List<CustomPOJO>  (see get_list
>> below).  I then try to use the <simple>body</simple> to route each
>> CustomPOJO.  See following...
>>
>> <route id="route1">
>>        <from ref="quartz_scheduler" />
>>        <to ref="get_list" />
>>        <split>
>>                <simple>body</simple>
>>                <to ref="map_object" />
>>                <to ref="jms_queue" />
>>        </split>
>> </route>
>>
>> It's not reaching the "map_object" bean endpoint.
>>
>> Should this be working or am I misconfiguring something?
>>
>> I am using camel 2.4.
>
> Can't remember if there was a bug/issue there when doing <simple>body</simple>
> You can try with <simple>${body}</simple>.
>
>>
>> Thanks.
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> Confidentiality Notice: The information contained in this electronic transmission is confidential and may be legally privileged. It is intended only for the addressee(s) named above. If you are not an intended recipient, be aware that any disclosure, copying, distribution or use of the information contained in this transmission is prohibited and may be unlawful. If you have received this transmission in error, please notify us by telephone (513) 229-5500 or by email (postmaster@MedPlus.com). After replying, please erase it from your computer system.
>>
>>
>>
>>
>
>
>
> --
> Claus Ibsen
> Apache Camel Committer
>
> Author of Camel in Action: http://www.manning.com/ibsen/
> Open Source Integration: http://fusesource.com
> Blog: http://davsclaus.blogspot.com/
> Twitter: http://twitter.com/davsclaus
>
>
>
>
>
>
>
>
>
>
> Confidentiality Notice: The information contained in this electronic transmission is confidential and may be legally privileged. It is intended only for the addressee(s) named above. If you are not an intended recipient, be aware that any disclosure, copying, distribution or use of the information contained in this transmission is prohibited and may be unlawful. If you have received this transmission in error, please notify us by telephone (513) 229-5500 or by email (postmaster@MedPlus.com). After replying, please erase it from your computer system.
>
>
>
>
>
>
>
>
>
>
>
>
>
> Confidentiality Notice: The information contained in this electronic transmission is confidential and may be legally privileged. It is intended only for the addressee(s) named above. If you are not an intended recipient, be aware that any disclosure, copying, distribution or use of the information contained in this transmission is prohibited and may be unlawful. If you have received this transmission in error, please notify us by telephone (513) 229-5500 or by email (postmaster@MedPlus.com). After replying, please erase it from your computer system.
>
>
>
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

RE: Splitter Question

Posted by "Russell, Brian" <BR...@medplus.com>.
Also, I assume the "map_object" bean would take CustomPOJO as the input parameter -- correct?


-----Original Message-----
From: Russell, Brian [mailto:BRussell@medplus.com] 
Sent: Wednesday, October 06, 2010 3:51 PM
To: users@camel.apache.org
Subject: RE: Splitter Question

Thanks Claus.  I tried that also and still not working.  I verified the List coming out of my bean contains multiple CustomPOJO objects with values.

I just wanted to make sure I am approaching this the correct way.

Brian.


-----Original Message-----
From: Claus Ibsen [mailto:claus.ibsen@gmail.com] 
Sent: Wednesday, October 06, 2010 2:56 PM
To: users@camel.apache.org
Subject: Re: Splitter Question

On Wed, Oct 6, 2010 at 8:23 PM, Russell, Brian <BR...@medplus.com> wrote:
> In addition to testing my clustered quartz configuration, I have the
> following question...
>
> I have a bean returning a java.util.List<CustomPOJO>  (see get_list
> below).  I then try to use the <simple>body</simple> to route each
> CustomPOJO.  See following...
>
> <route id="route1">
>        <from ref="quartz_scheduler" />
>        <to ref="get_list" />
>        <split>
>                <simple>body</simple>
>                <to ref="map_object" />
>                <to ref="jms_queue" />
>        </split>
> </route>
>
> It's not reaching the "map_object" bean endpoint.
>
> Should this be working or am I misconfiguring something?
>
> I am using camel 2.4.

Can't remember if there was a bug/issue there when doing <simple>body</simple>
You can try with <simple>${body}</simple>.

>
> Thanks.
>
>
>
>
>
>
>
>
>
>
> Confidentiality Notice: The information contained in this electronic transmission is confidential and may be legally privileged. It is intended only for the addressee(s) named above. If you are not an intended recipient, be aware that any disclosure, copying, distribution or use of the information contained in this transmission is prohibited and may be unlawful. If you have received this transmission in error, please notify us by telephone (513) 229-5500 or by email (postmaster@MedPlus.com). After replying, please erase it from your computer system.
>
>
>
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus










Confidentiality Notice: The information contained in this electronic transmission is confidential and may be legally privileged. It is intended only for the addressee(s) named above. If you are not an intended recipient, be aware that any disclosure, copying, distribution or use of the information contained in this transmission is prohibited and may be unlawful. If you have received this transmission in error, please notify us by telephone (513) 229-5500 or by email (postmaster@MedPlus.com). After replying, please erase it from your computer system.













Confidentiality Notice: The information contained in this electronic transmission is confidential and may be legally privileged. It is intended only for the addressee(s) named above. If you are not an intended recipient, be aware that any disclosure, copying, distribution or use of the information contained in this transmission is prohibited and may be unlawful. If you have received this transmission in error, please notify us by telephone (513) 229-5500 or by email (postmaster@MedPlus.com). After replying, please erase it from your computer system.




RE: Splitter Question

Posted by "Russell, Brian" <BR...@medplus.com>.
Thanks Claus.  I tried that also and still not working.  I verified the List coming out of my bean contains multiple CustomPOJO objects with values.

I just wanted to make sure I am approaching this the correct way.

Brian.


-----Original Message-----
From: Claus Ibsen [mailto:claus.ibsen@gmail.com] 
Sent: Wednesday, October 06, 2010 2:56 PM
To: users@camel.apache.org
Subject: Re: Splitter Question

On Wed, Oct 6, 2010 at 8:23 PM, Russell, Brian <BR...@medplus.com> wrote:
> In addition to testing my clustered quartz configuration, I have the
> following question...
>
> I have a bean returning a java.util.List<CustomPOJO>  (see get_list
> below).  I then try to use the <simple>body</simple> to route each
> CustomPOJO.  See following...
>
> <route id="route1">
>        <from ref="quartz_scheduler" />
>        <to ref="get_list" />
>        <split>
>                <simple>body</simple>
>                <to ref="map_object" />
>                <to ref="jms_queue" />
>        </split>
> </route>
>
> It's not reaching the "map_object" bean endpoint.
>
> Should this be working or am I misconfiguring something?
>
> I am using camel 2.4.

Can't remember if there was a bug/issue there when doing <simple>body</simple>
You can try with <simple>${body}</simple>.

>
> Thanks.
>
>
>
>
>
>
>
>
>
>
> Confidentiality Notice: The information contained in this electronic transmission is confidential and may be legally privileged. It is intended only for the addressee(s) named above. If you are not an intended recipient, be aware that any disclosure, copying, distribution or use of the information contained in this transmission is prohibited and may be unlawful. If you have received this transmission in error, please notify us by telephone (513) 229-5500 or by email (postmaster@MedPlus.com). After replying, please erase it from your computer system.
>
>
>
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus










Confidentiality Notice: The information contained in this electronic transmission is confidential and may be legally privileged. It is intended only for the addressee(s) named above. If you are not an intended recipient, be aware that any disclosure, copying, distribution or use of the information contained in this transmission is prohibited and may be unlawful. If you have received this transmission in error, please notify us by telephone (513) 229-5500 or by email (postmaster@MedPlus.com). After replying, please erase it from your computer system.




Re: Splitter Question

Posted by Claus Ibsen <cl...@gmail.com>.
On Wed, Oct 6, 2010 at 8:23 PM, Russell, Brian <BR...@medplus.com> wrote:
> In addition to testing my clustered quartz configuration, I have the
> following question...
>
> I have a bean returning a java.util.List<CustomPOJO>  (see get_list
> below).  I then try to use the <simple>body</simple> to route each
> CustomPOJO.  See following...
>
> <route id="route1">
>        <from ref="quartz_scheduler" />
>        <to ref="get_list" />
>        <split>
>                <simple>body</simple>
>                <to ref="map_object" />
>                <to ref="jms_queue" />
>        </split>
> </route>
>
> It's not reaching the "map_object" bean endpoint.
>
> Should this be working or am I misconfiguring something?
>
> I am using camel 2.4.

Can't remember if there was a bug/issue there when doing <simple>body</simple>
You can try with <simple>${body}</simple>.

>
> Thanks.
>
>
>
>
>
>
>
>
>
>
> Confidentiality Notice: The information contained in this electronic transmission is confidential and may be legally privileged. It is intended only for the addressee(s) named above. If you are not an intended recipient, be aware that any disclosure, copying, distribution or use of the information contained in this transmission is prohibited and may be unlawful. If you have received this transmission in error, please notify us by telephone (513) 229-5500 or by email (postmaster@MedPlus.com). After replying, please erase it from your computer system.
>
>
>
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus