Examples of send()


Examples of org.mule.client.DefaultLocalMuleClient.send()

        DefaultLocalMuleClient client = new DefaultLocalMuleClient(muleContext);
       
        HashMap<String, Object> props = new HashMap<String,Object>();
        props.put("username", "ross");
        props.put("pass", "ross");
        MuleMessage result = client.send("vm://test", "hi", props);
        assertNull(result.getExceptionPayload());
       
        props.put("pass", "badpass");
        try
        {
View Full Code Here

Examples of org.mule.extras.client.MuleClient.send()

        MuleClient client = new MuleClient();
        DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
        dbf.setNamespaceAware(true);
        Document soap = dbf.newDocumentBuilder().parse(ClassUtils.getResourceAsStream("helloRequest.soap", getClass()));
        Map props = new HashMap();
        UMOMessage result = client.send("vm://pxe.in", new DOMSource(soap.getDocumentElement()), props);
        assertNotNull(result);
        StringWriter w = new StringWriter();
        XMLWriter writer = new XMLWriter(w);
        writer.write(result.getPayload());
        String xml = w.toString();
View Full Code Here

Examples of org.mule.module.client.MuleClient.send()

    public void testRequestWithComplexArg() throws Exception
    {
        MuleClient client = new MuleClient(muleContext);
        Person person = new Person("Joe", "Blow");
        String uri = getMuleAddress(client, "inMyComponent3") + "/mycomponent3?method=addPerson";
        client.send(uri, person, null);
        uri = getMuleAddress(client, "inMyComponent3") "/mycomponent3?method=getPerson";
        MuleMessage result = client.send(uri, "Joe", null);
        assertNotNull(result);
        assertTrue(result.getPayload() instanceof Person);
        assertEquals("Joe", ((Person)result.getPayload()).getFirstName());
View Full Code Here

Examples of org.mule.transport.udp.util.UdpClient.send()

        UdpClient client = null;
        try
        {
            int port = getPorts().get(0).intValue();
            client = new UdpClient(port);
            byte[] response = client.send(TEST_MESSAGE);

            String expected = TEST_MESSAGE + " In Out Out2";
            String result = new String(response).trim();
            assertEquals(expected, result);
        }
View Full Code Here

Examples of org.mule.umo.provider.UMOMessageDispatcher.send()

            UMOMessageDispatcher dispatcher = endpoint.getConnector().getDispatcher(endpoint.getEndpointURI().getAddress());
            NormalizedMessage out = getOutMessage(messageExchange);
            UMOMessage message = JbiUtils.createMessage(out);
            UMOEvent event = new MuleEvent(message, endpoint, new MuleSession(), endpoint.isSynchronous());
            if (endpoint.isSynchronous()) {
                UMOMessage result = dispatcher.send(event);
                //todo send result back
            } else {
                dispatcher.dispatch(event);
            }
        } catch (Exception e) {
View Full Code Here

Examples of org.nasutekds.server.util.EMailMessage.send()

    }


    try
    {
      message.send();

      if (debugEnabled())
      {
        TRACER.debugInfo("Successfully sent the message");
      }
View Full Code Here

Examples of org.nfctools.nfcip.NFCIPConnection.send()

        int runs = 0;
        do {
          log.trace("Start of Run: " + runs);
          data = nfcipConnection.receive();
          log.info("Received: " + data.length + " Runs: " + runs);
          nfcipConnection.send(data);
          log.trace("End of Run: " + runs);
          runs++;
        } while (data != null && data.length > 0);

        log.info("DONE!!!");
View Full Code Here

Examples of org.nutz.http.sender.FilePostSender.send()

    fw.write("abc");
    fw.flush();
    fw.close();
    req.getParams().put("file", f);
    FilePostSender sender = new FilePostSender(req);
    Response resp = sender.send();
    assertEquals("image&3", resp.getContent());
  }
 
}
View Full Code Here

Examples of org.nxplanner.mail.EmailMessage.send()

                email.setSubject(resources.getMessage("integrations.notification.subject"));
                String link = request.getScheme() + "://" + request.getServerName() + ":" +
                        request.getServerPort() + request.getContextPath() +
                        "/do/view/integrations?projectId=" + integration.getProjectId();
                email.setBody(resources.getMessage("integrations.notification.text", link));
                email.send();
            } catch (Exception ex) {
                log.error("couldn't send notification", ex);
            }
        }
    }
View Full Code Here

Examples of org.objectweb.joram.client.connector.OutboundProducer.send()

        int i = 0;
        try {
      while(i!=100){
          i++;
          TextMessage msg = os.createTextMessage("with topic2 "+i);
          prod1.send(msg);
      }
        } catch (Exception exc) {
     
        }
    }
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.