Examples of BridgeDestination


Examples of lt.baltic_amadeus.jqbridge.msg.BridgeDestination

    if (colon < 0)
      throw new ChannelConfigurationException(name, destKey + " destination is not fully qualified");
    String portName = destId.substring(0, colon);
    String destName = destId.substring(colon + 1);
    port = server.getPort(portName);
    destination = new BridgeDestination(destName);
  }
View Full Code Here

Examples of lt.baltic_amadeus.jqbridge.msg.BridgeDestination

    if (colon < 0)
      throw new ChannelConfigurationException(name, destKey + " destination is not fully qualified");
    String portName = destId.substring(0, colon);
    String destName = destId.substring(colon + 1);
    port = server.getPort(portName);
    destination = new BridgeDestination(destName);
    do {
        if (side != DESTINATION)
            break;
        destKey = pfx + "reply";
        destId = conf.getString(destKey);
        if (destId == null || destId.equals(""))
            break;
        if (log.isDebugEnabled())
            log.debug("Channel " + name + " will request replies to " + destId);
          colon = destId.indexOf(':');
          if (colon < 0)
              throw new ChannelConfigurationException(name, destKey + " destination is not fully qualified");
          String replyPortName = destId.substring(0, colon);
          String replyDestName = destId.substring(colon + 1);
        if (!replyPortName.equals(portName))
                throw new ChannelConfigurationException(name, destKey + " destination port must match 'to'");
        replyTo = new BridgeDestination(replyDestName);
    } while (false);
  }
View Full Code Here

Examples of lt.baltic_amadeus.jqbridge.msg.BridgeDestination

                receiver = session.createReceiver(queue);
                break;
            case Endpoint.DESTINATION:
                session = connection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
                queue = session.createQueue(ep.getDestination().getName());
                BridgeDestination replyTo = ep.getReplyTo();
                if (replyTo != null)
                    replyQueue = session.createQueue(replyTo.getName());
                sender = session.createSender(queue);
                break;
            default:
                throw new IllegalStateException(
                        "Unexpected error: endpoint for port " + port.getName() + " is neighter SOURCE nor DESTINATION"
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.