Examples of forwardMessage()


Examples of com.sun.messaging.jmq.jmsserver.core.Destination.forwardMessage()

                Destination d = Destination.getDestination(ref.getDestinationUID());
                if (fi.FAULT_INJECTION) {
                    fi.checkFaultAndExit(FaultInjection.FAULT_TXN_COMMIT_1_6, null, 2, false);
                }
                Set s = d.routeNewMessage(ref);
                d.forwardMessage(s,ref);

             } catch (Exception ex) {
                 logger.logStack((BrokerStateHandler.shuttingDown? Logger.DEBUG : Logger.ERROR),BrokerResources.E_INTERNAL_BROKER_ERROR, "unable to route/send transaction message " + sysid , ex);
             }
View Full Code Here

Examples of com.sun.messaging.jmq.jmsserver.data.handlers.DataHandler.forwardMessage()

            // rethrow
            throw ex;
         }
   
         if (route && d != null && s != null) {
            handler.forwardMessage(d, ref, s);
         }
    

      }
View Full Code Here

Examples of net.tomp2p.rpc.DispatchHandler.forwardMessage()

        final DispatchHandler myHandler = associatedHandler(message);
        if (myHandler != null) {
            boolean isUdp = ctx.channel() instanceof DatagramChannel;
            LOG.debug("about to respond to {}", message);
            PeerConnection peerConnection = new PeerConnection(message.sender(), new DefaultChannelPromise(ctx.channel()).setSuccess(), heartBeatMillis);
            myHandler.forwardMessage(message, isUdp ? null : peerConnection, responder);
        } else {
          //do better error handling, if a handler is not present at all, print a warning
          if(ioHandlers.isEmpty()) {
            LOG.debug("No handler found for {}. Probably we have shutdown this peer.", message);
          } else {
View Full Code Here

Examples of simpleserver.Player.forwardMessage()

    Player sender = chat.getSender();
    String forwardMessage = String.format(server.config.properties.get("msgForwardFormat"), chat, message);

    for (String msgPart : wrapMessage(forwardMessage)) {
      forwardedMessages.put(String.format("<%s> %s", sender.getName(), msgPart));
      sender.forwardMessage(msgPart);
    }
  }

  private void writeToConsole(String message) {
    for (String msgPart : wrapMessage(message)) {
View Full Code Here

Examples of simpleserver.Player.forwardMessage()

    // forwarding if necessary
    CommandConfig config = server.config.commands.getTopConfig(cmd);
    if ((command instanceof ExternalCommand)
        || (config != null && config.forwarding != Forwarding.NONE)
        || server.config.properties.getBoolean("forwardAllCommands")) {
      p.forwardMessage(message);
    }

  }

  private void execsvrcmd(ArrayList<String> tokens) {
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.