Examples of send()


Examples of org.apache.accumulo.tserver.mastermessage.MasterMessage.send()

          // then
          // finally block should place mm back on queue
          while (!serverStopRequested && mm != null && client != null && client.getOutputProtocol() != null
              && client.getOutputProtocol().getTransport() != null && client.getOutputProtocol().getTransport().isOpen()) {
            try {
              mm.send(SystemCredentials.get().toThrift(instance), getClientAddressString(), iface);
              mm = null;
            } catch (TException ex) {
              log.warn("Error sending message: queuing message again");
              masterMessages.putFirst(mm);
              mm = null;
View Full Code Here

Examples of org.apache.activemq.ActiveMQMessageProducer.send()

        }
        ActiveMQMessageProducer messageProducer = getMessageProducer();

        // just in case let only one thread send at once
        synchronized (messageProducer) {
            messageProducer.send(destination, message, deliveryMode, priority, timeToLive);
        }
    }

    public Destination getDestination() {
        return destination;
View Full Code Here

Examples of org.apache.activemq.broker.Broker.send()

            }

            // Send it back through the region broker for routing.
            context.setMutable(true);
            Broker regionBroker = context.getConnectionContext().getBroker().getBrokerService().getRegionBroker();
            regionBroker.send(context, forwarded_message);
        }
        if (!forwardOnly) {
            super.send(context, message);
        }
    }
View Full Code Here

Examples of org.apache.activemq.broker.StubConnection.send()

        connection1.send(consumerInfo1.createRemoveCommand());

        // Now create remote consumer that should cause message to move to this
        // remote consumer.
        ConsumerInfo consumerInfo2 = createConsumerInfo(sessionInfo2, destination);
        connection2.send(consumerInfo2);

        // Make sure the message was delivered via the remote.
        m = receiveMessage(connection2);
        assertNotNull(m);
    }
View Full Code Here

Examples of org.apache.activemq.broker.region.Destination.send()

                final Destination mirrorDestination = getMirrorDestination(destination);
                if (mirrorDestination != null) {
                    return new DestinationFilter(destination) {
                        public void send(ProducerBrokerExchange context, Message message) throws Exception {
                            message.setDestination(mirrorDestination.getActiveMQDestination());
                            mirrorDestination.send(context, message);

                            if (isCopyMessage()) {
                                message = message.copy();
                            }
                            message.setDestination(destination.getActiveMQDestination());
View Full Code Here

Examples of org.apache.activemq.broker.region.Queue.send()

        producerExchange.setConnectionContext(contextNotInTx);

        // populate the queue store, exceed memory limit so that cache is disabled
        for (int i = 0; i < count; i++) {
            Message message = getMessage(i);
            queue.send(producerExchange, message);
        }

        usage.setFull(false);

        try {
View Full Code Here

Examples of org.apache.activemq.transport.stomp.StompConnection.send()

        StompConnection connection = new StompConnection();
        connection.open(stompUri.getHost(), stompUri.getPort());
        connection.connect("user", "password");
        HashMap<String, String> headers = new HashMap<String, String>();
        headers.put( "amq-msg-type", "text" );
        connection.send( "/queue/test", "message1", (String)null, headers );
        connection.send( "/queue/test", "message2", (String)null, headers );
        connection.send( "/queue/test", "message3", (String)null, headers );
        connection.send( "/queue/test", "message4", (String)null, headers );
        connection.send( "/queue/test", "message5", (String)null, headers );
        String frame = "DISCONNECT\n" + "\n\n" + Stomp.NULL;
View Full Code Here

Examples of org.apache.avro.test.Mail.send()

    msg.to = new Utf8("wife");
    msg.from = new Utf8("husband");
    msg.body = new Utf8("I love you!");

    try {
      CharSequence result = proxy.send(msg);
      System.out.println("Result: " + result);
      Assert.assertEquals(
          "Sent message to [wife] from [husband] with body [I love you!]",
          result.toString());
    } finally {
View Full Code Here

Examples of org.apache.axis2.client.MessageSender.send()

    clientOptions.setSoapVersionURI(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI);
    clientOptions.setProperty(Sandesha2ClientAPI.AcksTo,acksToEPR);
    sender.engageModule(new QName ("Sandesha2-0.9"));
    clientOptions.setTo(new EndpointReference(toEPR));
    clientOptions.setProperty(Sandesha2ClientAPI.SEQUENCE_KEY,"sequence1");
    sender.send("ping",getPingOMBlock("ping1"));
    sender.send("ping",getPingOMBlock("ping2"));
    clientOptions.setProperty(Sandesha2ClientAPI.LAST_MESSAGE, "true");
    sender.send("ping",getPingOMBlock("ping3"));
  }
 
View Full Code Here

Examples of org.apache.axis2.clientapi.MessageSender.send()

            MessageSender msgSender = new MessageSender();
            msgSender.setTo(targetEPR);
            msgSender.setSenderTransport(Constants.TRANSPORT_HTTP);

            msgSender.send("ping", payload);

        } catch (AxisFault axisFault) {
            axisFault.printStackTrace();
        }
    }
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.