1 10 11 package com.sun.enterprise.jbi.serviceengine.bridge; 12 13 import com.sun.enterprise.jbi.serviceengine.ServiceEngineException; 14 import com.sun.enterprise.jbi.serviceengine.core.ServiceEngineEndpoint; 15 import com.sun.enterprise.webservice.EjbRuntimeEndpointInfo; 16 import com.sun.enterprise.webservice.WebServiceEjbEndpointRegistry; 17 18 19 23 public class JAXRPCRuntimeEndpointHelper { 24 25 26 public JAXRPCRuntimeEndpointHelper() { 27 } 28 29 public static Object populateRuntimeInfo(ServiceEngineEndpoint endpt) 30 throws ServiceEngineException { 31 Object runtimeInfo = null; 32 if(endpt.isImplementedByEJB()) { 33 runtimeInfo = populateEjbRuntimeInfo(endpt); 34 } 37 38 return runtimeInfo; 39 } 40 41 private static Object populateEjbRuntimeInfo( 42 ServiceEngineEndpoint endpt) throws ServiceEngineException { 43 try { 44 WebServiceEjbEndpointRegistry registry = 45 WebServiceEjbEndpointRegistry.getRegistry(); 46 47 EjbRuntimeEndpointInfo ejbRtEndptInfo = 48 registry.getEjbWebServiceEndpoint(endpt.getURI(), "POST", null); 49 50 51 return ejbRtEndptInfo; 52 } catch(Exception e) { 53 throw new ServiceEngineException(e.getMessage()); 54 } 55 } 56 } 57 | Popular Tags |