Package javax.jms

Examples of javax.jms.MessageNotReadableException


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


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

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

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

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

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

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

   public int readBytes(byte[] value) throws JMSException
   {
      if (!bodyReadOnly)
      {
         throw new MessageNotReadableException("The message body is writeonly");
      }
      ((JBossBytesMessage)message).checkRead();
      return ((BytesMessage)message).readBytes(value);
   }
View Full Code Here

   public int readBytes(byte[] value, int length) throws JMSException
   {
      if (!bodyReadOnly)
      {
         throw new MessageNotReadableException("The message body is writeonly");
      }
      ((JBossBytesMessage)message).checkRead();
      return ((BytesMessage)message).readBytes(value, length);
   }
View Full Code Here

    protected void checkReadable() throws MessageNotReadableException
    {
        if (!isReadOnly())
        {
            throw new MessageNotReadableException("You need to call reset() to make the message readable");
        }
    }
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.