This is my first attempt using Mule. I want to run it from RAD (kDK 1.4) as a Java app and want to run Echo example. I copied all the necessary java files for Echo example, xml and created a client. I get following error when I run the client, which is Java main class:
org.mule.umo.provider.DispatchException: Failed to route event via endpoint: MuleEndpoint{endpointUri=vm://my.object, connector=VMConnector{this=600dd30d, started=true, initialised=true, name='connector.VM.0', disposed=false, numberOfConcurrentTransactedReceivers=4, createMultipleTransactedReceivers=true, connected=true, supportedProtocols=[vm], serviceOverrides=null}, transformer=null, name='endpoint.vm.my.object', type='sender', properties={}, transactionConfig=Transaction{factory=null, action=NONE, timeout=30000}, filter=null, deleteUnacceptedMessages=false, initialised=false, securityFilter=null, synchronous=null, initialState=started, createConnector=0, remoteSync=null, remoteSyncTimeout=null, endpointEncoding=null}. Message payload is of type: String
at org.mule.providers.AbstractMessageDispatcher.send(AbstractMessageDispatcher.java:252)
at org.mule.providers.AbstractConnector.send(AbstractConnector.java:1629)
at org.mule.impl.ImmutableMuleEndpoint.send(ImmutableMuleEndpoint.java:955)
at org.mule.impl.MuleSession.sendEvent(MuleSession.java:327)
at org.mule.extras.client.MuleClient.send(MuleClient.java:737)
at org.mule.extras.client.MuleClient.send(MuleClient.java:714)
at org.mule.extras.client.MuleClient.send(MuleClient.java:667)
at org.nccourts.MyClient.main(MyClient.java:42)
Caused by: org.mule.umo.provider.NoReceiverForEndpointException: There is no receiver registered on connector "connector.VM.0" for endpointUri vm://my.object
at org.mule.providers.vm.VMMessageDispatcher.doSend(VMMessageDispatcher.java:185)
at org.mule.providers.AbstractMessageDispatcher.send(AbstractMessageDispatcher.java:224)
... 7 more
I copied all the source codes from Echo example and echo-cinfig.xml is in the same directory as the java class files (all under one package). I have the necessary jar files.
Following is the client Java code that I am trying to run, but getting exception:
public class MyClient {
public static void main(String[] args) {
try {
MuleServer server = new MuleServer("mule-config.xml");
server.start(true);
MuleClient client = new MuleClient();
UMOMessage message2 = client.send("vm://my.object", "Some more data", null);
} catch (ConfigurationException e) {
e.printStackTrace();
}catch(Exception e){
e.printStackTrace();
}
}
}
Any help will be appreciated.
=