Examples of InvokerProxyBindingMetaData


Examples of org.jboss.metadata.InvokerProxyBindingMetaData

            }
            Iterator<String> invokerBindings = metaData.getInvokerBindings();
            while (invokerBindings != null && invokerBindings.hasNext())
            {
               String invokerBindingName = invokerBindings.next();
               InvokerProxyBindingMetaData ipbmd = appMetaData.getInvokerProxyBindingMetaDataByName(invokerBindingName);
               if (ipbmd != null)
               {
                  String invokerName = ipbmd.getInvokerMBean();
                  if (invokerName != null)
                  {
                     try
                     {
                        ObjectName invokerMBean = ObjectName.getInstance(invokerName);
View Full Code Here

Examples of org.jboss.metadata.InvokerProxyBindingMetaData

      int count = 0;
      while (it.hasNext())
      {
         String invoker = (String) it.next();
         ApplicationMetaData amd = bmd.getApplicationMetaData();
         InvokerProxyBindingMetaData imd = amd.getInvokerProxyBindingMetaDataByName(invoker);
         if (imd == null)
         {
            String msg = "Failed to find InvokerProxyBindingMetaData for: '" + invoker
                  + "'. Check the invoker-proxy-binding-name to " + "invoker-proxy-binding/name mappings in jboss.xml";
            throw new DeploymentException(msg);
         }

         Element proxyFactoryConfig = imd.getProxyFactoryConfig();
         String webCL = MetaData.getOptionalChildContent(proxyFactoryConfig, "web-class-loader");
         if (webCL != null)
         {
            log.debug("Invoker " + invoker + " specified WebClassLoader class" + webCL);
            webClassLoader = webCL;
View Full Code Here

Examples of org.jboss.metadata.InvokerProxyBindingMetaData

      while (it.hasNext())
      {
         String invoker = (String) it.next();
         String jndiBinding = conf.getInvokerBinding(invoker);
         log.debug("creating binding for " + jndiBinding + ":" + invoker);
         InvokerProxyBindingMetaData imd = conf.getApplicationMetaData().getInvokerProxyBindingMetaDataByName(invoker);
         EJBProxyFactory ci = null;

         // create a ProxyFactory instance
         try
         {
            ci = (EJBProxyFactory) cl.loadClass(imd.getProxyFactory()).newInstance();
            ci.setContainer(container);
            ci.setInvokerMetaData(imd);
            ci.setInvokerBinding(jndiBinding);
            if (ci instanceof XmlLoadable)
            {
               // the container invoker can load its configuration from the jboss.xml element
               ((XmlLoadable) ci).importXml(imd.getProxyFactoryConfig());
            }
            container.addProxyFactory(invoker, ci);
            foundOne = true;
         }
         catch (Exception e)
View Full Code Here

Examples of org.jboss.metadata.InvokerProxyBindingMetaData

            }
            Iterator<String> invokerBindings = metaData.getInvokerBindings();
            while (invokerBindings != null && invokerBindings.hasNext())
            {
               String invokerBindingName = invokerBindings.next();
               InvokerProxyBindingMetaData ipbmd = appMetaData.getInvokerProxyBindingMetaDataByName(invokerBindingName);
               if (ipbmd != null)
               {
                  String invokerName = ipbmd.getInvokerMBean();
                  if (invokerName != null)
                  {
                     try
                     {
                        ObjectName invokerMBean = ObjectName.getInstance(invokerName);
View Full Code Here

Examples of org.jboss.metadata.InvokerProxyBindingMetaData

      int count = 0;
      while (it.hasNext())
      {
         String invoker = (String) it.next();
         ApplicationMetaData amd = bmd.getApplicationMetaData();
         InvokerProxyBindingMetaData imd = amd.getInvokerProxyBindingMetaDataByName(invoker);
         if (imd == null)
         {
            String msg = "Failed to find InvokerProxyBindingMetaData for: '" + invoker
                  + "'. Check the invoker-proxy-binding-name to " + "invoker-proxy-binding/name mappings in jboss.xml";
            throw new DeploymentException(msg);
         }

         Element proxyFactoryConfig = imd.getProxyFactoryConfig();
         String webCL = MetaData.getOptionalChildContent(proxyFactoryConfig, "web-class-loader");
         if (webCL != null)
         {
            log.debug("Invoker " + invoker + " specified WebClassLoader class" + webCL);
            webClassLoader = webCL;
View Full Code Here

Examples of org.jboss.metadata.InvokerProxyBindingMetaData

      while (it.hasNext())
      {
         String invoker = (String) it.next();
         String jndiBinding = conf.getInvokerBinding(invoker);
         log.debug("creating binding for " + jndiBinding + ":" + invoker);
         InvokerProxyBindingMetaData imd = conf.getApplicationMetaData().getInvokerProxyBindingMetaDataByName(invoker);
         EJBProxyFactory ci = null;

         // create a ProxyFactory instance
         try
         {
            ci = (EJBProxyFactory) cl.loadClass(imd.getProxyFactory()).newInstance();
            ci.setContainer(container);
            ci.setInvokerMetaData(imd);
            ci.setInvokerBinding(jndiBinding);
            if (ci instanceof XmlLoadable)
            {
               // the container invoker can load its configuration from the jboss.xml element
               ((XmlLoadable) ci).importXml(imd.getProxyFactoryConfig());
            }
            container.addProxyFactory(invoker, ci);
            foundOne = true;
         }
         catch (Exception e)
View Full Code Here

Examples of org.jboss.metadata.InvokerProxyBindingMetaData

/*  908 */     int count = 0;
/*  909 */     while (it.hasNext())
/*      */     {
/*  911 */       String invoker = (String)it.next();
/*  912 */       ApplicationMetaData amd = bmd.getApplicationMetaData();
/*  913 */       InvokerProxyBindingMetaData imd = amd.getInvokerProxyBindingMetaDataByName(invoker);
/*      */
/*  915 */       if (imd == null)
/*      */       {
/*  917 */         String msg = "Failed to find InvokerProxyBindingMetaData for: '" + invoker + "'. Check the invoker-proxy-binding-name to " + "invoker-proxy-binding/name mappings in jboss.xml";
/*      */
/*  920 */         throw new DeploymentException(msg);
/*      */       }
/*      */
/*  923 */       Element proxyFactoryConfig = imd.getProxyFactoryConfig();
/*  924 */       String webCL = MetaData.getOptionalChildContent(proxyFactoryConfig, "web-class-loader");
/*      */
/*  926 */       if (webCL != null)
/*      */       {
/*  928 */         log.debug("Invoker " + invoker + " specified WebClassLoader class" + webCL);
View Full Code Here

Examples of org.jboss.metadata.InvokerProxyBindingMetaData

/* 1136 */     while (it.hasNext())
/*      */     {
/* 1138 */       String invoker = (String)it.next();
/* 1139 */       String jndiBinding = conf.getInvokerBinding(invoker);
/* 1140 */       log.debug("creating binding for " + jndiBinding + ":" + invoker);
/* 1141 */       InvokerProxyBindingMetaData imd = conf.getApplicationMetaData().getInvokerProxyBindingMetaDataByName(invoker);
/* 1142 */       EJBProxyFactory ci = null;
/*      */       try
/*      */       {
/* 1147 */         ci = (EJBProxyFactory)cl.loadClass(imd.getProxyFactory()).newInstance();
/* 1148 */         ci.setContainer(container);
/* 1149 */         ci.setInvokerMetaData(imd);
/* 1150 */         ci.setInvokerBinding(jndiBinding);
/* 1151 */         if ((ci instanceof XmlLoadable))
/*      */         {
/* 1154 */           ((XmlLoadable)ci).importXml(imd.getProxyFactoryConfig());
/*      */         }
/* 1156 */         container.addProxyFactory(invoker, ci);
/* 1157 */         foundOne = true;
/*      */       }
/*      */       catch (Exception e)
View Full Code Here

Examples of org.jboss.metadata.ejb.jboss.InvokerProxyBindingMetaData

         ContainerConfigurationMetaData cmd = bmd.determineContainerConfiguration();
         Set<String> invokers = cmd.getInvokerProxyBindingNames();
         if(invokers != null)
         for(String iname : invokers)
         {
            InvokerProxyBindingMetaData imd = deployment.getInvokerProxyBinding(iname);
            if (imd == null)
               throw new DeploymentException("Failed to locate invoker: "+iname);
            String invokerName = imd.getInvokerMBean();
            if( invokerName.equalsIgnoreCase("default") )
            {
               // TODO: JBAS-4306 hack to ingore the invalid default invoker-mbean
               continue;
            }
View Full Code Here

Examples of org.jboss.metadata.ejb.jboss.InvokerProxyBindingMetaData

         ContainerConfigurationMetaData beanCfg = jbean.determineContainerConfiguration();
         assertNotNull(beanCfg);
         InvokerBindingsMetaData invokers = jbean.determineInvokerBindings();
         for(InvokerBindingMetaData invoker : invokers)
         {
            InvokerProxyBindingMetaData ipbmd = bindings.get(invoker.getName());
            assertNotNull(invoker.getName(), ipbmd);
         }
      }

      // Test the legacy wrapper view
      ApplicationMetaData appMetaData = new ApplicationMetaData(wrapper);
      Iterator<BeanMetaData> beans2 = appMetaData.getEnterpriseBeans();
      while (beans2.hasNext())
      {
         BeanMetaData bean = (BeanMetaData) beans2.next();
         ConfigurationMetaData beanCfg = bean.getContainerConfiguration();
         assertNotNull(beanCfg);
      }

      assertTrue(bindings.size() > 10);
      // Validate some know invoker bindings
      InvokerProxyBindingMetaData ssui = bindings.get("stateless-unified-invoker");
      assertNotNull(ssui);
      InvokerProxyBindingMetaData sfui = bindings.get("stateful-unified-invoker");
      assertNotNull(sfui);

      BeanMetaData beanCfg = appMetaData.getBeanByEjbName("session1EjbName");
      assertNotNull(beanCfg);
      Iterator<String> it = beanCfg.getInvokerBindings();
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.