Skip to content

Instantly share code, notes, and snippets.

@edgars
Created September 17, 2009 20:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edgars/188685 to your computer and use it in GitHub Desktop.
Save edgars/188685 to your computer and use it in GitHub Desktop.
public Message setup(Message message) {
String msgBody = (String) message.getBody().get();
System.out.println("Conteudo: " + msgBody);
HashMap requestMap = new HashMap();
// add paramaters to the web service request map
requestMap.put("Entrada", msgBody);
// The "paramsLocation" property was set in jboss-esb.xml to
// "helloworld-request-parameters"
message.getBody().add(requestMap);
System.out.println("Request map is: " + requestMap.toString());
return message;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment