Split object

View: New views
5 Messages — Rating Filter:   Alert me  

Split object

by David Borja-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi mule users!!

I need to split an object to send its parts to diferents endpoints ...

For example, i have the following object:

public class Order{

     private Patient patient;
     private Medic medic;
     private List<Exam> exams;
    

     /*get/set methods ... */


}

I need that the patient object be sent to a endpoint, the medic object be sent to another endpoint, and the exams list be sent to another endpoint ...

How can i do it??

Thanx in advance

Re: Split object

by Andrew Perepelytsya :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Take a look at JXPathExtractor for starters.

Andrew

On Tue, Jul 22, 2008 at 5:50 PM, David Borja <adborja@...> wrote:
Hi mule users!!

I need to split an object to send its parts to diferents endpoints ...

For example, i have the following object:

public class Order{

     private Patient patient;
     private Medic medic;
     private List<Exam> exams;
    

     /*get/set methods ... */


}

I need that the patient object be sent to a endpoint, the medic object be sent to another endpoint, and the exams list be sent to another endpoint ...

How can i do it??

Thanx in advance


Re: Split object

by David Borja-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Andrew ...

Mule 2.x supports JXPathExtractor??



On Tue, Jul 22, 2008 at 8:48 PM, Andrew Perepelytsya <aperepel@...> wrote:
Take a look at JXPathExtractor for starters.

Andrew


On Tue, Jul 22, 2008 at 5:50 PM, David Borja <adborja@...> wrote:
Hi mule users!!

I need to split an object to send its parts to diferents endpoints ...

For example, i have the following object:

public class Order{

     private Patient patient;
     private Medic medic;
     private List<Exam> exams;
    

     /*get/set methods ... */


}

I need that the patient object be sent to a endpoint, the medic object be sent to another endpoint, and the exams list be sent to another endpoint ...

How can i do it??

Thanx in advance



Re: Split object

by Andrew Perepelytsya :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

http://mule.mulesource.org/display/MULE2USER/XML+Module#XMLModule-xmljxpathextractortransformer

Note that jxpath works on java objects too, not only xml.

Andrew

On Wed, Jul 23, 2008 at 8:48 AM, David Borja <adborja@...> wrote:
Hi Andrew ...

Mule 2.x supports JXPathExtractor??




On Tue, Jul 22, 2008 at 8:48 PM, Andrew Perepelytsya <aperepel@...> wrote:
Take a look at JXPathExtractor for starters.

Andrew


On Tue, Jul 22, 2008 at 5:50 PM, David Borja <adborja@...> wrote:
Hi mule users!!

I need to split an object to send its parts to diferents endpoints ...

For example, i have the following object:

public class Order{

     private Patient patient;
     private Medic medic;
     private List<Exam> exams;
    

     /*get/set methods ... */


}

I need that the patient object be sent to a endpoint, the medic object be sent to another endpoint, and the exams list be sent to another endpoint ...

How can i do it??

Thanx in advance




Re: Split object

by Maurice Zeijen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You could also take a look at Smooks for Mule. It has a Router which can split your Java Object and send the parts to different endpoints.

http://www.mulesource.org/display/SMOOKS/Home

Maurice

On Wed, Jul 23, 2008 at 4:55 PM, Andrew Perepelytsya <aperepel@...> wrote:
http://mule.mulesource.org/display/MULE2USER/XML+Module#XMLModule-xmljxpathextractortransformer

Note that jxpath works on java objects too, not only xml.

Andrew


On Wed, Jul 23, 2008 at 8:48 AM, David Borja <adborja@...> wrote:
Hi Andrew ...

Mule 2.x supports JXPathExtractor??




On Tue, Jul 22, 2008 at 8:48 PM, Andrew Perepelytsya <aperepel@...> wrote:
Take a look at JXPathExtractor for starters.

Andrew


On Tue, Jul 22, 2008 at 5:50 PM, David Borja <adborja@...> wrote:
Hi mule users!!

I need to split an object to send its parts to diferents endpoints ...

For example, i have the following object:

public class Order{

     private Patient patient;
     private Medic medic;
     private List<Exam> exams;
    

     /*get/set methods ... */


}

I need that the patient object be sent to a endpoint, the medic object be sent to another endpoint, and the exams list be sent to another endpoint ...

How can i do it??

Thanx in advance




LightInTheBox - Buy quality products at wholesale price