/** * Invokes EJB 21 endpoint. * * @param endpoint EJB 21 endpoint * @param wsInvocation web service invocation * @throws Exception if any error occurs */ public void invoke(final Endpoint endpoint, final Invocation wsInvocation) throws Exception { final ObjectName ejb21Name = this.getEjb21ContainerName(endpoint); try { // prepare for invocation final org.jboss.invocation.Invocation jbossInvocation = this.getMBeanInvocation(wsInvocation); final String[] signature = {org.jboss.invocation.Invocation.class.getName()}; final Object[] args = new Object[] {jbossInvocation}; // invoke method final Object retObj = this.server.invoke(ejb21Name, "invoke", args, signature); wsInvocation.setReturnValue(retObj); } catch (Exception e) { this.log.error("Method invocation failed with exception: " + e.getMessage(), e); this.handleInvocationException(e); } }
/** * Invokes EJB 21 endpoint. * * @param endpoint EJB 21 endpoint * @param wsInvocation web service invocation * @throws Exception if any error occurs */ public void invoke(final Endpoint endpoint, final Invocation wsInvocation) throws Exception { final ObjectName ejb21Name = this.getEjb21ContainerName(endpoint); try { // prepare for invocation final org.jboss.invocation.Invocation jbossInvocation = this.getMBeanInvocation(wsInvocation); final String[] signature = {org.jboss.invocation.Invocation.class.getName()}; final Object[] args = new Object[] {jbossInvocation}; // invoke method final Object retObj = this.server.invoke(ejb21Name, "invoke", args, signature); wsInvocation.setReturnValue(retObj); } catch (Exception e) { this.log.error("Method invocation failed with exception: " + e.getMessage(), e); this.handleInvocationException(e); } }
/** * Invokes EJB 21 endpoint. * * @param endpoint EJB 21 endpoint * @param wsInvocation web service invocation * @throws Exception if any error occurs */ public void invoke(final Endpoint endpoint, final Invocation wsInvocation) throws Exception { final ObjectName ejb21Name = this.getEjb21ContainerName(endpoint); try { // prepare for invocation final org.jboss.invocation.Invocation jbossInvocation = this.getMBeanInvocation(wsInvocation); final String[] signature = {org.jboss.invocation.Invocation.class.getName()}; final Object[] args = new Object[] {jbossInvocation}; // invoke method final Object retObj = this.server.invoke(ejb21Name, "invoke", args, signature); wsInvocation.setReturnValue(retObj); } catch (Exception e) { this.log.error("Method invocation failed with exception: " + e.getMessage(), e); this.handleInvocationException(e); } }