Petals-SE-JSR181

compared with
Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (5)

View Page History

If you want more details about jsr181, you can consult this the specification on the Java Community Process portal : [http://jcp.org/en/jsr/detail?id=181|http://jcp.org/en/jsr/detail?id=181]

{column}
{column:width=350px}
* The JBI Message Exchange Pattern (MEP) is compatible with the target operation. For example, in the previous code snippet, an InOut MEP is not compatible with the 'voidvoid' operation and an error will be returned in the JBI message exchange.

With the previous code samples, you can now call the _\{__[http://petals.ow2.org/helloworld]__}HelloworldService_ and operation _sayHello_ with an InOut MEP with a JBI message payload like :
{code:lang=xml}<sayHello>
<param0>Hey!!!</param0>
{code}
and you will get a response like :
{code:lang=xml}<dlwmin:sayHelloResponse
xmlns:dlwmin="http://petals.ow2.org"
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<return>You say me Hey!!!</return>
</dlwmin:sayHelloResponse>
{code}

h1. Samples

The jsr181 service engine samples are available as use cases section. You can find them in the project sources repository.

We recommend you to check this source code to create the JSR181 class and the Service Unit.

h1. Limitations

# The WSDL description is not dynamically generated from the Java class at runtime. This is due to an Axis2 and Petals ESB class loader issue. You can find an example on how to generate and include the WSDL description from the Java class with some
Maven2 plugins in the usecases related to this component.
# The JBI Component Context is not available on the POJO so you can not access to the JBI Delivery Channel to do some light orchestration. This feature will be added soon \!