Examples of createConnection()


Examples of javax.jms.ConnectionFactory.createConnection()

         ConnectionFactory cf = (ConnectionFactory)ic0.lookup("/ConnectionFactory");
         Queue queue0 = (Queue)ic0.lookup("/queue/testDistributedQueue");
         Queue queue1 = (Queue)ic1.lookup("/queue/testDistributedQueue");

         conn = cf.createConnection();

         // make sure we're connecting to node 1

         assertEquals(0, ((JBossConnection)conn).getServerID());
View Full Code Here

Examples of javax.jms.ConnectionFactory.createConnection()

         conn.close();

         // create a connection to a different node

         conn = cf.createConnection();

         // make sure we're connecting to node 1

         assertEquals(1, ((JBossConnection)conn).getServerID());
View Full Code Here

Examples of javax.jms.ConnectionFactory.createConnection()

      assertEquals(3, cfDelegate.getDelegates().length);

      ConnectionFactory httpCF = (ConnectionFactory)ic[0].lookup("/HTTPConnectionFactory");
      JBossConnectionFactory jbhttpCF = (JBossConnectionFactory) httpCF;
     
      Connection httpConn = httpCF.createConnection();

      ClientClusteredConnectionFactoryDelegate httpcfDelegate =
         (ClientClusteredConnectionFactoryDelegate)jbhttpCF.getDelegate();

      assertEquals(3, httpcfDelegate.getDelegates().length);
View Full Code Here

Examples of javax.jms.ConnectionFactory.createConnection()


      validateCFs(cfDelegate, httpcfDelegate);

      Connection conn1 = cf.createConnection();
      Connection httpConn1 = httpCF.createConnection();

      assertEquals(1, getServerId(conn1));
      assertEquals(1, getServerId(httpConn1));

      ServerManagement.killAndWait(1);
View Full Code Here

Examples of javax.jms.ConnectionFactory.createConnection()

            (ClientClusteredConnectionFactoryDelegate )jbcf.getDelegate();

         assertSame(RoundRobinLoadBalancingPolicy.class,
            clusteredDelegate.getLoadBalancingPolicy().getClass());

         Connection conn0 = cf.createConnection();

         assertEquals(0, ((JBossConnection)conn0).getServerID());

         Connection conn1 = cf.createConnection();
View Full Code Here

Examples of javax.jms.ConnectionFactory.createConnection()

         Connection conn0 = cf.createConnection();

         assertEquals(0, ((JBossConnection)conn0).getServerID());

         Connection conn1 = cf.createConnection();

         assertEquals(0, ((JBossConnection)conn1).getServerID());

         Connection conn2 = cf.createConnection();
View Full Code Here

Examples of javax.jms.ConnectionFactory.createConnection()

         Connection conn1 = cf.createConnection();

         assertEquals(0, ((JBossConnection)conn1).getServerID());

         Connection conn2 = cf.createConnection();

         assertEquals(0, ((JBossConnection)conn2).getServerID());

         conn0.close();
         conn1.close();
View Full Code Here

Examples of javax.jms.XAConnectionFactory.createConnection()

                        inUseSessionsMap.put(XA_TRANSACTED, new ArrayList<JmsSession>() );
                    }
                    else if (factoryConnection instanceof ConnectionFactory)
                    {
                        final ConnectionFactory factory = (ConnectionFactory)factoryConnection ;
                        jmsConnection = useJMSSecurity ? factory.createConnection(username,password): factory.createConnection();
                    }
                    else
                    {
                        throw new ConnectionException("Unknown factory connection type: " + factoryConnection.getClass().getCanonicalName());
                    }
View Full Code Here

Examples of javax.xml.registry.ConnectionFactory.createConnection()

        Connection connection = null;
        try
        {   // Create the connection, passing it the configuration properties
            ConnectionFactory factory = ConnectionFactory.newInstance();
            factory.setProperties(props);
            connection = factory.createConnection();
            connection.setCredentials(creds);
        } catch (JAXRException e) {
            logger.log(Level.ERROR, "Could not set up a connection to the Registry. " + e.getMessage(), e);
        }
        return connection;
View Full Code Here

Examples of javax.xml.soap.SOAPConnectionFactory.createConnection()

  protected SOAPConnection createSOAPConnection()
  {
    try
    {
      SOAPConnectionFactory scf = SOAPConnectionFactory.newInstance();
      return scf.createConnection();
    }
    catch (UnsupportedOperationException e)
    {
      throw new JRRuntimeException(e);
    }
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.