Examples of EJBContainer


Examples of org.jboss.ejb3.EJBContainer

      List<WebServiceDeclaration> container = new ArrayList<WebServiceDeclaration>();

      Iterator<Container> it = ejb3Deployment.getEjbContainers().values().iterator();
      while(it.hasNext())
      {
         final EJBContainer c = (EJBContainer)it.next();
         container.add(
           new WebServiceDeclaration()
           {

              public <T extends java.lang.annotation.Annotation> T getAnnotation(Class<T> t)
              {
                 return c.getAnnotation(t);
              }


              public String getComponentName()
              {
                 return c.getEjbName();
              }

              public String getComponentClassName()
              {
                 return c.getBeanClassName()
              }
           }

         );
      }
View Full Code Here

Examples of org.jboss.ejb3.EJBContainer

        
         Iterator<JBossEnterpriseBeanMetaData> iterator = beans.getEnterpriseBeans().iterator();
         while(iterator.hasNext())
         {
            JBossEnterpriseBeanMetaData ejb = iterator.next();
            EJBContainer ejbContainer = null;
            if (ejb3Deployment != null && !ejb.isEntity())
            {
               ObjectName objName = null;
               try
               {
View Full Code Here

Examples of org.jboss.ejb3.cache.legacy.EJBContainer

   {
      this.container = (StatefulContainer) container;
      Advisor advisor = container.getAdvisor();
      cacheMap = new CacheMap();
      PersistenceManager pmConfig = (PersistenceManager) advisor.resolveAnnotation(PersistenceManager.class);
      EJBContainer ejbContainer = (EJBContainer)container;
      String pmConfigValue = pmConfig.value();
      PersistenceManagerFactoryRegistry pmFactoryRegistry = ejbContainer.getDeployment()
            .getPersistenceManagerFactoryRegistry();
      PersistenceManagerFactory pmFactory = pmFactoryRegistry.getPersistenceManagerFactory(pmConfigValue);
      this.pm = pmFactory.createPersistenceManager();
      pm.initialize(container);
      CacheConfig config = (CacheConfig) advisor.resolveAnnotation(CacheConfig.class);
View Full Code Here

Examples of org.openejb.EJBContainer

        try {
            ContainerIndex index = ContainerIndex.getInstance();
            int length = index.length();
            log.info("number of continers " + length);
            for (int i = 0; i < length; i++) {
                EJBContainer contianer = index.getContainer(i);
                if (contianer != null) {
                    String name = contianer.getEJBName();
                    log.debug("found the ejb " + name);
                    if (ejbName.equals(name)) {
                        EJBHome statelessHome = contianer.getEJBHome();
                        Object stateless = statelessHome.getClass().getMethod("create", null).invoke(statelessHome, null);
                        Method[] methods = stateless.getClass().getMethods();
                        for (int j = 0; j < methods.length; j++) {
                            if (methods[j].getName().equals(methodName)) {
                                try {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.