Examples of send()


Examples of org.apache.wsif.util.jms.WSIFJMSDestination.send()

    // **NS No support for listener - add that in
    // The basis is off the handler - if handler is defined, we start up the listener
    if (isAsyncOperation() && handler != null)
      jmsDest.setAsyncMode(true);
    correlId = jmsDest.send(jmsMessage, null, !inputOnlyOp);

    return correlId;

  }

View Full Code Here

Examples of org.apache.wss4j.dom.common.CustomHandler.send()

        reqData.setMsgContext(messageContext);
        reqData.setUsername("wss40rev");
       
        final Document doc = SOAPUtil.toSOAPPart(SOAPUtil.SAMPLE_SOAP_MSG);
        CustomHandler handler = new CustomHandler();
        handler.send(
            doc,
            reqData,
            Collections.singletonList(new HandlerAction(WSConstants.ENCR)),
            true
        );
View Full Code Here

Examples of org.ardverk.dht.io.transport.Transport.send()

   
    if (transport == null) {
      throw new IOException();
    }
   
    transport.send(contactId, request, timeout, unit);
    fireMessageSent(contactId, request);
  }
 
  /**
   * Callback method for outgoing {@link Message} that failed to be sent.
View Full Code Here

Examples of org.asmatron.messengine.engines.DefaultActionDelegate.send()

      @Override
      public void handle(DemoCommandObject arg) {
        handled.set(true);
      }
    });
    engine.send(cType.create(new DemoCommandObject()));
    assertTrue(handled.get());
  }

  @Test(expected = DuplicateActionHandlerException.class)
  public void shouldNotAddTwoHandlers() throws Exception {
View Full Code Here

Examples of org.asmatron.messengine.engines.DefaultMessagingDelegate.send()

        lock.release();
      }
    };
    final String type = "test";
    engine.addMessageListener(type, listener);
    engine.send(new TestMessage<String>(type, expectedBody));
    lock.tryAcquire(3, TimeUnit.SECONDS);
    assertEquals(expectedBody, actualBody.toString());
    engine.stop();
  }
View Full Code Here

Examples of org.asmatron.messengine.testing.support.TestActionDelegate.send()

      @Override
      public void handle(DemoCommandObject arg) {
        handled.set(true);
      }
    });
    engine.send(cType.create(new DemoCommandObject()));
    assertTrue(handled.get());
  }

  @Test(expected = DuplicateActionHandlerException.class)
  public void shouldNotAddTwoHandlers() throws Exception {
View Full Code Here

Examples of org.auto.comet.Socket.send()

        continue;
      }
      JSONObject message = new JSONObject();
      message.put(COMMAND_KEY, COMMAND_LOGIN);
      message.put("userId", userId);
      socket.send(message.toString());

      JSONObject message2 = new JSONObject();
      message2.put(COMMAND_KEY, COMMAND_LOGIN);
      message2.put("userId", id);
      userSocket.send(message2.toString());
View Full Code Here

Examples of org.camunda.bpm.engine.impl.persistence.entity.JobManager.send()

        job.setJobHandlerType("any");
        job.setLockOwner(owner);
        job.setLockExpirationTime(lockExpirationTime);
        job.setRetries(retries);

        jobManager.send(job);
        return null;
      }
    });
  }
View Full Code Here

Examples of org.cipango.client.SipRequest.send()

  }
 
  public void testMessage() throws Exception
  {
    SipRequest request = createRequest("MESSAGE", "sip:bob@cipango.org");
    request.send();
   
    SipResponse response = request.waitResponse();
    assertEquals(SipServletResponse.SC_OK, response.getStatus());
  }
 
View Full Code Here

Examples of org.cipango.diameter.api.DiameterServletAnswer.send()

        assertEquals(true, message.isRequest());
        assertEquals(Sh.UDR, request.getCommand());
        assertEquals(request.getApplicationId(), Sh.SH_APPLICATION_ID.getId());
        assertEquals(request.getDestinationHost(), "server");
        uda = request.createAnswer(Common.DIAMETER_SUCCESS);
        uda.send();
      }
     
    };
    _server.setHandler(serverHandler);
    _server.start();
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.