Package com.bitsofproof.supernode.common

Examples of com.bitsofproof.supernode.common.InMemoryBusConnectionFactory.createConnection()


  @Test
  public void mockTopicTest () throws JMSException
  {
    ConnectionFactory factory = new InMemoryBusConnectionFactory ();
    Connection connection = factory.createConnection ();
    Session session = connection.createSession (false, Session.AUTO_ACKNOWLEDGE);
    MessageProducer producer = session.createProducer (session.createTopic ("test"));
    final MessageConsumer consumer = session.createConsumer (session.createTopic ("test"));
    consumer.setMessageListener (new MessageListener ()
    {
View Full Code Here


  @Test
  public void mockQueueTest () throws JMSException
  {
    ConnectionFactory factory = new InMemoryBusConnectionFactory ();
    Connection connection = factory.createConnection ();
    final Session session = connection.createSession (false, Session.AUTO_ACKNOWLEDGE);
    MessageProducer producer = session.createProducer (session.createTopic ("test"));
    final MessageConsumer consumer = session.createConsumer (session.createTopic ("test"));
    consumer.setMessageListener (new MessageListener ()
    {
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.