コード例 #1
0
 private static boolean isPortJbiEnabled(ServiceRefPortInfo portInfo) {
   if (portInfo != null) {
     String value = portInfo.getStubPropertyValue(JBI_ENABLED);
     logger.log(Level.FINEST, "JBI_ENABLED flag value is : " + value);
     return "true".equals(value);
   } else {
     // This means the deployer did not resolve the port to
     // which this SEI is mapped, return false;
   }
   return false;
 }
コード例 #2
0
 public static void setJBITransportFactory(
     ServiceRefPortInfo portInfo, Object stubObj, boolean jbiEnabled) {
   if (isServiceEngineEnabled()) {
     ServiceReferenceDescriptor serviceRef = portInfo.getServiceReference();
     if (serviceRef != null && stubObj != null) {
       if (isServiceEngineEnabled() && jbiEnabled && serviceRef.getMappingFileUri() != null) {
         setTransportFactory((com.sun.xml.rpc.spi.runtime.StubBase) stubObj, portInfo);
       }
     }
   } else {
     logger.log(Level.INFO, "Java EE Service Engine's functionality is disabled");
   }
 }