Package org.hornetq.jms.tests.message

Examples of org.hornetq.jms.tests.message.SimpleJMSTextMessage


   }

   public void testForeignMessageSetDestination() throws Exception
   {
      // create a Bytes foreign message
      SimpleJMSTextMessage txt = new SimpleJMSTextMessage("hello from Brazil!");
      txt.setJMSDestination(null);

      queueProd.send(txt);

      ProxyAssertSupport.assertNotNull(txt.getJMSDestination());

      TextMessage tm = (TextMessage)queueCons.receive();
      ProxyAssertSupport.assertNotNull(tm);
      ProxyAssertSupport.assertEquals("hello from Brazil!", txt.getText());
   }
View Full Code Here


{

   @Override
   protected Message createForeignMessage() throws Exception
   {
      SimpleJMSTextMessage m = new SimpleJMSTextMessage();
      m.setText("this is the payload");
      return m;
   }
View Full Code Here

         // send a message that is not created by the session

         cconn.start();

         Message m = new SimpleJMSTextMessage("something");
         p.send(m);

         TextMessage rec = (TextMessage)c.receive(3000);

         ProxyAssertSupport.assertEquals("something", rec.getText());
View Full Code Here

   }

   public void testForeignMessageSetDestination() throws Exception
   {
      // create a Bytes foreign message
      SimpleJMSTextMessage txt = new SimpleJMSTextMessage("hello from Brazil!");
      txt.setJMSDestination(null);

      queueProd.send(txt);

      ProxyAssertSupport.assertNotNull(txt.getJMSDestination());

      TextMessage tm = (TextMessage)queueCons.receive();
      ProxyAssertSupport.assertNotNull(tm);
      ProxyAssertSupport.assertEquals("hello from Brazil!", txt.getText());
   }
View Full Code Here

{

   @Override
   protected Message createForeignMessage() throws Exception
   {
      SimpleJMSTextMessage m = new SimpleJMSTextMessage();
      m.setText("this is the payload");
      return m;
   }
View Full Code Here

         // send a message that is not created by the session

         cconn.start();

         Message m = new SimpleJMSTextMessage("something");
         p.send(m);

         TextMessage rec = (TextMessage)c.receive(3000);

         ProxyAssertSupport.assertEquals("something", rec.getText());
View Full Code Here

   }

   public void testForeignMessageSetDestination() throws Exception
   {
      // create a Bytes foreign message
      SimpleJMSTextMessage txt = new SimpleJMSTextMessage("hello from Brazil!");
      txt.setJMSDestination(null);

      queueProd.send(txt);

      ProxyAssertSupport.assertNotNull(txt.getJMSDestination());

      TextMessage tm = (TextMessage)queueCons.receive();
      ProxyAssertSupport.assertNotNull(tm);
      ProxyAssertSupport.assertEquals("hello from Brazil!", txt.getText());
   }
View Full Code Here

         // send a message that is not created by the session

         cconn.start();

         Message m = new SimpleJMSTextMessage("something");
         p.send(m);

         TextMessage rec = (TextMessage)c.receive(3000);

         ProxyAssertSupport.assertEquals("something", rec.getText());
View Full Code Here

TOP

Related Classes of org.hornetq.jms.tests.message.SimpleJMSTextMessage

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.