Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what Jar's are needed for and ActiveMQ client, application

I have activemq-client-5.13.3.jar on my class path, but i keep getting

Exception in thread "main" java.lang.NoClassDefFoundError: javax/jms/JMSException

If i use activemq-all-5.13.3.jar on my class path, every thing works.

however I am not allowed to use the activemq-all jar.

added jms-api-1.1-rev-1.jar

and now Exception in thread "main" java.lang.NoClassDefFoundError: javax/management/j2ee/statistics/Stats

like image 793
dmc Avatar asked Jun 17 '16 13:06

dmc


People also ask

What protocols does ActiveMQ support?

0 ActiveMQ has support for automatic wire protocol detection over TCP, SSL, NIO, and NIO SSL. OpenWire, STOMP, AMQP, and MQTT are supported.

What is ActiveMQ client?

Apache ActiveMQ® is the most popular open source, multi-protocol, Java-based message broker. It supports industry standard protocols so users get the benefits of client choices across a broad range of languages and platforms. Connect from clients written in JavaScript, C, C++, Python, . Net, and more.

What port does ActiveMQ listen on?

Listen port ActiveMQ's default port is 61616. From another window run netstat and search for port 61616.


1 Answers

You can use maven to determine this with the mvn dependency:tree command or use other maven centric tools to explore the artifacts dependencies.

At a minimum you would need these for v5.13.3

slf4j-api.jar geronimo-jms_1.1_spec.jar hawtbuf.jar

Then you can add an slf4j binding like log4j or logback to get proper logs. There are some others that you might want depending on where / how you are using it like the geronimo-j2ee-management_1.1_spec jar.

Of course if you use maven to build you can make this simpler since it will manage the deps for you.

like image 178
Tim Bish Avatar answered Nov 23 '22 07:11

Tim Bish