Package org.objectweb.joram.client.jms

Examples of org.objectweb.joram.client.jms.Queue


      if (refAddr == null) break;

      strbuf.setLength(0);
      strbuf.append("cluster#").append(i).append(".destName");
      if (isQueue()) {
        dest = new Queue((String) ref.get(strbuf.toString()).getContent());
      } else {
        dest = new Topic((String) ref.get(strbuf.toString()).getContent());
      }
      cluster.put((String) refAddr.getContent(), dest);
      i++;
View Full Code Here


      if (key == null) break;

      strbuf.setLength(0);
      strbuf.append("cluster#").append(i).append(".destName");
      if (isQueue()) {
        dest = new Queue((String) h.get(strbuf.toString()));
      } else {
        dest = new Topic((String) h.get(strbuf.toString()));
      }
      cluster.put(key, dest);
      i++;
View Full Code Here

      QueueTcpConnectionFactory.create("localhost", 16010);
    javax.jms.TopicConnectionFactory tcf =
      TopicTcpConnectionFactory.create("localhost", 16010);

    Topic tOrders = Topic.create(0);
    Queue qItems = Queue.create(0);
    Queue qCheck = Queue.create(0);
    Queue qChecked = Queue.create(0);
    Queue qBills = Queue.create(0);
    Queue qDelivery = Queue.create(0);

    // Setting access permissions:
    tOrders.setWriter(web);
    tOrders.setReader(billing);
    tOrders.setReader(inventory);
    tOrders.setReader(customer);
    qCheck.setWriter(billing);
    qCheck.setReader(control);
    qChecked.setWriter(control);
    qChecked.setReader(billing);
    qBills.setWriter(billing);
    qBills.setReader(customer);
    qItems.setWriter(inventory);
    qItems.setReader(customer);
    qDelivery.setWriter(customer);
    qDelivery.setReader(delivery);

    // Binding objects in JNDI:
    javax.naming.Context jndiCtx = new javax.naming.InitialContext();
    jndiCtx.bind("qcf", qcf);
    jndiCtx.bind("tcf", tcf);
View Full Code Here

    System.out.println();
    System.out.println("SSL Classic administration...");

    AdminModule.connect("root", "root", 60, "org.objectweb.joram.client.jms.tcp.ReliableSSLTcpClient");

    Queue queue = Queue.create("queue");
    Topic topic = Topic.create("topic");
   
    User.create("anonymous", "anonymous");

    queue.setFreeReading();
    topic.setFreeReading();
    queue.setFreeWriting();
    topic.setFreeWriting();

    javax.jms.ConnectionFactory cf =
      TcpConnectionFactory.create("localhost",
                                  16010,
View Full Code Here

    mTopic.setFreeWriting();
    jndiCtx.bind("MonitoringTopic", mTopic);
   
    Properties queueProps = new Properties();
    queueProps.put("acquisition.className", "org.objectweb.joram.mom.dest.MonitoringAcquisition");
    Queue mQueue = Queue.create(0, "MonitoringQueue", Queue.ACQUISITION_QUEUE, queueProps);
    mQueue.setFreeReading();
    mQueue.setFreeWriting();
    jndiCtx.bind("MonitoringQueue", mQueue);
   
//    User.create("anonymous", "anonymous");

//     cf = TcpConnectionFactory.create("localhost", 16010);
View Full Code Here

    javax.jms.ConnectionFactory cf = TcpConnectionFactory.create("localhost", 16010);

    AdminModule.connect(cf, "root", "root");

    Queue queue = Queue.create(1, "queue");
    Topic topic = Topic.create(1, "topic");
   
    User.create("anonymous", "anonymous", 0);

    queue.setFreeReading();
    queue.setFreeWriting();
    topic.setFreeReading();
    topic.setFreeWriting();

    javax.naming.Context jndiCtx = new javax.naming.InitialContext();
    jndiCtx.bind("cf", cf);
View Full Code Here

   */
  public final Queue getDefaultDMQ(int serverId) throws ConnectException, AdminException {
    String reply = getDefaultDMQId(serverId);
    if (reply == null) return null;

    return new Queue(reply);
  }
View Full Code Here

                                 String className,
                                 Properties prop) throws ConnectException, AdminException {
    CreateDestinationRequest cdr = new CreateDestinationRequest(serverId, name, className, prop, Queue.QUEUE_TYPE);
    CreateDestinationReply reply = (CreateDestinationReply) doRequest(cdr);
   
    Queue queue = Queue.createQueue(reply.getId(), name);
   
    if (AdminModule.wrapper != this)
      queue.setWrapper(this);

    return queue;
  }
View Full Code Here

                                                                "org.objectweb.joram.mom.dest.Queue",
                                                                null,
                                                                Queue.QUEUE_TYPE);
    CreateDestinationReply reply = (CreateDestinationReply) doRequest(cdr);
   
    Queue dmq = DeadMQueue.createDeadMQueue(reply.getId(), name);
   
    if (AdminModule.wrapper != this)
      dmq.setWrapper(this);

    return dmq;
  }
View Full Code Here

    AdminModule.connect(cf, "root", "root");

    User.create("anonymous", "anonymous", 0);   


    Queue dmq = Queue.create(0);
    dmq.setFreeReading();
    dmq.setFreeWriting();
   
    Queue queue1 = Queue.create(0);
    queue1.setFreeReading();
    queue1.setFreeWriting();

    queue1.setDMQ(dmq);
    queue1.setThreshold(2);
   
    Queue queue2 = Queue.create(0);
    queue2.setDMQ(dmq);

//    Queue queue3 = Queue.create(0);

    javax.naming.Context jndiCtx = new javax.naming.InitialContext();
    jndiCtx.bind("queue1", queue1);
View Full Code Here

TOP

Related Classes of org.objectweb.joram.client.jms.Queue

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.