Package org.objectweb.joram.client.jms

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


      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


      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

    javax.jms.QueueConnectionFactory qcf =
      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);
View Full Code Here

    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,
                                  "org.objectweb.joram.client.jms.tcp.ReliableSSLTcpClient");
View Full Code Here

    ConnectionFactory cf = HATcpConnectionFactory.create("hajoram://localhost:2560,localhost:2561,localhost:2562");
    ((HATcpConnectionFactory) cf).getParameters().connectingTimer = 30;

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

    Topic topic = Topic.create(0,"topic");

    AdminModule.disconnect();


    Connection cnx = cf.createConnection("anonymous", "anonymous");
View Full Code Here

    topicProps.put("Joram#0:type=Destination,name=queue",
                   "NbMsgsDeliverSinceCreation,NbMsgsReceiveSinceCreation,PendingMessageCount,NbMsgsSentToDMQSinceCreation");
    topicProps.put("Joram#0:type=Destination,name=topic",
                   "NbMsgsDeliverSinceCreation,NbMsgsReceiveSinceCreation,NbMsgsSentToDMQSinceCreation");
   
    Topic mTopic = Topic.create(0, "MonitoringTopic", Topic.ACQUISITION_TOPIC, topicProps);
    mTopic.setFreeReading();
    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);
View Full Code Here

      HATcpConnectionFactory.create("hajoram://localhost:2560,localhost:2561,localhost:2562");
    ((HATcpConnectionFactory) tcf).getParameters().connectingTimer = 30;
   
    AdminModule.connect(tcf, "root", "root");

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

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

    AdminModule.disconnect();
    System.out.println("Admin closed.");
  }
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);
    jndiCtx.bind("queue", queue);
    jndiCtx.bind("topic", topic);
View Full Code Here

                                 String className,
                                 Properties prop) throws ConnectException, AdminException {
    CreateDestinationRequest cdr = new CreateDestinationRequest(serverId, name, className, prop, Topic.TOPIC_TYPE);
    CreateDestinationReply reply = (CreateDestinationReply) doRequest(cdr);
   
    Topic topic = Topic.createTopic(reply.getId(), name);

    if (AdminModule.wrapper != this)
      topic.setWrapper(this);

    return topic;
  }
View Full Code Here

    clusterCF.addConnectionFactory("server0", cf0);
    clusterCF.addConnectionFactory("server1", cf1);
    clusterCF.addConnectionFactory("server2", cf2);
    ictx.rebind("clusterCF", clusterCF);

    Topic topic0 = Topic.create(0);
    Topic topic1 = Topic.create(1);
    Topic topic2 = Topic.create(2);
   
    System.out.println("topic0 = " + topic0);
    System.out.println("topic1 = " + topic1);
    System.out.println("topic2 = " + topic2);
View Full Code Here

TOP

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

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.