Package org.jboss.metadata

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


      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

      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

            }
            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

      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

      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

/*  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

/* 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

TOP

Related Classes of org.jboss.metadata.InvokerProxyBindingMetaData

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.