Package org.jboss.metadata.rar.spec

Examples of org.jboss.metadata.rar.spec.ConnectionDefinitionMetaData


      assertEquals(ra.getSecurityPermissions().get(0).getSecurityPermissionSpec(), "sa");
   }
  
   private void assertOutboundAdapter(OutboundRaMetaData outboundRa) {
      assertNotNull(outboundRa.getConDefs());
      ConnectionDefinitionMetaData conDef = outboundRa.getConDefs().get(0);
      assertTrue(conDef.getManagedConnectionFactoryClass().endsWith("JmsManagedConnectionFactory"));
      assertEquals(conDef.getConfigProps().size(), 7);
      assertEquals(conDef.getConfigProps().get(6).getName(), "UseTryLock");
      assertTrue(conDef.getConnectionFactoryInterfaceClass().endsWith("JmsConnectionFactory"));
      assertTrue(conDef.getConnectionFactoryImplementationClass().endsWith("JmsConnectionFactoryImpl"));
      assertTrue(conDef.getConnectionInterfaceClass().endsWith("Session"));
      assertTrue(conDef.getConnectionImplementationClass().endsWith("JmsSession"));
      assertEquals(outboundRa.getTransSupport(), TransactionSupportMetaData.XATransaction);
      assertNotNull(outboundRa.getAuthMechanisms().get(0));
      assertEquals(outboundRa.getAuthMechanisms().get(0).getAuthenticationMechanismType(), "BasicPassword");
      assertTrue(outboundRa.getAuthMechanisms().get(0).getCredentialInterfaceClass().endsWith("PasswordCredential"));
      assertEquals(outboundRa.getAuthMechanisms().get(0).getId(), "amid");
View Full Code Here


      if (trace)
         log.trace("Processing: " + cd);

      createConDefs(md);

      ConnectionDefinitionMetaData cdMeta = new ConnectionDefinitionMetaData();
      cdMeta.setManagedConnectionFactoryClass(mcf);
      cdMeta.setConnectionFactoryInterfaceClass(cd.connectionFactory().getName());
      cdMeta.setConnectionFactoryImplementationClass(cd.connectionFactoryImpl().getName());
      cdMeta.setConnectionInterfaceClass(cd.connection().getName());
      cdMeta.setConnectionImplementationClass(cd.connectionImpl().getName());
      md.getRa().getOutboundRa().getConDefs().add(cdMeta);
      return md;
   }
View Full Code Here

   {
      if (omd == null)
         return false;
      if (omd.getConDefs() == null || omd.getConDefs().size() == 0)
         return false;
      ConnectionDefinitionMetaData cdm = omd.getConDefs().get(0);
      if (cdm.getManagedConnectionFactoryClass() == null || cdm.getConnectionFactoryInterfaceClass() == null
            || cdm.getConnectionFactoryImplementationClass() == null || cdm.getConnectionInterfaceClass() == null
            || cdm.getConnectionImplementationClass() == null)
         return false;

      return true;
   }
View Full Code Here

TOP

Related Classes of org.jboss.metadata.rar.spec.ConnectionDefinitionMetaData

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.