Package javax.jms

Examples of javax.jms.MessageNotWriteableException


   }

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


   }

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

   }

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

   }

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

   }

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

   }

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

   }

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

   }

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

   }

   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

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.