Package org.jboss.jms.message

Examples of org.jboss.jms.message.JBossObjectMessage


         {
            messageToSend = new JBossMapMessage((MapMessage)m,0);
         }
         else if(m instanceof ObjectMessage)
         {
            messageToSend = new JBossObjectMessage((ObjectMessage)m,0);
         }
         else if(m instanceof StreamMessage)
         {
            messageToSend = new JBossStreamMessage((StreamMessage)m,0);
         }
View Full Code Here


      return new MapMessageProxy(jbm);     
   }
  
   public Object handleCreateObjectMessage(Invocation invocation) throws Throwable
   {
      JBossObjectMessage jbm = new JBossObjectMessage(0);
      
      MethodInvocation mi = (MethodInvocation)invocation;
     
      if (mi.getArguments() != null)
      {
         jbm.setObject((Serializable)mi.getArguments()[0]);
      }
     
      return new ObjectMessageProxy(jbm);
   }
View Full Code Here

  
   protected Message createMessage(byte i, boolean reliable) throws Exception
   {
      HashMap coreHeaders = generateFilledMap(true);        
              
      JBossObjectMessage m =
         new JBossObjectMessage(i,
               reliable,
               System.currentTimeMillis() + 1000 * 60 * 60,
               System.currentTimeMillis(),
               i,
               coreHeaders,
               null);
     
      setDestination(m, i);
      setReplyTo(m, i);    
      m.setJMSType("testType");
      setCorrelationID(m, i);
     
      m.setPayload(new WibblishObject());
      return m;     
   }
View Full Code Here

      {
         m = new JBossMessage();
      }
      else if (type == JBossObjectMessage.TYPE) //2
      {
         m = new JBossObjectMessage();
      }
      else if (type == JBossTextMessage.TYPE//3
      {
         m = new JBossTextMessage();
      }
View Full Code Here

                                 timestamp, priority, headers, payload);
            break;
         }
         case JBossObjectMessage.TYPE:
         {
            m =  new JBossObjectMessage(messageID, reliable, expiration,
                                        timestamp, priority, headers, payload);
            break;
         }
         case JBossTextMessage.TYPE:
         {
View Full Code Here

      return new MapMessageProxy(jbm);     
   }
  
   public Object handleCreateObjectMessage(Invocation invocation) throws Throwable
   {
      JBossObjectMessage jbm = new JBossObjectMessage(0);
      
      MethodInvocation mi = (MethodInvocation)invocation;
     
      if (mi.getArguments() != null && mi.getArguments().length > 0)
      {
         jbm.setObject((Serializable)mi.getArguments()[0]);
      }
     
      return new ObjectMessageProxy(jbm);
   }
View Full Code Here

         {
            messageToSend = new JBossMapMessage((MapMessage)m,0);
         }
         else if(m instanceof ObjectMessage)
         {
            messageToSend = new JBossObjectMessage((ObjectMessage)m,0);
         }
         else if(m instanceof StreamMessage)
         {
            messageToSend = new JBossStreamMessage((StreamMessage)m,0);
         }
View Full Code Here

      return new MapMessageProxy(jbm);     
   }
  
   public Object handleCreateObjectMessage(Invocation invocation) throws Throwable
   {
      JBossObjectMessage jbm = new JBossObjectMessage(0);
      
      MethodInvocation mi = (MethodInvocation)invocation;
     
      if (mi.getArguments() != null && mi.getArguments().length > 0)
      {
         jbm.setObject((Serializable)mi.getArguments()[0]);
      }
     
      return new ObjectMessageProxy(jbm);
   }
View Full Code Here

   }


   public void testCopyOnJBossObjectMessage() throws JMSException
   {
      JBossObjectMessage jbossObjectMessage = (JBossObjectMessage)
         (((MessageProxy)queueProducerSession.createObjectMessage()).getMessage());
     
      JBossObjectMessage copy = new JBossObjectMessage(jbossObjectMessage);

      ensureEquivalent(jbossObjectMessage, copy);
   }
View Full Code Here

   public void testCopyOnForeignObjectMessage() throws JMSException
   {
      ObjectMessage foreignObjectMessage = new SimpleJMSObjectMessage();

      JBossObjectMessage copy = new JBossObjectMessage(foreignObjectMessage, 0);

      ensureEquivalent(foreignObjectMessage, copy);
   }
View Full Code Here

TOP

Related Classes of org.jboss.jms.message.JBossObjectMessage

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.