You should get other exception maybe before for the datasource fully rely on AMQ xml config then Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau
2014-01-31 Leonardo K. Shikida <[email protected]>: > Thanks Andy and Romain. > > Actually, the configuration I've posted isn't working. It gives me > > SEVERE: Failed to start ActiveMQ > java.lang.Exception: ActiveMQFactory.createBroker.InvocationTargetException > at > org.apache.openejb.resource.activemq.ActiveMQFactory.createBroker(ActiveMQFactory.java:127) > at > org.apache.openejb.resource.activemq.ActiveMQResourceAdapter.createInternalBroker(ActiveMQResourceAdapter.java:130) > at > org.apache.openejb.resource.activemq.ActiveMQResourceAdapter.start(ActiveMQResourceAdapter.java:120) > at > org.apache.openejb.assembler.classic.Assembler.createResource(Assembler.java:2172) > at > org.apache.openejb.assembler.classic.Assembler.buildContainerSystem(Assembler.java:490) > at > org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:409) > at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:148) > at org.apache.openejb.OpenEJB.init(OpenEJB.java:296) > at > org.apache.tomee.catalina.TomcatLoader.initialize(TomcatLoader.java:246) > at org.apache.tomee.catalina.TomcatLoader.init(TomcatLoader.java:134) > at > org.apache.tomee.catalina.ServerListener.lifecycleEvent(ServerListener.java:122) > at > org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) > at > org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) > at org.apache.catalina.util.LifecycleBase.setStateIn > > activemq site is a mess, full of missing links and rendering errors. > > it's also not clear how a jdbc data source should be configured just > looking here http://activemq.apache.org/persistence.html and > http://activemq.apache.org/persistence.html > > If I add this to activemq.xml > > <persistenceAdapter> > <jdbcPersistenceAdapter dataSource="#my-ds"/> > </persistenceAdapter> > > then it will find the datasource already declared in tomee.xml or shall I > have to declare it somewhere else? > > sorry for asking here, since it's activemq config, not tomee's. > > TIA > > Leo > > > > [] > > Leo > > > On Fri, Jan 31, 2014 at 10:26 AM, Andy <[email protected]>wrote: > >> Nearly. >> >> Remove the TomEE DataSource and configure persistence in the activemq.xml >> Also fix the transportConnector uri - everything in activemq.xml is >> ActiveMQ documentation. >> >> <persistenceAdapter> >> <kahaDB directory="activemq-data/kaha" indexCacheSize="20000" >> ignoreMissingJournalfiles="true" checkForCorruptJournalFiles="true" >> checksumJournalFiles="true"/> >> </persistenceAdapter> >> >> <transportConnectors> >> <transportConnector uri="tcp://localhost:61616?keepAlive=true"/> >> </transportConnectors> >> >> Andy. >> >>
