...
ServiceMix jsr181 component is a JBI Service Engine exposing (annotated) POJO as services on the JBI Bus.
It uses xfire internally to perform service invocations and xml marshaling.
Features:
- no annotations
- jsr181 annotations
- commons-attributes annotations
- aegis binding
- jaxb2 binding
- xmlbeans binding
Installation
Installing the servicemix-http component can be done in several ways:
- drop the installer zip in an hotdeploy directory monitored by ServiceMix
- using ant tasks
Note that when using ant tasks, the component is not started, you will have to start it manually using ant tasks or a console.
Configuration
Several parameters can be configured using a JMX console.
Info | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
of total simulatenous connections | 256 | |
XBean deployment
You can deploy Service Units containing a file named xbean.xml for activating consumer and provider endpoints.
This xml file should respect the given syntax, though this is a spring based xml configuration file from where all beans of class Jsr181Endpoint are retrieved.
See a full example here. Note that you have to define the http namespace with
Code Block | ||||
---|---|---|---|---|
| ||||
<beans xmlns:jsr181="http://servicemix.apache.org/jsr181/1.0">
...
</beans>
|
Any numbers of endpoints can be specified in the xbean.xml file.