You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by danny <da...@hazelcast.com> on 2016/06/17 13:43:30 UTC

jars needed for a jms client application

Hi,

Which set of jar are needed for a java JMS client application,  to connect
to my ActiveMQ server

I have activemq-client-5.13.3.jar, on my class path.  but Its not enough,  i
get class not found exceptions.


up till now I have made do using activemq-all-5.13.3.jar,  

however now the size of the jar is causing problems,
and the fixed logging,  included in the activemq-all-5.13.3.jar has bee come
an issue.


I looked at this
http://activemq.apache.org/maven/5.8.0/activemq-client/dependencies.html
but it was not enough



Thanks.





--
View this message in context: http://activemq.2283324.n4.nabble.com/jars-needed-for-a-jms-client-application-tp4713101.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: jars needed for a jms client application

Posted by danny <da...@hazelcast.com>.
thanks All,   for the info, it really helped me out.
I had to upload the minimal set of jar's to a remote box,





--
View this message in context: http://activemq.2283324.n4.nabble.com/jars-needed-for-a-jms-client-application-tp4713101p4713241.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: jars needed for a jms client application

Posted by Christopher Shannon <ch...@gmail.com>.
To save you some time I just ran a quick dependency tree since I had it up
and here is what it listed for 5.13.3:

[INFO]
------------------------------------------------------------------------
[INFO] Building ActiveMQ :: Client 5.13.3
[INFO]
------------------------------------------------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ activemq-client
---
[INFO] org.apache.activemq:activemq-client:jar:5.13.3
[INFO] +- org.slf4j:slf4j-api:jar:1.7.13:compile
[INFO] +- org.apache.geronimo.specs:geronimo-jms_1.1_spec:jar:1.1.1:compile
[INFO] +- org.fusesource.hawtbuf:hawtbuf:jar:1.11:compile
[INFO] +-
org.apache.geronimo.specs:geronimo-j2ee-management_1.1_spec:jar:1.0.1:compile
[INFO] +- commons-net:commons-net:jar:3.3:compile
[INFO] +- javax.jmdns:jmdns:jar:3.4.1:compile
[INFO] +- junit:junit:jar:4.12:test
[INFO] |  \- org.hamcrest:hamcrest-core:jar:1.3:test
[INFO] \- org.slf4j:slf4j-log4j12:jar:1.7.13:test
[INFO]    \- log4j:log4j:jar:1.2.17:runtime
[INFO]
------------------------------------------------------------------------


On Fri, Jun 17, 2016 at 12:28 PM, Christopher Shannon <
christopher.l.shannon@gmail.com> wrote:

> The link you have is from version 5.8 and the dependencies have changed
> since then.  Your best bet is to use a tool like Maven or Gradle and to
> declare a dependency on activemq-client to build your application so that
> it will pull in all of the correct jars needed transitively.  The
> dependencies can potentially change in each version (updated versions, etc)
> so using tools that automatically manage the dependencies is going to make
> things much easier.
>
> I don't know that anyone has an exact list of the dependencies anymore but
> it could be determined by running "mvn dependency:tree" on the source which
> will list them all.
>
>
> On Fri, Jun 17, 2016 at 9:43 AM, danny <da...@hazelcast.com> wrote:
>
>>
>> Hi,
>>
>> Which set of jar are needed for a java JMS client application,  to connect
>> to my ActiveMQ server
>>
>> I have activemq-client-5.13.3.jar, on my class path.  but Its not
>> enough,  i
>> get class not found exceptions.
>>
>>
>> up till now I have made do using activemq-all-5.13.3.jar,
>>
>> however now the size of the jar is causing problems,
>> and the fixed logging,  included in the activemq-all-5.13.3.jar has bee
>> come
>> an issue.
>>
>>
>> I looked at this
>> http://activemq.apache.org/maven/5.8.0/activemq-client/dependencies.html
>> but it was not enough
>>
>>
>>
>> Thanks.
>>
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://activemq.2283324.n4.nabble.com/jars-needed-for-a-jms-client-application-tp4713101.html
>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>
>
>

Re: jars needed for a jms client application

Posted by Christopher Shannon <ch...@gmail.com>.
The link you have is from version 5.8 and the dependencies have changed
since then.  Your best bet is to use a tool like Maven or Gradle and to
declare a dependency on activemq-client to build your application so that
it will pull in all of the correct jars needed transitively.  The
dependencies can potentially change in each version (updated versions, etc)
so using tools that automatically manage the dependencies is going to make
things much easier.

I don't know that anyone has an exact list of the dependencies anymore but
it could be determined by running "mvn dependency:tree" on the source which
will list them all.

On Fri, Jun 17, 2016 at 9:43 AM, danny <da...@hazelcast.com> wrote:

>
> Hi,
>
> Which set of jar are needed for a java JMS client application,  to connect
> to my ActiveMQ server
>
> I have activemq-client-5.13.3.jar, on my class path.  but Its not enough,
> i
> get class not found exceptions.
>
>
> up till now I have made do using activemq-all-5.13.3.jar,
>
> however now the size of the jar is causing problems,
> and the fixed logging,  included in the activemq-all-5.13.3.jar has bee
> come
> an issue.
>
>
> I looked at this
> http://activemq.apache.org/maven/5.8.0/activemq-client/dependencies.html
> but it was not enough
>
>
>
> Thanks.
>
>
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/jars-needed-for-a-jms-client-application-tp4713101.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>

Re: jars needed for a jms client application

Posted by Tim Bain <tb...@alumni.duke.edu>.
Keep in mind that which library JARs you need depends on which lines of the
source code get executed I your specific application.  Chris's approach is
the safe one, because it includes everything you might possibly need
without being as bug as the uber-JAR and it's future-proofed as
dependencies change in later versions.  Denis's approach of picking a
subset requires you to know exactly why ActiveMQ needs each dependency and
whether you're doing the things that need it, and to maintain that
knowledge as new versions are released.

Tim
On Jun 17, 2016 12:39 PM, "titou10" <ti...@gmail.com> wrote:

> For JMSToolBox, (
> https://sourceforge.net/projects/jmstoolbox/?source=directory), I bundle
> those jars and it works:
>
> - activemq-client-5.13.3.jar
> - geronimo-j2ee-management_1.1_spec-1.0.1.jar
> - hawtbuf-1.11.jar
>
> Denis
>
> Le 2016-06-17 à 09:43, danny a écrit :
>
>> Hi,
>>
>> Which set of jar are needed for a java JMS client application,  to connect
>> to my ActiveMQ server
>>
>> I have activemq-client-5.13.3.jar, on my class path.  but Its not
>> enough,  i
>> get class not found exceptions.
>>
>>
>> up till now I have made do using activemq-all-5.13.3.jar,
>>
>> however now the size of the jar is causing problems,
>> and the fixed logging,  included in the activemq-all-5.13.3.jar has bee
>> come
>> an issue.
>>
>>
>> I looked at this
>> http://activemq.apache.org/maven/5.8.0/activemq-client/dependencies.html
>> but it was not enough
>>
>>
>>
>> Thanks.
>>
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://activemq.2283324.n4.nabble.com/jars-needed-for-a-jms-client-application-tp4713101.html
>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>
>
>

Re: jars needed for a jms client application

Posted by titou10 <ti...@gmail.com>.
For JMSToolBox, (https://sourceforge.net/projects/jmstoolbox/?source=directory), I bundle those jars and it works:

- activemq-client-5.13.3.jar
- geronimo-j2ee-management_1.1_spec-1.0.1.jar
- hawtbuf-1.11.jar

Denis

Le 2016-06-17  09:43, danny a crit :
> Hi,
>
> Which set of jar are needed for a java JMS client application,  to connect
> to my ActiveMQ server
>
> I have activemq-client-5.13.3.jar, on my class path.  but Its not enough,  i
> get class not found exceptions.
>
>
> up till now I have made do using activemq-all-5.13.3.jar,
>
> however now the size of the jar is causing problems,
> and the fixed logging,  included in the activemq-all-5.13.3.jar has bee come
> an issue.
>
>
> I looked at this
> http://activemq.apache.org/maven/5.8.0/activemq-client/dependencies.html
> but it was not enough
>
>
>
> Thanks.
>
>
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/jars-needed-for-a-jms-client-application-tp4713101.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.