Package javax.jms

Examples of javax.jms.MessageNotWriteableException


   }
  
   public void writeChar(char value) throws JMSException
   {
      if (bodyReadOnly)
         throw new MessageNotWriteableException("The message body is readonly");
      bodyChange();
      ((StreamMessage)message).writeChar(value);
   }
View Full Code Here


   }
  
   public void writeDouble(double value) throws JMSException
   {
      if (bodyReadOnly)
         throw new MessageNotWriteableException("The message body is readonly");
      bodyChange();
      ((StreamMessage)message).writeDouble(value);
   }
View Full Code Here

   }
  
   public void writeFloat(float value) throws JMSException
   {
      if (bodyReadOnly)
         throw new MessageNotWriteableException("The message body is readonly");
      bodyChange();
      ((StreamMessage)message).writeFloat(value);
   }
View Full Code Here

   }
  
   public void writeInt(int value) throws JMSException
   {
      if (bodyReadOnly)
         throw new MessageNotWriteableException("The message body is readonly");
      bodyChange();
      ((StreamMessage)message).writeInt(value);
   }
View Full Code Here

   }
  
   public void writeLong(long value) throws JMSException
   {
      if (bodyReadOnly)
         throw new MessageNotWriteableException("The message body is readonly");
      bodyChange();
      ((StreamMessage)message).writeLong(value);
   }
View Full Code Here

   }
  
   public void writeObject(Object value) throws JMSException
   {
      if (bodyReadOnly)
         throw new MessageNotWriteableException("The message body is readonly");
      bodyChange();
      ((StreamMessage)message).writeObject(value);
   }
View Full Code Here

   }
  
   public void writeShort(short value) throws JMSException
   {
      if (bodyReadOnly)
         throw new MessageNotWriteableException("The message body is readonly");
      bodyChange();
      ((StreamMessage)message).writeShort(value);
   }
View Full Code Here

   }
  
   public void writeString(String value) throws JMSException
   {
      if (bodyReadOnly)
         throw new MessageNotWriteableException("The message body is readonly");
      bodyChange();
      ((StreamMessage)message).writeString(value);
   }
View Full Code Here

   public void setObject(Serializable object) throws JMSException
   {
      if (bodyReadOnly)
      {
         throw new MessageNotWriteableException("setObject");
      }
      bodyChange();
      ((ObjectMessage)message).setObject(object);
   }
View Full Code Here

   public void setBoolean(String name, boolean value) throws JMSException
   {
      if (bodyReadOnly)
      {
         throw new MessageNotWriteableException("Message is ReadOnly !");
      }
      bodyChange();
      ((MapMessage)message).setBoolean(name, value);
   }
View Full Code Here

TOP

Related Classes of javax.jms.MessageNotWriteableException

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.