Package com.sun.messaging.jmq.io

Examples of com.sun.messaging.jmq.io.Packet


 
  private void sendReply(IMQConnection con, Packet cmd_msg, int replyType,
      int status, String errMsg) {

    // Send reply
    Packet reply = new Packet(con.useDirectBuffers());
    reply.setPacketType(PacketType.OBJECT_MESSAGE);

    setProperties(reply, replyType, status, errMsg);

    parent.sendReply(con, cmd_msg, reply);
View Full Code Here


            logger.log(Logger.ERROR, errMsg, e);
         }
         }

  // Send reply
  Packet reply = new Packet(con.useDirectBuffers());
  reply.setPacketType(PacketType.OBJECT_MESSAGE);

  setProperties(reply, MessageType.COMPACT_DESTINATION_REPLY,
    status, errMsg);

  parent.sendReply(con, cmd_msg, reply);
View Full Code Here

      }
  }
  }

  // Send reply
  Packet reply = new Packet(con.useDirectBuffers());
  reply.setPacketType(PacketType.OBJECT_MESSAGE);

  setProperties(reply, MessageType.RESET_BROKER_REPLY, status, errMsg,
              null);

  parent.sendReply(con, cmd_msg, reply);
View Full Code Here

        Hashtable h = getBrokerClusterInfo(cb, logger);
        v.add(h);
    }

       // Send reply
       Packet reply = new Packet(con.useDirectBuffers());
       reply.setPacketType(PacketType.OBJECT_MESSAGE);
  
       setProperties(reply, MessageType.GET_CLUSTER_REPLY,
           status, errMsg);
  
       setBodyObject(reply, v);
View Full Code Here

            errMsg = getMessageFromException(ex);
            status = Status.ERROR;
        }
        }

  Packet reply = new Packet(con.useDirectBuffers());
  reply.setPacketType(PacketType.OBJECT_MESSAGE);

  setProperties(reply, MessageType.DESTROY_DURABLE_REPLY,
    status, errMsg);

  parent.sendReply(con, cmd_msg, reply);
View Full Code Here

        }
        }

  // Send reply
  Packet reply = new Packet(con.useDirectBuffers());
  reply.setPacketType(PacketType.OBJECT_MESSAGE);

  setProperties(reply, MessageType.DESTROY_DESTINATION_REPLY,
    status, errMsg);

  parent.sendReply(con, cmd_msg, reply);
View Full Code Here

            errMsg = e.getMessage();
            status = Status.NOT_FOUND;
        }

  // Send reply
  Packet reply = new Packet(con.useDirectBuffers());
  reply.setPacketType(PacketType.OBJECT_MESSAGE);

  setProperties(reply, MessageType.PAUSE_REPLY, status, errMsg);

  parent.sendReply(con, cmd_msg, reply);
    return true;
View Full Code Here

            errMsg = e.getMessage();
            status = Status.NOT_FOUND;
        }

  // Send reply
  Packet reply = new Packet(con.useDirectBuffers());
  reply.setPacketType(PacketType.OBJECT_MESSAGE);

  setProperties(reply, MessageType.PAUSE_REPLY, status, errMsg);

  parent.sendReply(con, cmd_msg, reply);
    return true;
View Full Code Here

   * Packet ?
   *
   * Trying Packet.fill()...
   */
  try  {
      Packet p = new Packet();
      p.fill(message.getPacket());
      protocol.processMessage(cxn, p);
  } catch(Exception e)  {
      String errStr = "sendMessage: Sending message failed. Connection ID: "
      + connectionId;

View Full Code Here

            synchronized (c.getConsumerUID()) {
                cuidNotify.remove(c.getConsumerUID());
            }

            // now get the packet
            Packet p = new Packet();
            if (session.fillNextPacket(p, cuid))
                return p;

            // this should only happen if something went strange like we
            // have two threads processing @ the same time
View Full Code Here

TOP

Related Classes of com.sun.messaging.jmq.io.Packet

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.