Package org.hornetq.jms.tests.message

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


   private final String obj = new String("stringobject");

   @Override
   protected Message createForeignMessage() throws Exception
   {
      SimpleJMSMapMessage m = new SimpleJMSMapMessage();

      log.debug("creating JMS Message type " + m.getClass().getName());

      m.setBoolean("boolean1", true);
      m.setChar("char1", 'c');
      m.setDouble("double1", 1.0D);
      m.setFloat("float1", 2.0F);
      m.setInt("int1", 3);
      m.setLong("long1", 4L);
      m.setObject("object1", obj);
      m.setShort("short1", (short)5);
      m.setString("string1", "stringvalue");

      return m;
   }
View Full Code Here


   private final String obj = new String("stringobject");

   @Override
   protected Message createForeignMessage() throws Exception
   {
      SimpleJMSMapMessage m = new SimpleJMSMapMessage();

      log.debug("creating JMS Message type " + m.getClass().getName());

      m.setBoolean("boolean1", true);
      m.setChar("char1", 'c');
      m.setDouble("double1", 1.0D);
      m.setFloat("float1", 2.0F);
      m.setInt("int1", 3);
      m.setLong("long1", 4L);
      m.setObject("object1", obj);
      m.setShort("short1", (short)5);
      m.setString("string1", "stringvalue");

      return m;
   }
View Full Code Here

TOP

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

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.