[jboss-dev-forums] [Design of JBoss ESB] - Re: Regarding JBoss ESB

mvecera@redhat.com do-not-reply at jboss.com
Wed Jun 25 09:08:18 EDT 2008


Regarding calling ESB services, there is class ServiceInvoker which does that. Try to find it in source code or documentation to see how it is used, but in general it is as follows:
Message esbMessage = MessageFactory.getInstance().getMessage();
  | Call call = new Call();
  | call.setMessageID(new URI(UUID.randomUUID().toString()));
  | esbMessage.getHeader().setCall(call);
  | esbMessage.getBody().add(text);
  | new ServiceInvoker(category, name).deliverAsync(esbMessage);


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4160542#4160542

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4160542



More information about the jboss-dev-forums mailing list