Tuesday, November 26, 2013

JBoss ESB JMS client

In case you have followed this guide and are now wondering how to run the client, here'a a little tip to prevent you from wasting more time.


If you've created the SendJMSMessage.java inside the same project and ran it as a Java Application, then you probably got something that included this:

Caused by: java.lang.ClassNotFoundException: org.jboss.aop.metadata.ClassMetaDataLoader
or this:
Caused by: java.lang.ClassNotFoundException: org.jboss.aop.pointcut.PointcutStats
or even this:
Caused by: java.lang.ClassNotFoundException: org.jboss.aop.metadata.Pointcut

You should create a new Java Project with the SendJMSMessage.java, then go to the project properties and, instead of including every jar in the Java Build Path (as explained here), add two libraries: 1) JBoss ESB Libraries and 2) Server Runtime. The server runtime will be the previously created JBoss server runtime.

Then run this project as a Java Application and it should work.

In case your wondering what software versions I've used and so on, here are they:

  • Eclipse Helios (3.6.2);
  • JBoss Tools 3.2.x installed via Eclipse Marketplace;
  • JBoss ESB Server 4.10;
  • added JBoss Server Runtime as version 5.1;

Links:

JBoss ESB tutorial
he HelloWorld in the JBoss Enterprise Service Bus