public Class getServiceEndpointInterface() { return getDeploymentInfo().getServiceEndpointInterface(); }
@ManagedAttribute @Description("The service endpoint interface") public String getServiceEndpointInterface() { return beanContext.getServiceEndpointInterface().getName(); }
@ManagedAttribute @Description("The service endpoint interface") public String getServiceEndpointInterface() { return beanContext.getServiceEndpointInterface().getName(); }
/** * This ManagedBean is added to all EjbModules to effectively * create a sharable "comp" namespace which can be used in * for components with undefined namespace such as CDI */ public static class Comp { public static String openejbCompName(final String module) { return module + "." + Comp.class.getSimpleName(); } }
/** * This ManagedBean is added to all EjbModules to effectively * create a sharable "comp" namespace which can be used in * for components with undefined namespace such as CDI */ public static class Comp { public static String openejbCompName(final String module) { return module + "." + Comp.class.getSimpleName(); } }
if (info.getServiceEndpointInterface() != null) { methods.addAll(exclude(beanMethods, info.getServiceEndpointInterface().getMethods()));
if (info.getServiceEndpointInterface() != null) { methods.addAll(exclude(beanMethods, info.getServiceEndpointInterface().getMethods()));
methods.addAll(matchingMethods(methodInfo, beanContext.getServiceEndpointInterface()));
methods.addAll(matchingMethods(methodInfo, beanContext.getServiceEndpointInterface()));
methods.addAll(matchingMethods(methodInfo, beanContext.getServiceEndpointInterface()));
methods.addAll(matchingMethods(methodInfo, beanContext.getServiceEndpointInterface()));
@Override protected HttpListener createEjbWsContainer(final URL url, final PortData port, final BeanContext beanContext, final ServiceConfiguration serviceInfos) throws Exception { final ClassLoader classLoader = beanContext.getClassLoader(); // todo build JaxRpcServiceInfo in assembler final JaxRpcServiceInfo serviceInfo = getJaxRpcServiceInfo(classLoader); // Build java service descriptor final JavaServiceDescBuilder javaServiceDescBuilder = new JavaServiceDescBuilder(serviceInfo, classLoader); final JavaServiceDesc serviceDesc = javaServiceDescBuilder.createServiceDesc(); // Create service final RPCProvider provider = new EjbRpcProvider(beanContext, createHandlerInfos(port.getHandlerChains())); final SOAPService service = new SOAPService(null, provider, null); service.setServiceDescription(serviceDesc); // Set class name service.setOption("className", beanContext.getServiceEndpointInterface().getName()); serviceDesc.setImplClass(beanContext.getServiceEndpointInterface()); // Create container final AxisWsContainer container = new AxisWsContainer(port.getWsdlUrl(), service, null, classLoader); wsContainers.put(beanContext.getDeploymentID().toString(), container); return container; }
public Class getInterface(final InterfaceType interfaceType) { switch (interfaceType) { case EJB_HOME: return getHomeInterface(); case EJB_OBJECT: return getRemoteInterface(); case EJB_LOCAL_HOME: return getLocalHomeInterface(); case EJB_LOCAL: return getLocalInterface(); case BUSINESS_LOCAL: return getBusinessLocalInterface(); case BUSINESS_REMOTE: return getBusinessRemoteInterface(); case TIMEOUT: return BeanContext.Timeout.class; case BUSINESS_REMOTE_HOME: return BeanContext.BusinessRemoteHome.class; case BUSINESS_LOCAL_HOME: return BeanContext.BusinessLocalHome.class; case SERVICE_ENDPOINT: return getServiceEndpointInterface(); case LOCALBEAN: return getBeanClass(); case BUSINESS_LOCALBEAN_HOME: return BeanContext.BusinessLocalBeanHome.class; default: throw new IllegalStateException("Unexpected enum constant: " + interfaceType); } }
public Class getInterface(final InterfaceType interfaceType) { switch (interfaceType) { case EJB_HOME: return getHomeInterface(); case EJB_OBJECT: return getRemoteInterface(); case EJB_LOCAL_HOME: return getLocalHomeInterface(); case EJB_LOCAL: return getLocalInterface(); case BUSINESS_LOCAL: return getBusinessLocalInterface(); case BUSINESS_REMOTE: return getBusinessRemoteInterface(); case TIMEOUT: return BeanContext.Timeout.class; case BUSINESS_REMOTE_HOME: return BeanContext.BusinessRemoteHome.class; case BUSINESS_LOCAL_HOME: return BeanContext.BusinessLocalHome.class; case SERVICE_ENDPOINT: return getServiceEndpointInterface(); case LOCALBEAN: return getBeanClass(); case BUSINESS_LOCALBEAN_HOME: return BeanContext.BusinessLocalBeanHome.class; default: throw new IllegalStateException("Unexpected enum constant: " + interfaceType); } }
if (beanContext.getServiceEndpointInterface() != null) { information = new EjbInformation(); information.setName(getLocalizedString(request, BUNDLE_NAME, SEI_KEY)); information.setValue(beanContext.getServiceEndpointInterface() .getName()); informations.add(information);
.getServiceEndpointInterface(); method = getMostSpecificMethod(beanContext, method, callInterface); Object res = container.invoke(
.getServiceEndpointInterface(); method = getMostSpecificMethod(beanContext, method, callInterface); final Object res = container.invoke(
Class callInterface = this.beanContext.getServiceEndpointInterface();
public void processMessage(final MessageContext msgContext, final SOAPEnvelope reqEnv, final SOAPEnvelope resEnv, final Object obj) throws Exception { final RPCElement body = getBody(reqEnv, msgContext); final OperationDesc operation = getOperationDesc(msgContext, body); final AxisRpcInterceptor interceptor = new AxisRpcInterceptor(operation, msgContext); final SOAPMessage message = msgContext.getMessage(); try { message.getSOAPPart().getEnvelope(); msgContext.setProperty(org.apache.axis.SOAPPart.ALLOW_FORM_OPTIMIZATION, Boolean.FALSE); final RpcContainer container = (RpcContainer) ejbDeployment.getContainer(); final Object[] arguments = {msgContext, interceptor}; final Class callInterface = ejbDeployment.getServiceEndpointInterface(); final Object result = container.invoke(ejbDeployment.getDeploymentID(), InterfaceType.SERVICE_ENDPOINT, callInterface, operation.getMethod(), arguments, null); interceptor.createResult(result); } catch (final InvalidateReferenceException e) { interceptor.createExceptionResult(e.getCause()); } catch (final ApplicationException e) { interceptor.createExceptionResult(e.getCause()); } catch (final Throwable throwable) { throw new AxisFault("Web Service EJB Invocation failed: method " + operation.getMethod(), throwable); } }
private Object preEjbInvoke(Exchange exchange, Object serviceObject, Method method, List<Object> params) { EJBMessageContext ctx = new EJBMessageContext(exchange.getInMessage(), Scope.APPLICATION); WebServiceContextImpl.setMessageContext(ctx); Map<String, Object> handlerProperties = removeHandlerProperties(ctx); exchange.put(HANDLER_PROPERTIES, handlerProperties); try { EJBInterceptor interceptor = new EJBInterceptor(params, method, this.endpoint, this.bus, exchange); Object[] arguments = { ctx, interceptor, ctx }; RpcContainer container = (RpcContainer) this.beanContext.getContainer(); Class callInterface = this.beanContext.getServiceEndpointInterface(); method = getMostSpecificMethod(method, callInterface); Object res = container.invoke(this.beanContext.getDeploymentID(), InterfaceType.SERVICE_ENDPOINT, callInterface, method, arguments, null); if (exchange.isOneWay()) { return null; } return new MessageContentsList(res); } catch (Fault f) { exchange.getInMessage().put(FaultMode.class, FaultMode.UNCHECKED_APPLICATION_FAULT); throw f; } catch (Exception e) { exchange.getInMessage().put(FaultMode.class, FaultMode.UNCHECKED_APPLICATION_FAULT); throw createFault(e, method, params, false); } finally { WebServiceContextImpl.clear(); } }