I'm resending this as I had my emails messed up. Sorry for any moderation issues.
On Sat Jan 03 2015 at 11:06:43 AM John D. Ament <[email protected]> wrote: > Ok, so got a little bit further. I see the broker starting with the in vm > connector. > > 659 [main] DEBUG org.apache.activemq.ra - Recovery Registry located = > org.apache.activemq.service.extensions.xa.recovery.ActiveMQRegistryImpl@a530d0a > > 660 [main] DEBUG org.apache.activemq.ra - No connector params provided > using default > > 660 [main] DEBUG org.apache.activemq.ra - Creating Connection Factory on > the resource adapter for > transport=[TransportConfiguration(name=8a3b9a30-9361-11e4-8f47-bb448fce34db, > factory=org-apache-activemq-core-remoting-impl-invm-InVMConnectorFactory) > ?server-id=0] with ha=false > > 660 [main] DEBUG org.apache.activemq.ra - No connector params provided > using default > > 660 [main] DEBUG org.apache.activemq.ra - Creating Recovery Connection > Factory on the resource adapter for > transport=[TransportConfiguration(name=8a3b9a32-9361-11e4-8f47-bb448fce34db, > factory=org-apache-activemq-core-remoting-impl-invm-InVMConnectorFactory) > ?server-id=0] > > 660 [main] DEBUG org.apache.activemq.ra - registering recovery for > factory : ActiveMQConnectionFactory [serverLocator=ServerLocatorImpl > [initialConnectors=[TransportConfiguration(name=8a3b9a32-9361-11e4-8f47-bb448fce34db, > factory=org-apache-activemq-core-remoting-impl-invm-InVMConnectorFactory) > ?server-id=0], discoveryGroupConfiguration=null], clientID=null, > consumerWindowSize = 1048576, dupsOKBatchSize=1048576, > transactionBatchSize=1048576, readOnly=false] > > 660 [main] INFO org.apache.activemq.ra - ActiveMQ resource adaptor started > > > However, it looks like on connecting it fails. I see this log message 10 > times > > > 743 [amq-worker- - 1] DEBUG org.apache.activemq.core.client - Trying > reconnection attempt 0/1 > > 743 [amq-worker- - 1] DEBUG org.apache.activemq.core.client - Trying to > connect with connector = > org.apache.activemq.core.remoting.impl.invm.InVMConnectorFactory@6968dc8d, > parameters = {server-id=0} connector = null > > 743 [amq-worker- - 1] DEBUG org.apache.activemq.core.client - Connector > towards org.apache.activemq.core.remoting.impl.invm.InVMConnector@51aed0b7 > failed > > > with different factories and connectors. Finally the stack trace on > failure ends up looking like this: > > javax.jms.JMSException: Failed to create session factory > > at > org.apache.activemq.core.client.impl.ServerLocatorImpl.createSessionFactory(ServerLocatorImpl.java:928) > > at > org.apache.activemq.jms.client.ActiveMQConnectionFactory.createConnectionInternal(ActiveMQConnectionFactory.java:673) > > at > org.apache.activemq.jms.client.ActiveMQConnectionFactory.createXAConnection(ActiveMQConnectionFactory.java:209) > > at > org.apache.activemq.jms.client.ActiveMQConnectionFactory.createXAConnection(ActiveMQConnectionFactory.java:204) > > at > org.apache.activemq.ra.ActiveMQRAManagedConnection.setup(ActiveMQRAManagedConnection.java:906) > > at > org.apache.activemq.ra.ActiveMQRAManagedConnection.<init>(ActiveMQRAManagedConnection.java:170) > > at > org.apache.activemq.ra.ActiveMQRAManagedConnectionFactory.createManagedConnection(ActiveMQRAManagedConnectionFactory.java:164) > > > John > > On Sat Jan 03 2015 at 10:42:20 AM John D. Ament <[email protected]> > wrote: > >> Hi, >> >> So I'm tinkering around a bit to port TomEE to use ActiveMQ 6 instead of >> ActiveMQ 5.10, mostly so that we can do JMS 2.0 support. >> >> The original code is based around the original ActiveMQResourceAdapter. >> I started porting the code over to use the new one, however I've run into a >> hitch. >> >> If I leverage your resource adapter, I get an error: >> >> java.lang.IllegalArgumentException: must provide either TransportType or >> DiscoveryGroupAddress and DiscoveryGroupPort for ActiveMQ ResourceAdapter >> Connection Factory >> >> at org.apache.activemq.ra.ActiveMQResourceAdapter. >> createActiveMQConnectionFactory(ActiveMQResourceAdapter.java:1987) >> >> at org.apache.activemq.ra.ActiveMQResourceAdapter.setup( >> ActiveMQResourceAdapter.java:1788) >> >> at org.apache.activemq.ra.ActiveMQResourceAdapter.start( >> ActiveMQResourceAdapter.java:261) >> >> >> However, there are no tests to show how to properly configure this, and I >> can't find anything about using the resource adapter in the HornetQ docs. >> For what I'm trying to do right now, the InVM connector is enough. How >> would I configure the resource adapter to use the InVM connector? >> >> >> I'll aim to deal with the TCP based connectors later. >> >> Thanks, >> >> >> John >> >
