Package javax.jms

Examples of javax.jms.MessageNotReadableException


   }

   public float readFloat() throws JMSException
   {
      if (!bodyReadOnly)
         throw new MessageNotReadableException("The message body is writeonly");

      return ((StreamMessage)message).readFloat();
   }
View Full Code Here


   }
  
   public int readInt() throws JMSException
   {
      if (!bodyReadOnly)
         throw new MessageNotReadableException("The message body is writeonly");

      return ((StreamMessage)message).readInt();
   }
View Full Code Here

   }

   public long readLong() throws JMSException
   {
      if (!bodyReadOnly)
         throw new MessageNotReadableException("The message body is writeonly");

      return ((StreamMessage)message).readLong();
   }
View Full Code Here

   }
  
   public Object readObject() throws JMSException
   {
      if (!bodyReadOnly)
         throw new MessageNotReadableException("The message body is writeonly");

      return ((StreamMessage)message).readObject();
   }
View Full Code Here

   }
  
   public short readShort() throws JMSException
   {
      if (!bodyReadOnly)
         throw new MessageNotReadableException("The message body is writeonly");

      return ((StreamMessage)message).readShort();
   }
View Full Code Here

   }
  
   public String readString() throws JMSException
   {
      if (!bodyReadOnly)
         throw new MessageNotReadableException("The message body is writeonly");

      return ((StreamMessage)message).readString();
   }
View Full Code Here

   public long getBodyLength() throws JMSException
   {
      if (!bodyReadOnly)
      {
         throw new MessageNotReadableException("The message body is writeonly");
      }
      return ((BytesMessage)message).getBodyLength();
   }
View Full Code Here

   public boolean readBoolean() throws JMSException
   {
      if (!bodyReadOnly)
      {
         throw new MessageNotReadableException("The message body is writeonly");
      }
      return ((BytesMessage)message).readBoolean();
   }
View Full Code Here

   public byte readByte() throws JMSException
   {
      if (!bodyReadOnly)
      {
         throw new MessageNotReadableException("The message body is writeonly");
      }
      return ((BytesMessage)message).readByte();
   }
View Full Code Here

   public int readUnsignedByte() throws JMSException
   {
      if (!bodyReadOnly)
      {
         throw new MessageNotReadableException("The message body is writeonly");
      }
      return ((BytesMessage)message).readUnsignedByte();
   }
View Full Code Here

TOP

Related Classes of javax.jms.MessageNotReadableException

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.