Package com.caucho.jms.message

Examples of com.caucho.jms.message.ObjectMessageImpl


   * Reads an object message.
   */
  private ObjectMessageImpl readObjectMessage(InputStream is)
    throws IOException, JMSException
  {
    ObjectMessageImpl msg = new ObjectMessageImpl();

    if (is == null)
      return msg;

    ObjectInputStream in = new ContextLoaderObjectInputStream(is);

    try {
      Object obj = in.readObject();
      msg.setObject((java.io.Serializable) obj);
    } catch (IOException e) {
      throw e;
    } catch (Exception e) {
      throw new JmsExceptionWrapper(e);
    }
View Full Code Here


  public ObjectMessage createObjectMessage()
    throws JMSException
  {
    checkOpen();
   
    return new ObjectMessageImpl();
  }
View Full Code Here

      else if (payload instanceof String) {
        msg = new TextMessageImpl((String) payload);
        msg.setJMSMessageID(entry.getMsgId());
      }
      else {
        msg = new ObjectMessageImpl((Serializable) payload);
        msg.setJMSMessageID(entry.getMsgId());
      }

      msg.setReceive();
     
View Full Code Here

        else if (payload instanceof String) {
          message = new TextMessageImpl((String) payload);
          message.setJMSMessageID(msgId);
        }
        else {
          message = new ObjectMessageImpl((Serializable) payload);
          message.setJMSMessageID(msgId);
        }

        if (_selector == null || _selector.isMatch(message)) {
          // XXX: only if XA
View Full Code Here

      else if (payload instanceof String) {
  msg = new TextMessageImpl((String) payload);
  msg.setJMSMessageID(entry.getMsgId());
      }
      else {
  msg = new ObjectMessageImpl((Serializable) payload);
  msg.setJMSMessageID(entry.getMsgId());
      }

      msg.setReceive();
     
View Full Code Here

  else if (payload instanceof String) {
    message = new TextMessageImpl((String) payload);
    message.setJMSMessageID(msgId);
  }
  else {
    message = new ObjectMessageImpl((Serializable) payload);
    message.setJMSMessageID(msgId);
  }

  if (_selector == null || _selector.isMatch(message)) {
    // XXX: only if XA
View Full Code Here

  public ObjectMessage createObjectMessage()
    throws JMSException
  {
    checkOpen();
   
    return new ObjectMessageImpl();
  }
View Full Code Here

   * Reads an object message.
   */
  private ObjectMessageImpl readObjectMessage(InputStream is)
    throws IOException, JMSException
  {
    ObjectMessageImpl msg = new ObjectMessageImpl();

    if (is == null)
      return msg;

    ObjectInputStream in = new ContextLoaderObjectInputStream(is);

    try {
      Object obj = in.readObject();
      msg.setObject((java.io.Serializable) obj);
    } catch (IOException e) {
      throw e;
    } catch (Exception e) {
      throw new JmsExceptionWrapper(e);
    }
View Full Code Here

TOP

Related Classes of com.caucho.jms.message.ObjectMessageImpl

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.