1 Reply Latest reply: Apr 12, 2012 1:37 AM by Magesh Bojan RSS

JBoss ESB Webservice Lookup

mpriess Newbie

Hi,

 

I'm using JBoss ESB 4.10 and like to get some additional information to enrich my message. To recieve the additional informations I have to do a Webservice call.

 

For example I have a foo message, but I need to send a bar message object to the webservice, which enrich my foo message in the next step.

If I understand JBoss ESB right, the message body is routed through each action. How can I do lookup without loosing my foo object.

 

Regards,

 

Michael

  • 1. Re: JBoss ESB Webservice Lookup
    Magesh Bojan Master

    Hi Michael,

     

    Have a look at the org.jboss.soa.esb.message.Body interface. You can use add method to replace the body contents or add extra items to different locations of the Message body.

    Object foo = message.getBody().get();
    message.getBody().add("foo", foo);
    
    message.getBody().add(bar);