Examples of createConnection()


Examples of com.sun.messaging.jmq.jmsserver.service.imq.IMQDualThreadService.createConnection()

        name = "mqdirect2";
    }
    public DirectBrokerConnection getConnection() {
        IMQDualThreadService service = (IMQDualThreadService)Globals.getServiceManager().getService(name);
        try {
            return service.createConnection();
        } catch (Exception ex) {
            Globals.getLogger().logStack(Logger.WARNING, "L10N-XXX: Unable to create connection", ex);
        }
        return null;
    }
View Full Code Here

Examples of com.sun.messaging.jmq.jmsserver.service.imq.IMQEmbeddedService.createConnection()

    }

    public DirectBrokerConnection getConnection() {
        IMQEmbeddedService service = (IMQEmbeddedService)Globals.getServiceManager().getService(name);
        try {
            return service.createConnection();
        } catch (Exception ex) {
            Globals.getLogger().logStack(Logger.WARNING, "L10N-XXX: Unable to create connection", ex);
        }
        return null;
    }
View Full Code Here

Examples of com.sun.star.sdbcx.createConnection()

  public static void main(String argv[]) throws java.lang.Exception
  {
    try{
      rSmgr = connect("socket,host=localhost,port=8100");
                        sdbcx test = new sdbcx(rSmgr);
                        test.createConnection();
                        test.displayTableProperties();
                        // now we dispose the connection to close it
                        XComponent xComponent = (XComponent)UnoRuntime.queryInterface(XComponent.class,con);
                        if(xComponent != null)
                        {
View Full Code Here

Examples of com.tibco.tibjms.TibjmsConnectionFactory.createConnection()

  }
  @Test
  public void testConnect() throws JMSException {
    TibjmsConnectionFactory cf = new TibjmsConnectionFactory() ;
    cf.setServerUrl("tcp://ldnmwaredev01.eur.ad.tullib.com:7222") ;
    Connection c = cf.createConnection() ;
    c.close() ;
  }
 
  @Test
  public void testConnectWithProxy() throws Exception {
View Full Code Here

Examples of com.vhdlprogramer.DataBase.createConnection()

    db.setTable("entity");
    String cols[]={"name", "config_id"};
    String vals[]={this.name,"0"};
    String types[]={"varchar","int"};
   
    db.createConnection();
    db.insert(cols, vals, types);
    db.closeConnection();
   
  }
  public String toString(){
View Full Code Here

Examples of de.mhus.lib.cao.db.DbDriver.createConnection()

    // create cao
    DbDriver driver = new DbDriver();
    driver.initialize("db", new HashConfig(), MSingleton.instance().getActivator());
    CaoForm dbconf = driver.createConfiguration();
    dbconf.setConfig(config);
    CaoConnection con = driver.createConnection(dbconf);
    CaoApplication app = con.getApplication("content");
    CaoElement r = app.queryElement("root");
    printOut(2,r);
  }
View Full Code Here

Examples of javax.jms.ConnectionFactory.createConnection()

    ictx = new InitialContext();
    Topic topic = (Topic) ictx.lookup("topic");
    ConnectionFactory tcf = (ConnectionFactory) ictx.lookup("tcf");
    ictx.close();

    Connection cnx = tcf.createConnection();
    Session session = cnx.createSession(false, javax.jms.Session.AUTO_ACKNOWLEDGE);
    TopicSubscriber subscriber = session.createDurableSubscriber(topic, "durable");
    subscriber.setMessageListener(new MsgListener());

    cnx.start();
View Full Code Here

Examples of javax.jms.ConnectionFactory.createConnection()

            conn = ((XAConnectionFactory)cf).createXAConnection(username, password);
         }
         else
         {
            if (trace) { log.trace("Creating a non XA connection"); }
            conn = cf.createConnection(username, password);           
        
      }
      return conn;
   }
   
View Full Code Here

Examples of javax.jms.ConnectionFactory.createConnection()

         Process p = spawnVM(serialized);

         // read the message from the queue

         Connection conn = cf.createConnection();
         conn.start();
         Session sess = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);
         MessageConsumer cons = sess.createConsumer(queue);
         TextMessage tm = (TextMessage)cons.receive(5000);
View Full Code Here

Examples of javax.jms.ConnectionFactory.createConnection()

   {
      ConnectionFactory cf = (ConnectionFactory)ic.lookup("/ConnectionFactory");
      Queue queue = (Queue)ic.lookup("/queue/StressTestQueue");
      drainDestination(cf, queue);

      Connection conn = cf.createConnection();

      Session[] sessions = new Session[PRODUCER_COUNT];
      MessageProducer[] producers = new MessageProducer[PRODUCER_COUNT];

      for(int i = 0; i < PRODUCER_COUNT; i++)
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.