if(hasRegisteredEndpointInJBI(facade, context))
return createJBITransportPipe(facade, context);
return null;
}
NameValuePairDescriptor stubProp =
portInfo.getStubPropertyByName("jbi-enabled");
// In a composite application jbi-enabled flag can be used to override
// the client routing logic
if(stubProp == null) {
if(hasRegisteredEndpointInJBI(facade, context))
return createJBITransportPipe(facade, context);
return null;
}
String jbi_enabled = stubProp.getValue();
if(jbi_enabled.equalsIgnoreCase("true")) {
return createJBITransportPipe(facade, context);
}
return null;