You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Jonas Jansson <ma...@gmail.com> on 2024/05/08 09:19:28 UTC

I can’t get activemq 5 to run with Spring 5

Hi folks, i desperately need som guidance as to how to get my ActiveMQ
upgrade to work with Tomcat and Spring5.
(If Slack is better, happy to get an invitation!)



---BACKGROUND
Been running 3 webapps with an in-memory activeMQ broker for intra-app
communication for 10+ years.
I have had the activemq-all jar in tomcat's /lib, because i wanted to
reduce the overall classloader memory footprint. All other jars such as
Spring has been in the respective war/lib directories.

This has been Spring 4.3 and ActiveMQ 5.14. I have defined the broker
through Spring to that the first webapp deployed starts the broker
Running on Tomcat 9


This setup has worked fine for me.


— UPGRADE PROBLEM
I am looking to update to Spring 5 the easiest way I can, changing as
little as possible, keeping config the same. Optimally i stay on 5.14 for
now, but i can upgrade to 5.18 if i have to.

What i'm getting is something that seems to be a clash with the jms1.1 /
2.0 support? From what i've read 5.18 comes with 2.0 support but i tried to
use 5.18.4 and i get the same.

Eerror message:
 Unsatisfied dependency expressed through constructor parameter 0: Could
not convert argument value of type
[org.apache.activemq.spring.ActiveMQConnectionFactory] to required type
[javax.jms.ConnectionFactory]: Failed to convert value of type
'org.apache.activemq.spring.ActiveMQConnectionFactory' to required type
'javax.jms.ConnectionFactory'; nested exception is
java.lang.IllegalStateException: Cannot convert value of type
'org.apache.activemq.spring.ActiveMQConnectionFactory' to required type
'javax.jms.ConnectionFactory': no matching editors or conversion strategy
found

I have tried doing maven dependencies and building, rather than using the
“activemq-all”, and that does seem to work. But this would mean that every
class would be loaded into memory three times, and I’d like to avoid that
if at all possible.


**If someone could help me getting my Spring 5 running with Tomcat(9) I'd
be most grateful.



— SETUP

Java 11
Spring 5.3.33
ActiveMQ 5.14 (or 5.18.4, tried everything)

I have the javax.jms-api 2.0.1 on the classpath because Spring 5 requires
it.
I have tried both having and not having jms1.1 on the classpath, no
difference.

Spring messaging setup:
<amq:connectionFactory id="refConnectionFactory" brokerURL="vm://myBroker"
clientID="webapp"/>
<bean id="connectionFactory"
class="org.springframework.jms.connection.CachingConnectionFactory">
    <constructor-arg ref="refConnectionFactory"/>
    <property name="sessionCacheSize" value="4"/>
</bean>

<!-- JmsTemplate Definition -->
<bean id="jmsTemplate" class="com.mypackage.MyTemplate">
    <constructor-arg ref="connectionFactory"/>
</bean>

Re: Stop - Unsubscribe

Posted by Justin Bertram <jb...@apache.org>.
I manually unsubscribed you.


Justin

On Wed, May 8, 2024 at 4:16 PM Haake, John <Jo...@signetjewelers.com>
wrote:

>
> Stop
>
> Unsubscribe
>
>
> The information contained in this e-mail message is privileged and/or
> confidential and is intended only for the use of the individual or entity
> named above.  If the reader of this message is not the intended
> recipient, or the employee or agent responsible to deliver it to the
> intended recipient, you are hereby notified that any dissemination,
> distribution or copying of this communication is strictly prohibited.
> If you have received this communication in error, please immediately
> notify us by telephone (330-668-5000), and destroy the original
> message.  Thank you.
>

Re: Stop - Unsubscribe

Posted by Justin Bertram <jb...@apache.org>.
I manually unsubscribed you.


Justin

On Thu, May 9, 2024 at 1:01 AM Carlos Barrie
<Ca...@kyndryl.com.invalid> wrote:

> Stop
>
> Unsubscribe
>
>
> Unless stated otherwise above:
> Kyndryl España, S.A.U.
> Calle Albacete, 5
> 28027 Madrid
> Registro Mercantil de Madrid; Folio 160; Tomo 41674; Hoja M-738231
> CIF A-04975934
>

Re: Stop - Unsubscribe

Posted by Justin Bertram <jb...@apache.org>.
I manually unsubscribed you.


Justin

On Thu, May 9, 2024 at 1:02 AM Arunima Mitra <am...@manh.com> wrote:

> Stop
>
> Unsubscribe
>
>
>
>
>
>
>
>
>
>
>
>
>
> Thanks and Regards,
>
>
>
>
>
> [image: signature_4130448085]
>
>
>
> *Arunima Mitra* | Program Manager
> Manhattan Associates, Inc.
> *M* +91 8050804627
>
>
>
> [image: signature_3072368443]
> <https://www.manh.com/lp/momentum-conference>
>
> [image: signature_2288465821]
>
> [image: signature_524561038]
>
>
>
> *From: *Carlos Barrie <Ca...@kyndryl.com.INVALID>
> *Date: *Thursday, 9 May 2024 at 11:31 AM
> *To: *users@activemq.apache.org <us...@activemq.apache.org>
> *Subject: *Stop - Unsubscribe
>
> [CAUTION: This email originated outside of Manhattan Associates.]
>
> Stop
>
> Unsubscribe
>
>
> Unless stated otherwise above:
> Kyndryl España, S.A.U.
> Calle Albacete, 5
> 28027 Madrid
> Registro Mercantil de Madrid; Folio 160; Tomo 41674; Hoja M-738231
> CIF A-04975934
>

RE: [External] Re: Stop - Unsubscribe

Posted by "Akoson Akotarh, Raymond" <RA...@victoria.com>.
Do same for me: UNSUBSCRIBE.

Thanks

Ray

[https://res.cdn.office.net/assets/bookwithme/misc/CalendarPerson20px.png]<https://outlook.office.com/bookwithme/user/ced342ff617442caa8cfaf2f5af7a691@victoria.com?anonymous&ep=bwmEmailSignature>
Book time to meet with me<https://outlook.office.com/bookwithme/user/ced342ff617442caa8cfaf2f5af7a691@victoria.com?anonymous&ep=bwmEmailSignature>

From: Julian Coleman <jc...@redhat.com>
Sent: Thursday, May 9, 2024 11:42 AM
To: users@activemq.apache.org
Subject: [External] Re: Stop - Unsubscribe

Hi, > I also would like to stop receiving these emails. > Sadly I don't see any banners with instructions to do it. > If someone writes some quick instructions I can do it myself. I guess that modern mail readers hide the email headers,


Hi,



> I also would like to stop receiving these emails.

> Sadly I don't see any banners with instructions to do it.



> If someone writes some quick instructions I can do it myself.



I guess that modern mail readers hide the email headers, but messages sent

to the list have a header line:



  List-Unsubscribe: <ma...@activemq.apache.org>



Regards,



Julian



--

Red Hat Czech, s.r.o.

Brno



Re: Stop - Unsubscribe

Posted by Robbie Gemmell <ro...@gmail.com>.
As covered at https://activemq.apache.org/contact (and described
earlier in this thread), to unsubscribe you would send an email to the
relevant mailing list email address:
users-unsubscribe@activemq.apache.org

On Tue, 14 May 2024 at 12:05, Soria, Adrian Manuel Arevalo
<Ad...@skatteetaten.no.invalid> wrote:
>
> Me 2. I would like to stop receiving these emails
>
> Adrian
>
> From: John Maurer <jr...@yahoo.com.INVALID>
> Date: Friday, 10 May 2024 at 16:07
> To: users@activemq.apache.org <us...@activemq.apache.org>
> Subject: Re: Stop - Unsubscribe
> I also would like to stop receiving these emails.
>
> jr.maurer@yahoo.comThank you, John Maurer
>
>     On Thursday, May 9, 2024 at 10:41:54 AM CDT, Julian Coleman <jc...@redhat.com> wrote:
>
>  Hi,
>
> > I also would like to stop receiving these emails.
> > Sadly I don't see any banners with instructions to do it.
>
> > If someone writes some quick instructions I can do it myself.
>
> I guess that modern mail readers hide the email headers, but messages sent
> to the list have a header line:
>
>   List-Unsubscribe: <ma...@activemq.apache.org>
>
> Regards,
>
> Julian
>
> --
> Red Hat Czech, s.r.o.
> Brno
>
>
>
> ________________________________
> Denne e-posten og eventuelle vedlegg er beregnet utelukkende for den institusjon eller person den er rettet til og kan vaere belagt med lovbestemt taushetsplikt. Dersom e-posten er feilsendt, vennligst slett den og kontakt Skatteetaten.
> The contents of this email message and any attachments are intended solely for the addressee(s) and may contain confidential information and may be legally protected from disclosure. If you are not the intended recipient of this message, please immediately delete the message and alert the Norwegian Tax Administration.

Re: Stop - Unsubscribe

Posted by "Soria, Adrian Manuel Arevalo" <Ad...@skatteetaten.no.INVALID>.
Me 2. I would like to stop receiving these emails

Adrian

From: John Maurer <jr...@yahoo.com.INVALID>
Date: Friday, 10 May 2024 at 16:07
To: users@activemq.apache.org <us...@activemq.apache.org>
Subject: Re: Stop - Unsubscribe
I also would like to stop receiving these emails.

jr.maurer@yahoo.comThank you, John Maurer

    On Thursday, May 9, 2024 at 10:41:54 AM CDT, Julian Coleman <jc...@redhat.com> wrote:

 Hi,

> I also would like to stop receiving these emails.
> Sadly I don't see any banners with instructions to do it.

> If someone writes some quick instructions I can do it myself.

I guess that modern mail readers hide the email headers, but messages sent
to the list have a header line:

  List-Unsubscribe: <ma...@activemq.apache.org>

Regards,

Julian

--
Red Hat Czech, s.r.o.
Brno



________________________________
Denne e-posten og eventuelle vedlegg er beregnet utelukkende for den institusjon eller person den er rettet til og kan vaere belagt med lovbestemt taushetsplikt. Dersom e-posten er feilsendt, vennligst slett den og kontakt Skatteetaten.
The contents of this email message and any attachments are intended solely for the addressee(s) and may contain confidential information and may be legally protected from disclosure. If you are not the intended recipient of this message, please immediately delete the message and alert the Norwegian Tax Administration.

Re: Stop - Unsubscribe

Posted by John Maurer <jr...@yahoo.com.INVALID>.
I also would like to stop receiving these emails.

jr.maurer@yahoo.comThank you, John Maurer 

    On Thursday, May 9, 2024 at 10:41:54 AM CDT, Julian Coleman <jc...@redhat.com> wrote:  
 
 Hi,

> I also would like to stop receiving these emails.
> Sadly I don't see any banners with instructions to do it.

> If someone writes some quick instructions I can do it myself.

I guess that modern mail readers hide the email headers, but messages sent
to the list have a header line:

  List-Unsubscribe: <ma...@activemq.apache.org>

Regards,

Julian

-- 
Red Hat Czech, s.r.o.
Brno

  

Re: Stop - Unsubscribe

Posted by Julian Coleman <jc...@redhat.com>.
Hi,

> I also would like to stop receiving these emails.
> Sadly I don't see any banners with instructions to do it.

> If someone writes some quick instructions I can do it myself.

I guess that modern mail readers hide the email headers, but messages sent
to the list have a header line:

  List-Unsubscribe: <ma...@activemq.apache.org>

Regards,

Julian

-- 
Red Hat Czech, s.r.o.
Brno


Re: Stop - Unsubscribe

Posted by Justin Bertram <jb...@apache.org>.
I manually unsubscribed you.

For what it's worth, instructions on how to unsubscribe are on the ActiveMQ
website [1]. In short, you simply need to send an empty email message to
users-unsubscribe@activemq.apache.org.


Justin

[1] https://activemq.apache.org/contact

On Thu, May 9, 2024 at 10:21 AM Simone Giacomelli <in...@simone.pro> wrote:

> I also would like to stop receiving these emails.
> Sadly I don't see any banners with instructions to do it.
> And I don't remember how to do it...
>
> Stop
> Unsubscribe
>
> Obviously I noted that Justin Bertram manually unsubscribed the OP... the
> two lines above are kind of a silly joke.
> If someone writes some quick instructions I can do it myself.
>
> Best Regards
> Simone Giacomelli
>
> On Thu, May 9, 2024 at 7:02 AM Arunima Mitra <am...@manh.com> wrote:
>
> > Stop
> >
> > Unsubscribe
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > Thanks and Regards,
> >
> >
> >
> >
> >
> > [image: signature_4130448085]
> >
> >
> >
> > *Arunima Mitra* | Program Manager
> > Manhattan Associates, Inc.
> > *M* +91 8050804627
> >
> >
> >
> > [image: signature_3072368443]
> > <https://www.manh.com/lp/momentum-conference>
> >
> > [image: signature_2288465821]
> >
> > [image: signature_524561038]
> >
> >
> >
> > *From: *Carlos Barrie <Ca...@kyndryl.com.INVALID>
> > *Date: *Thursday, 9 May 2024 at 11:31 AM
> > *To: *users@activemq.apache.org <us...@activemq.apache.org>
> > *Subject: *Stop - Unsubscribe
> >
> > [CAUTION: This email originated outside of Manhattan Associates.]
> >
> > Stop
> >
> > Unsubscribe
> >
> >
> > Unless stated otherwise above:
> > Kyndryl España, S.A.U.
> > Calle Albacete, 5
> > 28027 Madrid
> > Registro Mercantil de Madrid; Folio 160; Tomo 41674; Hoja M-738231
> > CIF A-04975934
> >
>

Re: Stop - Unsubscribe

Posted by Simone Giacomelli <in...@simone.pro>.
I also would like to stop receiving these emails.
Sadly I don't see any banners with instructions to do it.
And I don't remember how to do it...

Stop
Unsubscribe

Obviously I noted that Justin Bertram manually unsubscribed the OP... the
two lines above are kind of a silly joke.
If someone writes some quick instructions I can do it myself.

Best Regards
Simone Giacomelli

On Thu, May 9, 2024 at 7:02 AM Arunima Mitra <am...@manh.com> wrote:

> Stop
>
> Unsubscribe
>
>
>
>
>
>
>
>
>
>
>
>
>
> Thanks and Regards,
>
>
>
>
>
> [image: signature_4130448085]
>
>
>
> *Arunima Mitra* | Program Manager
> Manhattan Associates, Inc.
> *M* +91 8050804627
>
>
>
> [image: signature_3072368443]
> <https://www.manh.com/lp/momentum-conference>
>
> [image: signature_2288465821]
>
> [image: signature_524561038]
>
>
>
> *From: *Carlos Barrie <Ca...@kyndryl.com.INVALID>
> *Date: *Thursday, 9 May 2024 at 11:31 AM
> *To: *users@activemq.apache.org <us...@activemq.apache.org>
> *Subject: *Stop - Unsubscribe
>
> [CAUTION: This email originated outside of Manhattan Associates.]
>
> Stop
>
> Unsubscribe
>
>
> Unless stated otherwise above:
> Kyndryl España, S.A.U.
> Calle Albacete, 5
> 28027 Madrid
> Registro Mercantil de Madrid; Folio 160; Tomo 41674; Hoja M-738231
> CIF A-04975934
>

Re: Stop - Unsubscribe

Posted by Arunima Mitra <am...@manh.com>.
Stop

Unsubscribe






Thanks and Regards,


[signature_4130448085]

Arunima Mitra | Program Manager
Manhattan Associates, Inc.
M +91 8050804627

[signature_3072368443]<https://www.manh.com/lp/momentum-conference>
[signature_2288465821]
[signature_524561038]

From: Carlos Barrie <Ca...@kyndryl.com.INVALID>
Date: Thursday, 9 May 2024 at 11:31 AM
To: users@activemq.apache.org <us...@activemq.apache.org>
Subject: Stop - Unsubscribe
[CAUTION: This email originated outside of Manhattan Associates.]

Stop

Unsubscribe


Unless stated otherwise above:
Kyndryl España, S.A.U.
Calle Albacete, 5
28027 Madrid
Registro Mercantil de Madrid; Folio 160; Tomo 41674; Hoja M-738231
CIF A-04975934

Stop - Unsubscribe

Posted by Carlos Barrie <Ca...@kyndryl.com.INVALID>.
Stop

Unsubscribe


Unless stated otherwise above:
Kyndryl España, S.A.U.
Calle Albacete, 5
28027 Madrid
Registro Mercantil de Madrid; Folio 160; Tomo 41674; Hoja M-738231
CIF A-04975934

Stop - Unsubscribe

Posted by "Haake, John" <Jo...@signetjewelers.com>.
Stop

Unsubscribe


The information contained in this e-mail message is privileged and/or
confidential and is intended only for the use of the individual or entity
named above.  If the reader of this message is not the intended
recipient, or the employee or agent responsible to deliver it to the
intended recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited.
If you have received this communication in error, please immediately
notify us by telephone (330-668-5000), and destroy the original
message.  Thank you.

Re: I can’t get activemq 5 to run with Spring 5

Posted by Jonas Jansson <ma...@gmail.com>.
Hi Matt,

When you say “only have one”, do you mean one of 1.1 and 2.0, or something
else? According to this thread I found on the spring framework GitHub
project, you’re supposedly fine having both on the classpath?

https://github.com/spring-projects/spring-framework/issues/22115

"Technically speaking, we require the JMS 2.0 API to be present on the
classpath now. At the same time, our common execution paths at runtime
still operate according to JMS 1.1 rules, with just optional calls to
certain JMS 2.0 methods in certain configuration scenarios.
In practice, this means you'll have to upgrade your JMS API jar to 2.0 for
your Spring setup but should be able to run against a JMS 1.1 provider at
runtime”

I may very have misunderstood that one though.


I started looking at breaking down the discrete jars, but there are so many
second-order third-party dependencies so I thought it wouldn’t be feasible
to add all those as well to the common tomcat lib.


On 8 May 2024 at 15:53:17, Matt Pavlovich (mattrpav@gmail.com) wrote:

Hi Jonas-

Definitely looks like a class loading issue where you probably have a
collision with jms-2.0 api jars. You should only have one, so you probably
need to add an exclusion to one of the dependencies — spring-jms or break
down activemq-client to the discrete jars— activemq-client,
activemq-broker, etc.

I sent you a Slack invite.

-Matt Pavlovich

> On May 8, 2024, at 4:19 AM, Jonas Jansson <ma...@gmail.com>
wrote:
>
> Hi folks, i desperately need som guidance as to how to get my ActiveMQ
> upgrade to work with Tomcat and Spring5.
> (If Slack is better, happy to get an invitation!)
>
>
>
> ---BACKGROUND
> Been running 3 webapps with an in-memory activeMQ broker for intra-app
> communication for 10+ years.
> I have had the activemq-all jar in tomcat's /lib, because i wanted to
> reduce the overall classloader memory footprint. All other jars such as
> Spring has been in the respective war/lib directories.
>
> This has been Spring 4.3 and ActiveMQ 5.14. I have defined the broker
> through Spring to that the first webapp deployed starts the broker
> Running on Tomcat 9
>
>
> This setup has worked fine for me.
>
>
> — UPGRADE PROBLEM
> I am looking to update to Spring 5 the easiest way I can, changing as
> little as possible, keeping config the same. Optimally i stay on 5.14 for
> now, but i can upgrade to 5.18 if i have to.
>
> What i'm getting is something that seems to be a clash with the jms1.1 /
> 2.0 support? From what i've read 5.18 comes with 2.0 support but i tried
to
> use 5.18.4 and i get the same.
>
> Eerror message:
> Unsatisfied dependency expressed through constructor parameter 0: Could
> not convert argument value of type
> [org.apache.activemq.spring.ActiveMQConnectionFactory] to required type
> [javax.jms.ConnectionFactory]: Failed to convert value of type
> 'org.apache.activemq.spring.ActiveMQConnectionFactory' to required type
> 'javax.jms.ConnectionFactory'; nested exception is
> java.lang.IllegalStateException: Cannot convert value of type
> 'org.apache.activemq.spring.ActiveMQConnectionFactory' to required type
> 'javax.jms.ConnectionFactory': no matching editors or conversion strategy
> found
>
> I have tried doing maven dependencies and building, rather than using the
> “activemq-all”, and that does seem to work. But this would mean that
every
> class would be loaded into memory three times, and I’d like to avoid that
> if at all possible.
>
>
> **If someone could help me getting my Spring 5 running with Tomcat(9) I'd
> be most grateful.
>
>
>
> — SETUP
>
> Java 11
> Spring 5.3.33
> ActiveMQ 5.14 (or 5.18.4, tried everything)
>
> I have the javax.jms-api 2.0.1 on the classpath because Spring 5 requires
> it.
> I have tried both having and not having jms1.1 on the classpath, no
> difference.
>
> Spring messaging setup:
> <amq:connectionFactory id="refConnectionFactory"
brokerURL="vm://myBroker"
> clientID="webapp"/>
> <bean id="connectionFactory"
> class="org.springframework.jms.connection.CachingConnectionFactory">
> <constructor-arg ref="refConnectionFactory"/>
> <property name="sessionCacheSize" value="4"/>
> </bean>
>
> <!-- JmsTemplate Definition -->
> <bean id="jmsTemplate" class="com.mypackage.MyTemplate">
> <constructor-arg ref="connectionFactory"/>
> </bean>

Re: I can’t get activemq 5 to run with Spring 5

Posted by Matt Pavlovich <ma...@gmail.com>.
Hi Jonas-

Definitely looks like a class loading issue where you probably have a collision with jms-2.0 api jars. You should only have one, so you probably need to add an exclusion to one of the dependencies — spring-jms or break down activemq-client to the discrete jars— activemq-client, activemq-broker, etc. 

I sent you a Slack invite.

-Matt Pavlovich

> On May 8, 2024, at 4:19 AM, Jonas Jansson <ma...@gmail.com> wrote:
> 
> Hi folks, i desperately need som guidance as to how to get my ActiveMQ
> upgrade to work with Tomcat and Spring5.
> (If Slack is better, happy to get an invitation!)
> 
> 
> 
> ---BACKGROUND
> Been running 3 webapps with an in-memory activeMQ broker for intra-app
> communication for 10+ years.
> I have had the activemq-all jar in tomcat's /lib, because i wanted to
> reduce the overall classloader memory footprint. All other jars such as
> Spring has been in the respective war/lib directories.
> 
> This has been Spring 4.3 and ActiveMQ 5.14. I have defined the broker
> through Spring to that the first webapp deployed starts the broker
> Running on Tomcat 9
> 
> 
> This setup has worked fine for me.
> 
> 
> — UPGRADE PROBLEM
> I am looking to update to Spring 5 the easiest way I can, changing as
> little as possible, keeping config the same. Optimally i stay on 5.14 for
> now, but i can upgrade to 5.18 if i have to.
> 
> What i'm getting is something that seems to be a clash with the jms1.1 /
> 2.0 support? From what i've read 5.18 comes with 2.0 support but i tried to
> use 5.18.4 and i get the same.
> 
> Eerror message:
> Unsatisfied dependency expressed through constructor parameter 0: Could
> not convert argument value of type
> [org.apache.activemq.spring.ActiveMQConnectionFactory] to required type
> [javax.jms.ConnectionFactory]: Failed to convert value of type
> 'org.apache.activemq.spring.ActiveMQConnectionFactory' to required type
> 'javax.jms.ConnectionFactory'; nested exception is
> java.lang.IllegalStateException: Cannot convert value of type
> 'org.apache.activemq.spring.ActiveMQConnectionFactory' to required type
> 'javax.jms.ConnectionFactory': no matching editors or conversion strategy
> found
> 
> I have tried doing maven dependencies and building, rather than using the
> “activemq-all”, and that does seem to work. But this would mean that every
> class would be loaded into memory three times, and I’d like to avoid that
> if at all possible.
> 
> 
> **If someone could help me getting my Spring 5 running with Tomcat(9) I'd
> be most grateful.
> 
> 
> 
> — SETUP
> 
> Java 11
> Spring 5.3.33
> ActiveMQ 5.14 (or 5.18.4, tried everything)
> 
> I have the javax.jms-api 2.0.1 on the classpath because Spring 5 requires
> it.
> I have tried both having and not having jms1.1 on the classpath, no
> difference.
> 
> Spring messaging setup:
> <amq:connectionFactory id="refConnectionFactory" brokerURL="vm://myBroker"
> clientID="webapp"/>
> <bean id="connectionFactory"
> class="org.springframework.jms.connection.CachingConnectionFactory">
>    <constructor-arg ref="refConnectionFactory"/>
>    <property name="sessionCacheSize" value="4"/>
> </bean>
> 
> <!-- JmsTemplate Definition -->
> <bean id="jmsTemplate" class="com.mypackage.MyTemplate">
>    <constructor-arg ref="connectionFactory"/>
> </bean>