Package org.jboss.test.deployers.deployer.support

Examples of org.jboss.test.deployers.deployer.support.LocalDataSourceMetaData


      MutableAttachments a1 = (MutableAttachments) ctx1.getPredeterminedManagedObjects();

      DSMetaData dsmd = new DSMetaData();
      dsmd.setDiplayName("deployment1 DS");
      // The base LocalDataSourceMeta
      LocalDataSourceMetaData ds = new LocalDataSourceMetaData();
      ds.setJndiName("java:DefaultDS1");
      ds.setMaxSize(100);
      ds.setMinSize(10);
      ds.setPassword("password1".toCharArray());
      ds.setUsername("username1");
      SecMetaData smd1 = new SecMetaData();
      smd1.setDomain("java:/jaas/domain1");
      ds.setSecurityMetaData(smd1);

      ArrayList<ConnMetaData> deployments = new ArrayList<ConnMetaData>();
      deployments.add(ds);
      dsmd.setDeployments(deployments);
View Full Code Here


      Deployment ctx1 = createSimpleDeployment("deployment1");
      DSMetaData dsmd = new DSMetaData();
      dsmd.setDiplayName("deployment1 DS");
      // TODO: dsmd.setUrl(new URL("vfsfile:/tmp/some-ds.xml"));
      // The base LocalDataSourceMeta
      LocalDataSourceMetaData ds = new LocalDataSourceMetaData();
      ds.setJndiName("java:DefaultDS1");
      ds.setMaxSize(100);
      ds.setMinSize(10);
      ds.setPassword("password1".toCharArray());
      ds.setUsername("username1");
      SecMetaData smd1 = new SecMetaData();
      smd1.setDomain("java:/jaas/domain1");
      ds.setSecurityMetaData(smd1);

      XADataSourceMetaData xads = new XADataSourceMetaData();
      xads.setJndiName("java:DefaultXADS2");
      ds.setMaxSize(100);
      ds.setMinSize(10);
      ds.setPassword("password2".toCharArray());
      ds.setUsername("username2");
      xads.setXaDataSourceClass("org.jboss.xa.SomeXADS");
      xads.setXaResourceTimeout(300);
      SecMetaData smd2 = new SecMetaData();
      smd2.setDomain("java:/jaas/domain2");
      xads.setSecurityMetaData(smd2);
View Full Code Here

   @SuppressWarnings("unchecked")
   public void testDSMetaDataManagedObjectFactoryInit()
   {
      ManagedObjectFactory mof = ManagedObjectFactory.getInstance();
      DSMetaData dsmd = new DSMetaData();
      LocalDataSourceMetaData ds = new LocalDataSourceMetaData();
      XADataSourceMetaData xads = new XADataSourceMetaData();
      ArrayList<ConnMetaData> deployments = new ArrayList<ConnMetaData>();
      deployments.add(ds);
      deployments.add(xads);
      dsmd.setDeployments(deployments);
View Full Code Here

TOP

Related Classes of org.jboss.test.deployers.deployer.support.LocalDataSourceMetaData

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.