Package org.jboss.jca.common.api.metadata.ra.ra15

Examples of org.jboss.jca.common.api.metadata.ra.ra15.Connector15


         Class<?> type = Class.forName(ml.getMessagelistenerType().getValue(), true, cl);

         Map<String, Class<?>> configProperties = new HashMap<String, Class<?>>();
         Set<String> requiredConfigProperties = new HashSet<String>();

         Activationspec15 as = ml.getActivationspec();
         Class<?> asClz = Class.forName(as.getActivationspecClass().getValue(), true, cl);

         if (as instanceof Activationspec16)
         {
            List<? extends ConfigProperty> cps = ((Activationspec16)as).getConfigProperties();
            if (cps != null && cps.size() > 0)
            {
               for (ConfigProperty cp : cps)
               {
                  String name = cp.getConfigPropertyName().getValue();
                  Class<?> ct = Class.forName(cp.getConfigPropertyType().getValue(), true, cl);

                  configProperties.put(name, ct);
               }
            }
         }

         configProperties.putAll(introspectActivationSpec(asClz));

         List<? extends RequiredConfigProperty> rcps = as.getRequiredConfigProperties();
         if (rcps != null && rcps.size() > 0)
         {
            for (RequiredConfigProperty rcp : rcps)
            {
               String name = rcp.getConfigPropertyName().getValue();
View Full Code Here


         Class<?> type = Class.forName(ml.getMessagelistenerType().getValue(), true, cl);

         Map<String, Class<?>> configProperties = new HashMap<String, Class<?>>();
         Set<String> requiredConfigProperties = new HashSet<String>();

         Activationspec15 as = ml.getActivationspec();

         List<? extends ConfigProperty> cps = as.getConfigProperties();
         if (cps != null && cps.size() > 0)
         {
            for (ConfigProperty cp : cps)
            {
               String name = cp.getConfigPropertyName().getValue();
               Class<?> ct = Class.forName(cp.getConfigPropertyType().getValue(), true, cl);

               configProperties.put(name, ct);
            }
         }

         List<? extends RequiredConfigProperty> rcps = as.getRequiredConfigProperties();
         if (rcps != null && rcps.size() > 0)
         {
            for (RequiredConfigProperty rcp : rcps)
            {
               String name = rcp.getConfigPropertyName().getValue();

               requiredConfigProperties.add(name);
            }
         }

         Class<?> asClz = Class.forName(as.getActivationspecClass().getValue(), true, cl);

         ActivationImpl a = new ActivationImpl(rar,
                                               asClz,
                                               Collections.unmodifiableMap(configProperties),
                                               Collections.unmodifiableSet(requiredConfigProperties));
View Full Code Here

      throw new ParserException(bundle.unexpectedEndOfDocument());
   }

   private MessageListener parseMessageListener(XMLStreamReader reader) throws XMLStreamException, ParserException
   {
      Activationspec15 activationspec = null;
      XsdString messagelistenerType = NULL_XSDSTRING;
      //getting attributes
      String id = reader.getAttributeValue(null, MessageListener.Attribute.ID.getLocalName());

      while (reader.hasNext())
View Full Code Here

         Connector raXml = mdr.getResourceAdapter(id);
         if (raXml != null)
         {
            if (raXml instanceof Connector15)
            {
               Connector15 ra15 = (Connector15)raXml;
               if (!XsdString.isNull(ra15.getResourceadapterVersion()))
                  return ((Connector15)raXml).getResourceadapterVersion().getValue();
            }
         }
      }
      catch (Throwable t)
View Full Code Here

            properties.add(simpleProperty15("TransactionManagerLocatorMethod", STRING_TYPE, "getTransactionManager"));

            OutboundResourceAdapter outbound = createOutbound();
            InboundResourceAdapter inbound = createInbound();
            ResourceAdapter1516 ra = createResourceAdapter15(properties, outbound, inbound);
            Connector15 cmd = createConnector15(ra);

            CommonConnDef common = createConnDef(jndiName);
            IronJacamar ijmd = createIron(common, txSupport);

            ResourceAdapterActivatorService activator = new ResourceAdapterActivatorService(cmd, ijmd,
View Full Code Here

            properties.add(simpleProperty15("TransactionManagerLocatorMethod", STRING_TYPE, "getTransactionManager"));

            OutboundResourceAdapter outbound = createOutbound();
            InboundResourceAdapter inbound = createInbound();
            ResourceAdapter1516 ra = createResourceAdapter15(properties, outbound, inbound);
            Connector15 cmd = createConnector15(ra);

            CommonConnDef common = createConnDef(jndiName, minPoolSize, maxPoolSize);
            IronJacamar ijmd = createIron(common, txSupport);

            ResourceAdapterActivatorService activator = new ResourceAdapterActivatorService(cmd, ijmd,
View Full Code Here

            properties.add(simpleProperty15(TRANSACTION_MANAGER_LOCATOR_METHOD, STRING_TYPE, "getTransactionManager"));

            OutboundResourceAdapter outbound = createOutbound();
            InboundResourceAdapter inbound = createInbound();
            ResourceAdapter1516 ra = createResourceAdapter15(properties, outbound, inbound);
            Connector15 cmd = createConnector15(ra);

            CommonConnDef common = createConnDef(jndiName, minPoolSize, maxPoolSize);
            IronJacamar ijmd = createIron(common, txSupport);

            ResourceAdapterActivatorService activator = new ResourceAdapterActivatorService(cmd, ijmd,
View Full Code Here

         Connector raXml = mdr.getResourceAdapter(id);
         if (raXml != null)
         {
            if (raXml instanceof Connector15)
            {
               Connector15 ra15 = (Connector15)raXml;
               if (!XsdString.isNull(ra15.getResourceadapterVersion()))
                  return ((Connector15)raXml).getResourceadapterVersion().getValue();
            }
         }
      }
      catch (Throwable t)
View Full Code Here

            properties.add(simpleProperty15(TRANSACTION_MANAGER_LOCATOR_METHOD, STRING_TYPE, "getTransactionManager"));

            OutboundResourceAdapter outbound = createOutbound();
            InboundResourceAdapter inbound = createInbound();
            ResourceAdapter1516 ra = createResourceAdapter15(properties, outbound, inbound);
            Connector15 cmd = createConnector15(ra);

            // create the definition with the 1st jndi names and create jndi aliases for the rest
            String jndiName = jndiNames.get(0);
            List<String> jndiAliases = new ArrayList<String>();
            if (jndiNames.size() > 1) {
View Full Code Here

            case END_ELEMENT : {
               if (Tag.forName(reader.getLocalName()) == Tag.CONNECTOR)
               {

                  //building and returning object
                  return new Connector15(vendorName, eisType, resourceadapterVersion, license, resourceadapter, id);

               }
               else
               {
                  if (Connector15.Tag.forName(reader.getLocalName()) == Connector15.Tag.UNKNOWN)
View Full Code Here

TOP

Related Classes of org.jboss.jca.common.api.metadata.ra.ra15.Connector15

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.