Package org.jboss.ejb

Examples of org.jboss.ejb.Interceptor


      try
      {
         final EjbModule ejbModule = (EjbModule) this.server.getAttribute(objectName, "EjbModule");
         final StatelessSessionContainer container = (StatelessSessionContainer) ejbModule.getContainer(ejbName);

         Interceptor currentInterceptor = container.getInterceptor();
         while (currentInterceptor != null && currentInterceptor.getNext() != null)
         {
            final Interceptor nextInterceptor = currentInterceptor.getNext();

            if (nextInterceptor.getNext() == null)
            {
               final ServiceEndpointInterceptorEJB21 sepInterceptor = new ServiceEndpointInterceptorEJB21();
               currentInterceptor.setNext(sepInterceptor);
               sepInterceptor.setNext(nextInterceptor);
               this.log.debug("Injecting EJB 21 service endpoint interceptor after: "
View Full Code Here


      {
         EjbModule ejbModule = (EjbModule)server.getAttribute(objectName, "EjbModule");
         StatelessSessionContainer container = (StatelessSessionContainer)ejbModule.getContainer(ejbName);

         boolean injectionPointFound = false;
         Interceptor prev = container.getInterceptor();
         while (prev != null && prev.getNext() != null)
         {
            Interceptor next = prev.getNext();
            if (next.getNext() == null)
            {
               log.debug("Inject service endpoint interceptor after: " + prev.getClass().getName());
               ServiceEndpointInterceptor sepInterceptor = new ServiceEndpointInterceptor();
               prev.setNext(sepInterceptor);
               sepInterceptor.setNext(next);
View Full Code Here

      {
         EjbModule ejbModule = (EjbModule)server.getAttribute(objectName, "EjbModule");
         StatelessSessionContainer container = (StatelessSessionContainer)ejbModule.getContainer(ejbName);

         boolean injectionPointFound = false;
         Interceptor prev = container.getInterceptor();
         while (prev != null && prev.getNext() != null)
         {
            Interceptor next = prev.getNext();
            if (next.getNext() == null)
            {
               log.debug("Inject service endpoint interceptor after: " + prev.getClass().getName());
               ServiceEndpointInterceptor sepInterceptor = new ServiceEndpointInterceptor();
               prev.setNext(sepInterceptor);
               sepInterceptor.setNext(next);
View Full Code Here

         log.debug(" Unsealed arg("+a+"): "+arg);
      }
      // We must set the arguments because args[] may be a copy
      mi.setArguments(args);

      Interceptor next = getNext();
      Object value = next.invoke(mi);
      if( value instanceof Serializable )
      {
         Serializable svalue = (Serializable) value;
         value = new SealedObject(svalue, encryptCipher);
      }
View Full Code Here

      if (invokerBinding != null || oldInvokerBinding == null)
      {
         ENCThreadLocalKey.setKey(invokerBinding);
      }

      Interceptor next = getNext();
      Object value = null;
      try
      {
         value = next.invokeHome(mi);
      }
      finally
      {
         ENCThreadLocalKey.setKey(oldInvokerBinding);
         // JBAS-4192 clear the container's thread local
View Full Code Here

      if (invokerBinding != null || oldInvokerBinding == null)
      {
         ENCThreadLocalKey.setKey(invokerBinding);
      }
     
      Interceptor next = getNext();
      Object value = null;
      try
      {
         value = next.invoke(mi);
      }
      finally
      {
         ENCThreadLocalKey.setKey(oldInvokerBinding);
         // JBAS-4192 clear the container's thread local
View Full Code Here

/*  98 */     if ((invokerBinding != null) || (oldInvokerBinding == null))
/*     */     {
/* 100 */       ENCThreadLocalKey.setKey(invokerBinding);
/*     */     }
/*     */
/* 103 */     Interceptor next = getNext();
/* 104 */     Object value = null;
/*     */     try
/*     */     {
/* 107 */       value = next.invokeHome(mi);
/*     */     }
/*     */     finally
/*     */     {
/* 111 */       ENCThreadLocalKey.setKey(oldInvokerBinding);
/*     */     }
View Full Code Here

/* 129 */     if ((invokerBinding != null) || (oldInvokerBinding == null))
/*     */     {
/* 131 */       ENCThreadLocalKey.setKey(invokerBinding);
/*     */     }
/*     */
/* 134 */     Interceptor next = getNext();
/* 135 */     Object value = null;
/*     */     try
/*     */     {
/* 138 */       value = next.invoke(mi);
/*     */     }
/*     */     finally
/*     */     {
/* 142 */       ENCThreadLocalKey.setKey(oldInvokerBinding);
/*     */     }
View Full Code Here

      {
         EjbModule ejbModule = (EjbModule)server.getAttribute(objectName, "EjbModule");
         StatelessSessionContainer container = (StatelessSessionContainer)ejbModule.getContainer(ejbName);

         boolean injectionPointFound = false;
         Interceptor prev = container.getInterceptor();
         while (prev != null && prev.getNext() != null)
         {
            Interceptor next = prev.getNext();
            if (next.getNext() == null)
            {
               log.debug("Inject service endpoint interceptor after: " + prev.getClass().getName());
               ServiceEndpointInterceptor sepInterceptor = new ServiceEndpointInterceptor();
               prev.setNext(sepInterceptor);
               sepInterceptor.setNext(next);
View Full Code Here

TOP

Related Classes of org.jboss.ejb.Interceptor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.