Examples of ConnectionDefinition


Examples of org.apache.openejb.jee.ConnectionDefinition

        for (ConnectionDefinition connectionDefinition : outboundResourceAdapter.getConnectionDefinition()) {
            if (connectionDefinitionAnnotation.connectionFactory().getName().equals(connectionDefinition.getConnectionFactoryInterface())) {
                return connectionDefinition;
            }
        }
        ConnectionDefinition connectionDefinition = new ConnectionDefinition();
        outboundResourceAdapter.getConnectionDefinition().add(connectionDefinition);
        connectionDefinition.setConnectionFactoryInterface(connectionDefinitionAnnotation.connectionFactory().getName());
        return connectionDefinition;
    }
View Full Code Here

Examples of org.apache.openejb.jee.ConnectionDefinition

        }
        return list;
    }

    private void buildConnectionDefinition(Class mcfClass, javax.resource.spi.ConnectionDefinition connectionDefinitionAnnotation, OutboundResourceAdapter outboundResourceAdapter) throws DeploymentException {
        ConnectionDefinition connectionDefinition = getConnectionDefinition(connectionDefinitionAnnotation, outboundResourceAdapter);
        if (connectionDefinition.getManagedConnectionFactoryClass() == null) {
            connectionDefinition.setManagedConnectionFactoryClass(mcfClass.getName());
        }
        if (mcfClass.getName().equals(connectionDefinition.getManagedConnectionFactoryClass())) {
            connectionDefinition.setConnectionFactoryImplClass(connectionDefinitionAnnotation.connectionFactoryImpl().getName());
            connectionDefinition.setConnectionInterface(connectionDefinitionAnnotation.connection().getName());
            connectionDefinition.setConnectionImplClass(connectionDefinitionAnnotation.connectionImpl().getName());
            setConfigProperties(connectionDefinition.getConfigProperty(), mcfClass);
        }
    }
View Full Code Here

Examples of org.jboss.as.console.client.shared.subsys.jca.model.ConnectionDefinition

                    @Override
                    public void onClick(ClickEvent event) {
                        FormValidation validation = form.validate();
                        if(!validation.hasErrors())
                        {
                            ConnectionDefinition connectionDef = form.getUpdatedEntity();
                            connectionDef.setApplication(true); // JBPAPP-9977: reasonable default
                            parent.onCompleteStep1(connectionDef);
                        }
                    }
                },
View Full Code Here

Examples of org.jboss.as.console.client.shared.subsys.jca.model.ConnectionDefinition

                    {
                        List<Property> connections = raModel.get("connection-definitions").asPropertyList();
                        for(Property con : connections )
                        {
                            ModelNode connectionModel = con.getValue();
                            ConnectionDefinition connectionDefinition = connectionAdapter.fromDMR(connectionModel);

                            // config properties
                            List<PropertyRecord> connectionProps = parseConfigProperties(connectionModel);
                            connectionDefinition.setProperties(connectionProps);

                            // pool
                            PoolConfig poolConfig = poolAdapter.with(new KeyAssignment() {
                                @Override
                                public Object valueForKey(String key) {
                                    //return connectionModel.get("");
                                    return "";
                                }
                            }).fromDMR(connectionModel);
                            connectionDefinition.setPoolConfig(poolConfig);

                            resourceAdapter.getConnectionDefinitions().add(connectionDefinition);

                        }
View Full Code Here

Examples of org.jboss.as.console.client.shared.subsys.jca.model.ConnectionDefinition

                    {
                        List<Property> connections = raModel.get("connection-definitions").asPropertyList();
                        for(Property con : connections )
                        {
                            ModelNode connectionModel = con.getValue();
                            ConnectionDefinition connectionDefinition = connectionAdapter.fromDMR(connectionModel);

                            // config properties
                            List<PropertyRecord> connectionProps = parseConfigProperties(connectionModel);
                            connectionDefinition.setProperties(connectionProps);

                            // pool
                            PoolConfig poolConfig = poolAdapter.with(new KeyAssignment() {
                                @Override
                                public Object valueForKey(String key) {
                                    //return connectionModel.get("");
                                    return "";
                                }
                            }).fromDMR(connectionModel);
                            connectionDefinition.setPoolConfig(poolConfig);

                            resourceAdapter.getConnectionDefinitions().add(connectionDefinition);

                        }
View Full Code Here

Examples of org.jboss.jca.common.api.metadata.ra.ConnectionDefinition

   @Override
   public boolean validationAsBoolean()
   {
      if (this.getConnectionDefinitions() == null || this.getConnectionDefinitions().size() == 0)
         return false;
      ConnectionDefinition cdm = this.getConnectionDefinitions().get(0);
      if (cdm.getManagedConnectionFactoryClass() == null || cdm.getConnectionFactoryInterface() == null ||
          cdm.getConnectionFactoryImplClass() == null || cdm.getConnectionInterface() == null ||
          cdm.getConnectionImplClass() == null)
         return false;

      return true;
   }
View Full Code Here

Examples of org.jboss.jca.common.api.metadata.ra.ConnectionDefinition

            List<ConnectionDefinition> newConDefs = new ArrayList<ConnectionDefinition>(ra1516
               .getOutboundResourceadapter().getConnectionDefinitions().size());
            for (ConnectionDefinition conDef : ra1516.getOutboundResourceadapter().getConnectionDefinitions())
            {

               ConnectionDefinition newConDef = conDef;

               newConDefs.add(newConDef);

            }
            ((OutboundResourceAdapterImpl) ra1516.getOutboundResourceadapter())
View Full Code Here

Examples of org.jboss.jca.common.api.metadata.ra.ConnectionDefinition

         return newConnector.merge(connector);
      }
      else
      {
         List<ConnectionDefinition> connectionDefinitions = new ArrayList<ConnectionDefinition>(1);
         ConnectionDefinition connectionDefinition = new ConnectionDefinitionImpl(managedconnectionfactoryClass,
                                                                                  connectioDefProperties,
                                                                                  connectionfactoryInterface,
                                                                                  connectionfactoryImplClass,
                                                                                  connectionInterface,
                                                                                  connectionImplClass, id);
View Full Code Here

Examples of org.jboss.jca.common.api.metadata.ra.ConnectionDefinition

      {
         connectionDefinitions = new ArrayList<ConnectionDefinition>(values.size());

         for (Annotation annotation : values)
         {
            ConnectionDefinition cd = attachConnectionDefinition(annotation, classLoader,
                                                                 configProperty, plainConfigProperty);

            if (trace)
               log.tracef("Adding connection definition: %s", cd);
View Full Code Here

Examples of org.jboss.jca.common.api.metadata.ra.ConnectionDefinition

      {
         connectionDefinitions = new ArrayList<ConnectionDefinition>(values.size());

         for (Annotation annotation : values)
         {
            ConnectionDefinition cd = attachConnectionDefinition(annotation, classLoader,
                                                                 configProperty, plainConfigProperty);

            if (trace)
               log.tracef("Adding connection definition: %s", cd);
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.