[jboss-dev-forums] [JBoss ESB Development] - Calling remote ESB client error

Martin Myslík do-not-reply at jboss.com
Thu Apr 25 04:01:42 EDT 2013


Martin Myslík [https://community.jboss.org/people/m.myslik] created the discussion

"Calling remote ESB client error"

To view the discussion, visit: https://community.jboss.org/message/810225#810225

--------------------------------------------------------------
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
[https://community.jboss.org/message/810225#810225]

Start a new discussion in JBoss ESB Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2032]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20130425/1229171a/attachment-0001.html 


More information about the jboss-dev-forums mailing list