JBoss Community

Calling remote ESB client error

created by Martin MyslĂ­k in JBoss ESB Development - View the full discussion

Hi, I am trying to send and esb message from remote client, but I am constantly getting this error:

 

org.jboss.soa.esb.listeners.message.MessageDeliverException: Invocation exception. null

    at org.jboss.soa.esb.client.ServiceInvoker.loadServiceClusterInfo(ServiceInvoker.java:545)

    at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:174)

    at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:155)

    at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:197)

    at cz.certicon.esb.test.SenderESB.sendAMessage(SenderESB.java:24)

    at cz.certicon.esb.test.Manager.sendESBMessage(Manager.java:94)

    at cz.certicon.esb.test.MyFrame.actionPerformed(MyFrame.java:120)

    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)

    at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)

    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)

    at javax.swing.DefaultButtonModel.setPressed(Unknown Source).........

 

I found many tutorials on setting up remote client, but none of them helped me.

I am using JBoss AS 6 with ESB 4.11 and running my application from Eclipse (with JBoss Tools). Sending JMS messages work fine, but I cant make this work.

 

This is my sample code for sending esb messages:

 

public void sendAMessage(String message) throws Exception {
  System.setProperty("javax.xml.registry.ConnectionFactoryClass",  "org.apache.ws.scout.registry.ConnectionFactoryImpl");

 

  Message esbMessage = MessageFactory.getInstance().getMessage();

 

  esbMessage.getBody().add(message);

 

  new ServiceInvoker("FirstServiceESB", "SimpleListener").deliverAsync(esbMessage);

}

 

1) I have JBossESB runtime and JBoss 6.0 runtime imported (including all the libraries they provide).

2) I included jbossts-common.jar

3) I have jboss-esb.xml, uddi.xml and jbossesb-properties.xml in META-INF directory (I include these files as attachment, the last two are copied from helloworld quickstart...)

 

I honestly dont know what else to do to make it work... any kind of help is appreciated!

Reply to this message by going to Community

Start a new discussion in JBoss ESB Development at Community