public Object getEJbArguments(ComponentInvocation inv) { if (inv instanceof EJBInvocation) { EJBInvocation eInv = (EJBInvocation) inv; if (eInv.isAWebService()) { return null; } else { return (eInv.getMethodParams() != null) ? eInv.getMethodParams() : new Object[0]; } } return null; }
public Object getSOAPMessage(ComponentInvocation inv) { if (inv instanceof EJBInvocation) { EJBInvocation eInv = (EJBInvocation) inv; if (eInv.isAWebService()) { //TODO:V3 does this violate JACC spec?, we may have to convert to SOAPMessage on demand //return eInv.getSOAPMessage(); return eInv.getMessage(); } } return null; }
public boolean authorize(ComponentInvocation inv, Method m) throws Exception { Exception ie = null; if (inv instanceof EJBInvocation) { return ((EJBInvocation)inv).authorizeWebService(m); } return true; }
public void setSOAPMessage(Object message, ComponentInvocation inv) { if (inv instanceof EJBInvocation) { EJBInvocation eInv = (EJBInvocation) inv; if (eInv.isAWebService()) { eInv.setMessage(message); } } }
public boolean handleRequest(MessageContext context) { EJBInvocation inv = null; try { WebServiceContractImpl wscImpl = WebServiceContractImpl.getInstance(); InvocationManager invManager = wscImpl.getInvocationManager(); inv = (EJBInvocation) invManager.getCurrentInvocation(); Method method = wsUtil.getInvMethod( (com.sun.xml.rpc.spi.runtime.Tie)inv.getWebServiceTie(), context); inv.setWebServiceMethod(method); if ( !inv.authorizeWebService(method) ) { throw new Exception( format( rb.getString ("client.unauthorized") , method.toString())); } } catch(Exception e) { wsUtil.throwSOAPFaultException(e.getMessage(), context); } return true; }
public Object getEnterpriseBean(ComponentInvocation inv) { if (inv instanceof EJBInvocation) { return ((EJBInvocation)inv).getJaccEjb(); } return null; }
ResourcesExceededException ree = new ResourcesExceededException( "Message Bean Resources " + "exceeded for message bean " + appEJBName_);
public AdapterInvocationInfo getHandlerImplementor() throws Exception { ComponentInvocation inv = container.startInvocation(); AdapterInvocationInfo aInfo = new AdapterInvocationInfo(); aInfo.setInv(inv); synchronized(this) { if(tieClass == null) { tieClass = Thread.currentThread().getContextClassLoader().loadClass(getEndpoint().getTieClassName()); } if( tieInstance == null ) { tieInstance = (Tie) tieClass.newInstance(); tieInstance.setTarget((Remote) webServiceEndpointServant); } } ((EJBInvocation)inv).setWebServiceTie(tieInstance); aInfo.setHandler((Handler)tieInstance); return aInfo; }
/** * Called after attempt to handle message. This is coded defensively * so we attempt to clean up no matter how much progress we made in * getImplementor. One important thing is to complete the invocation * manager preInvoke(). */ public void releaseImplementor(ComponentInvocation inv) { container.endInvocation(inv); }
public <S> S getBusinessObject(java.lang.Class<S> sClass) { return ejbContainerServices.getBusinessObject(ejbRef, sClass); }
public void remove() { ejbContainerServices.remove(ejbRef); }
/** * Checks whether the message delivery is transacted for the method. * * @return true or false. */ public boolean isDeliveryTransacted(Method method) { return messageBeanPM_.isDeliveryTransacted(method); }
public boolean isRemoved() { return ejbContainerServices.isRemoved(ejbRef); }
public Object getEJbArguments(ComponentInvocation inv) { if (inv instanceof EJBInvocation) { EJBInvocation eInv = (EJBInvocation) inv; if (eInv.isAWebService()) { return null; } else { return (eInv.getMethodParams() != null) ? eInv.getMethodParams() : new Object[0]; } } return null; }
public Object getSOAPMessage(ComponentInvocation inv) { if (inv instanceof EJBInvocation) { EJBInvocation eInv = (EJBInvocation) inv; if (eInv.isAWebService()) { //TODO:V3 does this violate JACC spec?, we may have to convert to SOAPMessage on demand //return eInv.getSOAPMessage(); return eInv.getMessage(); } } return null; }
public void setSOAPMessage(Object message, ComponentInvocation inv) { if (inv instanceof EJBInvocation) { EJBInvocation eInv = (EJBInvocation) inv; if (eInv.isAWebService()) { eInv.setMessage(message); } } }
public boolean authorize(ComponentInvocation inv, Method m) throws Exception { Exception ie = null; if (inv instanceof EJBInvocation) { return ((EJBInvocation)inv).authorizeWebService(m); } return true; }
public Object getEnterpriseBean(ComponentInvocation inv) { if (inv instanceof EJBInvocation) { return ((EJBInvocation)inv).getJaccEjb(); } return null; }
ResourcesExceededException ree = new ResourcesExceededException( "Message Bean Resources " + "exceeded for message bean " + appEJBName_);
/** * Called after attempt to handle message. This is coded defensively * so we attempt to clean up no matter how much progress we made in * getImplementor. One important thing is to complete the invocation * manager preInvoke(). */ public void releaseImplementor(ComponentInvocation inv) { container.endInvocation(inv); }