I'm trying to migrate a J2EE application from EAP 6 to 7.
The application is using an external A-MQ 6 server as the JMS provider.
I tried to configure EAP 7 with http://activemq.apache.org/resource-adapter.html, as suggested in Red_Hat_JBoss_Enterprise_Application_Platform-7.0-Configuring_Messaging-en-US.pdf, "DEPLOYING AN A-MQ RESOURCE ADAPTER", but it's complaining about the ConnectionFactory:
Caused by: java.lang.IllegalStateException: Cannot convert value of type [org.apache.activemq.ra.ActiveMQConnectionFactory] to required type [javax.jms.ConnectionFactory] for property
'connectionFactory': no matching editors or conversion strategy found
The problem is that "ActiveMQConnectionFactory.class instanceof ConnectionFactory" returns false, and it looks like that happens because it's loading the JMS 2 version of the class ConnectionFactory.
I tried to exclude the javax.jms API in jboss-deployment-structure.xml, but it's still not working.
Any help will be very much appreciated!