|
Key
This line was removed.
This word was removed. This word was added.
This line was added.
|
Changes (7)
View Page HistoryWhen developing with Maven, the pom.xml file must contains the following kind of declarations:
{code:lang=xml}
{code:lang=xml}
<!-- ... -->
+ jbi.xml
+ service.wsdl (none, one or several)
+ service.wsdl (none, one or several)
+ java/.../MyRoutes.java (none, one or several)
+ resources/myroutes.xml (none, one or several)
{noformat}
{noformat}
</jbi:consumes>
<!-- These are found in the jar packaged by Maven and included in the JBI Zip -->
<petals-se-camel:routes>
<petals-se-camel:xml-file>routes.xml</petals-se-camel:xml-file>
<petals-se-camel:xml-file>routes.xml</petals-se-camel:xml-file>
In these two snippets, the important parts are the elements with the namespace URI {{[http://petals.ow2.org/components/petals-se-camel/jbi/version-1.0]}} for the JBI and {{[http://petals.ow2.org/components/petals-se-camel/wsdl/version-1.0]}} for the WSDL.
The first one enables to define the service id for a consumes in the JBI: notice that the consumes must also have a MEP (or a default one (imposed by the Camel SE) is used, that is InOut) and an operation set.
The second one enables to define the service id for the operation of a provides in the binding section of the WSDL definition: again the operation must have an MEP set (or the default one (imposed by the WSDL specification) is used, that is Inout).
Finally, the *services* section of the JBI contains a list of routes to be loaded by the Camel SE.
Nevertheless, it is possible to force synchronous execution:
- of a whole route either by adding the *synchronous* argument to the Camel *from* URI, or
- of a service invocation when calling an external petals services using a *to* with the same argument.
It is also possible to have a timeout (both for synchronous and asynchronous mode) to specify how long we should wait before failing a service invocation done with *to* by using the *timeout* option.
Note: by default, it will use the value specified in the JBI consumes section and as usual, the value *0* means no timeout.