Examples of send()


Examples of org.hornetq.core.protocol.core.Channel.send()

         Ping ping = new Ping(connectionTTL);

         Channel channel0 = connection.getChannel(0, -1);

         channel0.send(ping);

         connection.flush();
      }

      public synchronized void cancel()
View Full Code Here

Examples of org.hornetq.javaee.example.server.XARecoveryExampleService.send()

         // Step 3. Invoke the send method. This will crash the server
         String message = "This is a text message sent at " + new Date();
         System.out.println("invoking the EJB service with text: " + message);
         try
         {
            service.send(message);
         }
         catch (Exception e)
         {
            System.out.println("#########################");
            System.out.println("The server crashed: " + e.getMessage());
View Full Code Here

Examples of org.infoset.xml.ItemDestination.send()

            try {
               Iterator<SyncProcess> procs = db.getSyncProcesses();
               Writer out = new OutputStreamWriter(os,"UTF-8");
               ItemDestination dest = new WriterItemDestination(out,"UTF-8");
               ItemConstructor constructor = InfosetFactory.getDefaultInfoset().createItemConstructor();
               dest.send(constructor.createDocument());
               dest.send(constructor.createElement(AdminXML.NM_SYNC_PROCESSES));
               while (procs.hasNext()) {
                  SyncProcess proc = procs.next();
                  proc.marshall();
                  DocumentSource.generate(proc.getElement(),false,dest);
View Full Code Here

Examples of org.infoset.xml.util.WriterItemDestination.send()

            try {
               Iterator<SyncProcess> procs = db.getSyncProcesses();
               Writer out = new OutputStreamWriter(os,"UTF-8");
               ItemDestination dest = new WriterItemDestination(out,"UTF-8");
               ItemConstructor constructor = InfosetFactory.getDefaultInfoset().createItemConstructor();
               dest.send(constructor.createDocument());
               dest.send(constructor.createElement(AdminXML.NM_SYNC_PROCESSES));
               while (procs.hasNext()) {
                  SyncProcess proc = procs.next();
                  proc.marshall();
                  DocumentSource.generate(proc.getElement(),false,dest);
View Full Code Here

Examples of org.iremake.client.network.ClientContext.send()

        // start and connect client
        final ClientContext client = RemoteClient.CONTEXT;
        client.start("localhost");

        client.send(Message.LOBBY_CHAT.createNew("Anyone wants to chat?"));

        // in 5s stop everything
        final Timer timer = new Timer();
        timer.schedule(new TimerTask() {
            @Override
View Full Code Here

Examples of org.java_websocket.WebSocket.send()

            while (iterator.hasNext()) {
                WebSocket element = iterator.next();

                if (element.isOpen()) {
                    try {
                        element.send(text);
                    } catch (Exception e) {
                        e.printStackTrace();
                    }
                } else {
                    iterator.remove();
View Full Code Here

Examples of org.jboss.aerogear.io.netty.handler.codec.sockjs.SockJsSessionContext.send()

                final SockJsSessionContext session = userAgents.get(uaid).context();
                if (logger.isDebugEnabled()) {
                    logger.debug("Sending notification for UAID [ " + notification.uaid() + "] " +
                            toJson(new NotificationMessageImpl(notification.ack())));
                }
                session.send(toJson(new NotificationMessageImpl(notification.ack())));
                userAgents.updateAccessedTime(uaid);
            } catch (final ChannelNotFoundException e) {
                logger.debug("Could not find channel for [" + endpoint + "]");
            } catch (final VersionException e) {
                logger.debug(e.getMessage());
View Full Code Here

Examples of org.jboss.aerogear.unifiedpush.JavaSender.send()

         }
      }

      UnifiedMessage unifiedMessage = builder.build();

      sender.send(unifiedMessage, this);

      if (handled)
      {
         reference.acknowledge();
         return HandleStatus.HANDLED;
View Full Code Here

Examples of org.jboss.aerogear.unifiedpush.SenderClient.send()

            rootServerURL += ":" + pluginComponent.port;
        }
        SenderClient sender = new SenderClient(rootServerURL);

        final SenderResult[] result = new SenderResult[1];
        sender.send(unifiedMessage, new MessageResponseCallback() {

              @Override
              public void onError(Throwable throwable) {

                result[0] = SenderResult.getSimpleFailure(throwable.getMessage());
View Full Code Here

Examples of org.jboss.example.jms.stateless.bean.StatelessSessionExample.send()

      String queueName = getDestinationJNDIName();
      String text = "Hello!";                 
     
      bean.drain(queueName);
                      
      bean.send("Hello!", queueName);
      log("The " + text + " message was successfully sent to the " + queueName + " queue");
         
      int num = bean.browse(queueName);
                 
      assertEquals(1, num);
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.