EJB mediator calls an external Enterprise JavaBean(EJB) and stores the result in the message payload or in a message context property. Currently, this mediator supports EJB3 Stateless Session Beans and Stateful Session Bean
<bean action="CREATE | REMOVE | SET_PROPERTY | GET_PROPERTY" var="string" [class="string"] [property="string"] [value="string | {xpath}"] />
Bean specific options
Bean mediator field descriptions,
Field name | Description |
Class | Bean talks manager uses this class which is defined here to perform actions such as (CREATE/GET_PROPERTY/SET_PROPERTY/REMOVE) |
Action | This defines the action which suppose to be perfomed for the variable such as (CREATE/GET_PROPERTY/SET_PROPERTY/REMOVE) |
Var | Instance name of the decalred variable for the given class |
Value | This section uses to assign variable based on the action setup (GET_PROPERTY/SET_PROPERTY) Expression/Value |
Target | Will be assign to defined property name Expression/Value. |
<bean action="CREATE" var="loc" class="org.ejb.wso2.test.bean.Location"/> <bean xmlns:ns="http://org.apache.synapse/xsd" xmlns:ns3="http://org.apache.synapse/xsd" action="SET_PROPERTY" var="loc" property="latitude" value="{//latitude}"/> <bean xmlns:ns="http://org.apache.synapse/xsd" xmlns:ns3="http://org.apache.synapse/xsd" action="SET_PROPERTY" var="loc" property="longitude" value="{//longitude}"/>