Examples of createQueue()


Examples of javax.jms.TopicSession.createQueue()

      TopicConnection c = (TopicConnection)cf.createConnection();
      TopicSession s = c.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
     
      try
      {
         s.createQueue("TestQueue");
         fail("should throw IllegalStateException");
      }
      catch(javax.jms.IllegalStateException e)
      {
         // OK
View Full Code Here

Examples of javax.jms.XASession.createQueue()

        XASession session = xaConnection.createXASession();
        XAResource resource = session.getXAResource();
        Xid tid = createXid();
        resource.start(tid, XAResource.TMNOFLAGS);

        MessageProducer producer = session.createProducer(session.createQueue(this.getClass().getName()));
        Message message = session.createTextMessage("Sample Message");
        producer.send(message);
        resource.end(tid, XAResource.TMSUCCESS);
        try {
            LOG.debug("Calling XA prepare(), expecting an exception");
View Full Code Here

Examples of oracle.AQ.AQQueueTable.createQueue()

          AQQueueProperty prop = new AQQueueProperty();
          // TODO The setMultiConsumer() is not yet available in this version of the
          // aqapi.jar library.
          //if (multiconsumer) prop.setMultiConsumer(true);

          AQQueue queue = table.createQueue (name, prop);
          queue.start();
       }

    public static void dropQueue(AQjmsSession session, String schema, String name) throws AQException, JMSException {
        dropQueue(session, schema, "queue_" + name, /*force*/false);
 
View Full Code Here

Examples of org.apache.activemq.ActiveMQSession.createQueue()

        broker.start();

        ActiveMQConnectionFactory connFac = new ActiveMQConnectionFactory(url);
        Connection conn = connFac.createConnection();
        ActiveMQSession session = (ActiveMQSession)conn.createSession(true, Session.AUTO_ACKNOWLEDGE);
        queue = session.createQueue("CheckAccounts");
        MessageProducer producer = session.createProducer(queue);
        MapMessage map = session.createMapMessage();

        for (int i = 0; i < 3; i++) {
            String accountNumber = "C00" + (i + 1);
View Full Code Here

Examples of org.apache.oodt.cas.resource.jobqueue.JobQueueFactory.createQueue()

    JobQueueFactory factory = null;

    try {
      clazz = Class.forName(serviceFactory);
      factory = (JobQueueFactory) clazz.newInstance();
      return factory.createQueue();
    } catch (ClassNotFoundException e) {
      e.printStackTrace();
      LOG.log(Level.WARNING,
          "ClassNotFoundException when loading jobqueue factory class "
              + serviceFactory + " Message: " + e.getMessage());
View Full Code Here

Examples of org.apache.qpid.client.AMQSession.createQueue()

            throws AMQException, JMException, IOException, JMSException
    {
        AMQSession session = (AMQSession) connection.createSession(false,
                                                                   Session.AUTO_ACKNOWLEDGE);

        session.createQueue(new AMQShortString(queueName),
                            autoDelete, durable, exclusive);

        validateQueueViaJMX(queueName, exclusive ? connection.getClientID() : null, durable, autoDelete);
    }
View Full Code Here

Examples of org.apache.qpid.server.model.VirtualHost.createQueue()

                                return;
                            }

                            // I don't *think* that it make sense to allow setting exclusive or autoDelete to
                            // a queue created from config.
                            Queue queue = vhost.createQueue(nameParser.getQueueName(), State.ACTIVE, durable, false,
                                                            LifetimePolicy.PERMANENT, 0l, properties);

                            // Set the queue's alternateExchange, which is just a little bit involved......
                            // The queue.setAttribute() method needs an org.apache.qpid.server.model.Exchange instance
                            // not just a name, so we look up org.apache.qpid.server.qmf2.agentdata.Exchange by ID
View Full Code Here

Examples of org.apache.qpid.server.model.VirtualHost.createQueue()

                                    Exchange altEx = ex.getExchange();
                                    attributes.put(Queue.ALTERNATE_EXCHANGE, altEx.getId());
                                }
                            }
                            Queue queue = vhost.createQueue(attributes);
                        }
                        else if (type.equals("binding")) // create binding.
                        {
                            Exchange exchange = nameParser.getExchange();
                            if (exchange == null)
View Full Code Here

Examples of org.apache.qpid.server.store.DurableConfigurationStore.createQueue()

                                FieldTable ftArgs = new FieldTable();
                                for(Map.Entry<String, Object> entry : args.entrySet())
                                {
                                    ftArgs.put(new AMQShortString(entry.getKey()), entry.getValue());
                                }
                                store.createQueue(queue, ftArgs);
                            }
                            else
                            {
                                store.createQueue(queue);
                            }
View Full Code Here

Examples of org.apache.qpid.server.store.MessageStore.createQueue()

                else
                {
                    queue = createQueue(queueName, body, virtualHost, session);
                    if (queue.isDurable() && !queue.isAutoDelete())
                    {
                        store.createQueue(queue, body.getArguments());
                    }
                    queueRegistry.registerQueue(queue);
                    if (autoRegister)
                    {
                        Exchange defaultExchange = exchangeRegistry.getDefaultExchange();
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.