I was facing this exception error for hours, and I spent a lot of time searching online for a solution, but the road seems be so long that I started really to ask myself if it was possible to get this integration working (ActiveMQ resource adapter with WildFly 9).
At first, the class org.apache.activemq.ra.ActiveMQConnectionFactory does implement the javax.jms.ConnectionFactory
And the spring AOP is complaining that is not an instance of the class : object is not an instance of declaring class
The solution for this problem is as the following:
First, remove the JMS dependency from your project and also verify that you don't have a transitive dependency that add it for you, if your project is maven based launch dependency:tree in your project to verify that.
The next step is to paste the configuration of the resource adapter from the configuration file standalone.xml to the standalone-full.xml
And finally launch my Jboss WildFly with a standlone-full.xml which also adds the jms module that I excluded in my project.
No comments:
Post a Comment