tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Steen <ad...@rmt.com.au>
Subject RE: JMS Queues auto-linking to beans that don't need them
Date Wed, 09 Oct 2013 05:17:24 GMT
Hi Romain

None of the beans reference the queue using a @Resource.

Not sure I follow what you mean by "same in xml"? but I specify all my resources in the resources.xml
file. The queue as specified as follows

    <Resource id="jms/myConnectionFactory" type="javax.jms.ConnectionFactory">
    </Resource>

    <Resource id="FPeJobs/MailQueue" type="javax.jms.Queue">
    </Resource>

    <Resource id="FPeJobs/TaskQueue" type="javax.jms.Queue">
    </Resource>

The MDBeans reference the queues via an "activation-config-property"

    <activation-config-property>
        <activation-config-property-name>destination</activation-config-property-name>
        <activation-config-property-value>FPeJobs/MailQueue</activation-config-property-value>
    </activation-config-property>

Cheers
Adam

-----Original Message-----
From: Romain Manni-Bucau [mailto:rmannibucau@gmail.com] 
Sent: Wednesday, 9 October 2013 12:47 PM
To: users@tomee.apache.org
Subject: Re: JMS Queues auto-linking to beans that don't need them

Hi

You dont use @Resource or same in xml?
Le 9 oct. 2013 04:34, "Adam Steen" <adams@rmt.com.au> a écrit :

> Hi
>
> When we start up our app recently ported to Tomee, we get the 
> following information in our log repeated for all the beans we have, 
> but
>
>     2013-10-09 10:26:00 INFO org.apache.openejb.config.AutoConfig
> processResourceRef Auto-linking resource-ref 
> 'openejb/Resource/FPeJobs/TaskQueue' in bean UtilityServiceBean to
> Resource(id=FPeJobs/TaskQueue)
>     2013-10-09 10:26:00 INFO org.apache.openejb.config.AutoConfig
> processResourceRef Auto-linking resource-ref 
> 'openejb/Resource/FPeJobs/MailQueue' in bean UtilityServiceBean to
> Resource(id=FPeJobs/MailQueue)
>
> But none of our beans require access to the queue, they are looked up 
> elsewhere, is there a way to turn off auto-linking of the queues?
>
> Cheers
> Adam
>

Mime
View raw message