THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
To make it simpler to use as an end user, we've created a JBI Client API which makes it easy to work with any JBI container and other JBI components.
The JavaDoc is probably self evident for many things, especially if you are aware of the JBI APIs. There is an example test case which shows many of these APIs in action.
...
Code Block |
---|
// optional endpoint resolution
EndpointResolver resolver = client.createResolverForService(service);
Map properties = new HashMap();
properties.put("name", "James");
Object response = client.request(resolver, null, properties, "<hello>world</hello>");
|
...
Wiki Markup |
---|
{snippet:id=client|lang=xml|url=http://svn.apache.org/repos/asf/incubator/servicemix/trunk/servicemix-core/src/test/resources/org/apache/servicemix/client/example.xml} |
...
Wiki Markup |
---|
{snippet:id=clientroute|lang=xml|url=http://svn.apache.org/repos/asf/incubator/servicemix/trunk/servicemix-core/src/test/resources/org/apache/servicemix/client/example.xml} |