Package javax.jms

Examples of javax.jms.MessageNotWriteableException


   }

   public void setObjectProperty(String name, Object value) throws JMSException
   {
      if (propertiesReadOnly)
         throw new MessageNotWriteableException("Properties are read-only");
      headerChange();
      message.setObjectProperty(name, value);
   }
View Full Code Here


    protected void checkWritableProperties() throws MessageNotWriteableException
    {
        if (_readableProperties)
        {
            throw new MessageNotWriteableException("You need to call clearProperties() to make the message writable");
        }
    }
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 writeBoolean(final boolean value) throws JMSException
   {
      if (!bodyWriteOnly)
      {
         throw new MessageNotWriteableException("the message body is read-only");
      }
      try
      {
         p.writeBoolean(value);
      }
View Full Code Here

   public void writeByte(final byte value) throws JMSException
   {
      if (!bodyWriteOnly)
      {
         throw new MessageNotWriteableException("the message body is read-only");
      }
      try
      {
         p.writeByte(value);
      }
View Full Code Here

   public void writeShort(final short value) throws JMSException
   {
      if (!bodyWriteOnly)
      {
         throw new MessageNotWriteableException("the message body is read-only");
      }
      try
      {
         p.writeShort(value);
      }
View Full Code Here

   public void writeChar(final char value) throws JMSException
   {
      if (!bodyWriteOnly)
      {
         throw new MessageNotWriteableException("the message body is read-only");
      }
      try
      {
         p.writeChar(value);
      }
View Full Code Here

   public void writeInt(final int value) throws JMSException
   {
      if (!bodyWriteOnly)
      {
         throw new MessageNotWriteableException("the message body is read-only");
      }
      try
      {
         p.writeInt(value);
      }
View Full Code Here

   public void writeLong(final long value) throws JMSException
   {
      if (!bodyWriteOnly)
      {
         throw new MessageNotWriteableException("the message body is read-only");
      }
      try
      {
         p.writeLong(value);
      }
View Full Code Here

   public void writeFloat(final float value) throws JMSException
   {
      if (!bodyWriteOnly)
      {
         throw new MessageNotWriteableException("the message body is read-only");
      }
      try
      {
         p.writeFloat(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.