If you've created the
SendJMSMessage.javainside 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.ClassMetaDataLoaderor this:
Caused by: java.lang.ClassNotFoundException: org.jboss.aop.pointcut.PointcutStatsor 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