Package javax.jms

Examples of javax.jms.MessageNotWriteableException


   public void writeShort(short value) throws JMSException
   {
      if (bodyReadOnly)
      {
         throw new MessageNotWriteableException("the message body is read-only");
      }
      bodyChange();
      ((BytesMessage)message).writeShort(value);
   }
View Full Code Here


   public void writeChar(char value) throws JMSException
   {
      if (bodyReadOnly)
      {
         throw new MessageNotWriteableException("the message body is read-only");
      }
      bodyChange();
      ((BytesMessage)message).writeChar(value);
   }
View Full Code Here

   public void writeInt(int value) throws JMSException
   {
      if (bodyReadOnly)
      {
         throw new MessageNotWriteableException("the message body is read-only");
      }
      bodyChange();
      ((BytesMessage)message).writeInt(value);
   }
View Full Code Here

   public void writeLong(long value) throws JMSException
   {
      if (bodyReadOnly)
      {
         throw new MessageNotWriteableException("the message body is read-only");
      }
      bodyChange();
      ((BytesMessage)message).writeLong(value);
   }
View Full Code Here

   public void writeFloat(float value) throws JMSException
   {
      if (bodyReadOnly)
      {
         throw new MessageNotWriteableException("the message body is read-only");
      }
      bodyChange();
      ((BytesMessage)message).writeFloat(value);
   }
View Full Code Here

   public void writeDouble(double value) throws JMSException
   {
      if (bodyReadOnly)
      {
         throw new MessageNotWriteableException("the message body is read-only");
      }
      bodyChange();
      ((BytesMessage)message).writeDouble(value);
   }
View Full Code Here

   public void writeUTF(String value) throws JMSException
   {
      if (bodyReadOnly)
      {
         throw new MessageNotWriteableException("the message body is read-only");
      }
      bodyChange();
      ((BytesMessage)message).writeUTF(value);
   }
View Full Code Here

   public void writeBytes(byte[] value) throws JMSException
   {
      if (bodyReadOnly)
      {
         throw new MessageNotWriteableException("the message body is read-only");
      }
      bodyChange();
      ((BytesMessage)message).writeBytes(value);
   }
View Full Code Here

   public void writeBytes(byte[] value, int offset, int length) throws JMSException
   {
      if (bodyReadOnly)
      {
         throw new MessageNotWriteableException("the message body is read-only");
      }
      bodyChange();
      ((BytesMessage)message).writeBytes(value, offset, length);
   }
View Full Code Here

   public void writeObject(Object value) throws JMSException
   {
      if (bodyReadOnly)
      {
         throw new MessageNotWriteableException("the message body is read-only");
      }
      bodyChange();
      ((BytesMessage)message).writeObject(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.