Package org.jboss.ejb

Examples of org.jboss.ejb.Container$MBeanServerAction


         //
         Collection containers = ejbModule.getContainers ();
         Iterator containersIter = containers.iterator ();
         while (containersIter.hasNext ())
         {
            Container otherContainer = (Container)containersIter.next ();
            CleanShutdownInterceptor inter = (CleanShutdownInterceptor)
               ejbModule.getModuleData ("CleanShutDownInterceptor-" + otherContainer.getServiceName ().toString ());
            if (inter == null)
            {
               log.debug ("Found an EJB that doesnt have a clean-shutdown interceptor: " + otherContainer.getJmxName ());
            }
            else
            {
               inter.onlyAllowLocalInvocations ();
            }
View Full Code Here


         try
         {
            Collection containers = (Collection) server.getAttribute(app, "Containers");
            for (Iterator iter = containers.iterator(); iter.hasNext();)
            {
               Container con = (Container) iter.next();
               /* Set the thread class loader to that of the container as
                  the class loader is used by the java: context object
                  factory to partition the container namespaces.
               */
               Thread.currentThread().setContextClassLoader(con.getClassLoader());
               String bean = con.getBeanMetaData().getEjbName();
               Object on = con.getJmxName();
               buffer.append("<h2>java:comp namespace of the " + bean + " bean:</h2>\n");

               context = ENCFactory.getEncById().get(on);
               ejb2Ids.add(on);
               if (context == null)
View Full Code Here

            appendPreExceptionTag(buffer, "Failed to get ejbs in module", t);
         }

         for (Iterator iter = containers.iterator(); iter.hasNext();)
         {
            Container con = (Container) iter.next();
            Object on = con.getJmxName();
            ejb2Ids.add(on);
            /* Set the thread class loader to that of the container as
                     the class loader is used by the java: context object
                     factory to partition the container namespaces.
                  */
            Thread.currentThread().setContextClassLoader(con.getClassLoader());
            String bean = con.getBeanMetaData().getEjbName();
            openContextTag(buffer);
            appendBeanTag(buffer, bean);
            Context context1 = ENCFactory.getEncById().get(on);
            if (context1 == null)
            {
View Full Code Here

/*     */       try
/*     */       {
/* 165 */         Collection containers = (Collection)this.server.getAttribute(app, "Containers");
/* 166 */         for (iter = containers.iterator(); iter.hasNext(); )
/*     */         {
/* 168 */           Container con = (Container)iter.next();
/*     */
/* 173 */           Thread.currentThread().setContextClassLoader(con.getClassLoader());
/* 174 */           String bean = con.getBeanMetaData().getEjbName();
/* 175 */           Object on = con.getJmxName();
/* 176 */           buffer.append("<h2>java:comp namespace of the " + bean + " bean:</h2>\n");
/*     */
/* 178 */           context = (Context)ENCFactory.getEncById().get(on);
/* 179 */           ejb2Ids.add(on);
/* 180 */           if (context == null)
View Full Code Here

/* 354 */         appendPreExceptionTag(buffer, "Failed to get ejbs in module", t);
/*     */       }
/*     */
/* 357 */       for (Iterator iter = containers.iterator(); iter.hasNext(); )
/*     */       {
/* 359 */         Container con = (Container)iter.next();
/* 360 */         Object on = con.getJmxName();
/* 361 */         ejb2Ids.add(on);
/*     */
/* 366 */         Thread.currentThread().setContextClassLoader(con.getClassLoader());
/* 367 */         String bean = con.getBeanMetaData().getEjbName();
/* 368 */         openContextTag(buffer);
/* 369 */         appendBeanTag(buffer, bean);
/* 370 */         Context context1 = (Context)ENCFactory.getEncById().get(on);
/* 371 */         if (context1 == null)
/*     */         {
View Full Code Here

         //
         Collection containers = ejbModule.getContainers ();
         Iterator containersIter = containers.iterator ();
         while (containersIter.hasNext ())
         {
            Container otherContainer = (Container)containersIter.next ();
            CleanShutdownInterceptor inter = (CleanShutdownInterceptor)
               ejbModule.getModuleData ("CleanShutDownInterceptor-" + otherContainer.getServiceName ().toString ());
            if (inter == null)
            {
               log.debug ("Found an EJB that doesnt have a clean-shutdown interceptor: " + otherContainer.getJmxName ());
            }
            else
            {
               inter.onlyAllowLocalInvocations ();
            }
View Full Code Here

TOP

Related Classes of org.jboss.ejb.Container$MBeanServerAction

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.