Search in sources :

Example 1 with TwoChannelAxisOperation

use of org.apache.axis2.description.TwoChannelAxisOperation in project carbon-business-process by wso2.

the class BPELProcessProxy method createMessageExchange.

private MyRoleMessageExchange createMessageExchange(final MessageContext inMessageContext) {
    Integer tenantId = PrivilegedCarbonContext.getThreadLocalCarbonContext().getTenantId();
    MyRoleMessageExchange messageExchange;
    String messageId = new GUID().toString();
    messageExchange = odeBpelServer.getEngine().createMessageExchange("" + messageId, serviceName, inMessageContext.getAxisOperation().getName().getLocalPart(), null, tenantId.toString());
    if (log.isDebugEnabled()) {
        log.debug("ODE routed to portType " + messageExchange.getPortType() + " operation " + messageExchange.getOperation() + " from service " + serviceName);
    }
    messageExchange.setProperty("isTwoWay", Boolean.toString(inMessageContext.getAxisOperation() instanceof TwoChannelAxisOperation));
    return messageExchange;
}
Also used : MyRoleMessageExchange(org.apache.ode.bpel.iapi.MyRoleMessageExchange) TwoChannelAxisOperation(org.apache.axis2.description.TwoChannelAxisOperation) GUID(org.apache.ode.utils.GUID)

Aggregations

TwoChannelAxisOperation (org.apache.axis2.description.TwoChannelAxisOperation)1 MyRoleMessageExchange (org.apache.ode.bpel.iapi.MyRoleMessageExchange)1 GUID (org.apache.ode.utils.GUID)1