Package org.jboss.example.jms.statelessclustered.bean

Examples of org.jboss.example.jms.statelessclustered.bean.StatelessClusteredSessionExample


      InitialContext ic = new InitialContext();
     
      StatelessClusteredSessionExampleHome home =
         (StatelessClusteredSessionExampleHome)ic.lookup("ejb/StatelessClusteredSessionExample");           
     
      StatelessClusteredSessionExample bean = home.create();

      String queueName = getDestinationJNDIName();
      String text = "Hello!";

      bean.drain(queueName);

      bean.send("Hello!", queueName);
      log("The " + text + " message was successfully sent to the " + queueName + " queue");

      int num = bean.browse(queueName);
      bean.remove();

      log("Queue browse result: " + num);

      Queue queue = (Queue)ic.lookup(queueName);
View Full Code Here

TOP

Related Classes of org.jboss.example.jms.statelessclustered.bean.StatelessClusteredSessionExample

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.