You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by akr <kr...@gmx.ch> on 2013/04/30 10:16:15 UTC

amq 5.8.0 jar dependencies and junit testing

Hi

I'm running junit tests with amq-5.8.0 like suggested in
http://activemq.apache.org/how-to-unit-test-jms-code.html
I'm using a jndi.properties with java.naming.provider.url =
vm://localhost:61616?broker.persistent=false
I have activemq-client-5.8.0.jar and activemq-broker-5.8.0.jar on the
classpath, but get the following exception:

Cannot create JMS session. Could not create Transport. Reason:
java.lang.IllegalArgumentException: There are 1 Broker options that couldn't
be set on the BrokerService. Check the options are spelled correctly.
Unknown parameters=[{persistent=false}]. This BrokerService cannot be
started.

junit.framework.AssertionFailedError: Cannot create JMS session. Could not
create Transport. Reason: java.lang.IllegalArgumentException: There are 1
Broker options that couldn't be set on the BrokerService. Check the options
are spelled correctly. Unknown parameters=[{persistent=false}]. This
BrokerService cannot be started

Using activemq-all-5.8.0.jar, the tests work.

Since amq-5.8.0 provides multiple jar files, I would like to know which ones
are required on the classpath for testing?


thx for help

-andreas



--
View this message in context: http://activemq.2283324.n4.nabble.com/amq-5-8-0-jar-dependencies-and-junit-testing-tp4666440.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: amq 5.8.0 jar dependencies and junit testing

Posted by akr <kr...@gmx.ch>.
I think I resolved it.

To use "java.naming.provider.url =
vm://localhost:61616?broker.persistent=false" in your junit tests, the
following jars are required on the classpath (with amq-5.8.0):

activemq-broker-5.8.0.jar
activemq-client-5.8.0.jar
activemq-openwire-legacy-5.8.0.jar
hawtbuf-1.9.jar




--
View this message in context: http://activemq.2283324.n4.nabble.com/amq-5-8-0-jar-dependencies-and-junit-testing-tp4666440p4666442.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.