Package org.jboss.blacktie.jatmibroker.core.transport

Examples of org.jboss.blacktie.jatmibroker.core.transport.Message


  public synchronized void send(String replyto_ior, short rval, int rcode,
      byte[] idata, int ilen, int cd, int flags, String type,
      String subtype) {
    log.debug("Received: " + callbackIOR);
    Message message = new Message();
    message.cd = cd;
    message.replyTo = replyto_ior;
    message.flags = flags;
    message.control = null;// TODO
    message.rval = rval;
View Full Code Here


          }
        }
        throw new ConnectionException(Connection.TPETIME,
            "Did not receive a message");
      } else {
        Message message = returnData.remove(0);
        if (message != null) {
          log.debug("Message was available");
          if (message.rval == EventListener.DISCON_CODE) {
            if (JABTransaction.current() != null) {
              try {
View Full Code Here

  public void run() {
    log.debug("Running");

    while (!closed) {
      Message message = null;
      try {
        message = receiver.receive(0);
        log.trace("Received");
      } catch (ConnectionException e) {
        if (closed) {
View Full Code Here

    Receiver endpoint = temporaryQueues.get(cd);
    if (endpoint == null) {
      throw new ConnectionException(Connection.TPEBADDESC,
          "Session does not exist: " + cd);
    }
    Message message = endpoint.receive(flags);
    temporaryQueues.remove(cd);
    Buffer buffer = null;
    if (message.type != null && !message.type.equals("")) {
      buffer = tpalloc(message.type, message.subtype, message.len);
      buffer.deserialize(message.data);
View Full Code Here

    if (!canRecv) {
      throw new ConnectionException(Connection.TPEPROTO,
          "Session can't receive");
    }
    Message m = receiver.receive(flags);
    // Prepare the outbound channel
    if (m.replyTo == null
        || (sender != null && !m.replyTo.equals(sender.getSendTo()))) {
      log.trace("Send to location has altered");
      sender.close();
View Full Code Here

TOP

Related Classes of org.jboss.blacktie.jatmibroker.core.transport.Message

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.