Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note that only sendSync is allowed for active JBI exchanges (but you have to use send for DONE or ERROR status exchanges).

You can also use the client api:

Code Block
langjava

public void myMethod() {
  ServiceMixClient client = new DefaultServiceMixClient(this.context);
  QName service = new QName("http://servicemix.org/cheese/", "receiver");
  EndpointResolver resolver = client.createResolverForService(service);
  client.send(resolver, null, null, "<hello>world</hello>");
}