...
Code Block | ||||
---|---|---|---|---|
| ||||
<ejb beanstalk="jack" class="org.ejb.wso2.test.StoreRegister" method="getStoreById" target="store" jndiName="ejb:/EJBDemo/StoreRegsiterBean!org.ejb.wso2.test.StoreRegister"> <args> <arg xmlns:ns="http://org.apache.synapse/xsd" xmlns:ns3="http://org.apache.synapse/xsd" value="{get-property('loc_id')}"/> </args> </ejb> |
In this example, the Callout EJB Mediator does the direct EJB service invocation to the StockQuoteService
using the client request, get the response and set it as the first child of the SOAP message body. Then using the Send Mediator, the message is sent back to the clientby getStoreById pubished at the application server and exposed via ejb:/EJBDemo/StoreRegsiterBean!org.ejb.wso2.test.StoreRegister,
then response will be assigned to the target specified (variable/expression).
Excerpt | ||
---|---|---|
| ||
Description of the EJB Mediator in WSO2 ESB. |