THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
provided that the JBI message contains an attachment named "binary".
Accessing the JBI exchange
Some times, while processing the incoming request, you need to access the underlying JBI exchange.
It can be done using the following code snippet:
Code Block | ||
---|---|---|
| ||
public String echo(String msg, DataHandler binary) {
...
MessageExchange exchange = org.apache.servicemix.jsr181.JBIContext.getMessageExchange();
...
}
|