geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Jencks <>
Subject Re: How may I access ConnectionFactory/Queues etc. with JNDI-lookup?
Date Tue, 04 Nov 2008 23:14:27 GMT

On Nov 4, 2008, at 2:53 PM, Marcus Better wrote:

> Hi,
> David Jencks wrote:
>> You should be putting the file in the of
>> your non-ee client application.  I would not advise trying to use the
>> amq properties based jndi inside geronimo.
> I have a slightly different scenario: I have a Spring application  
> with a
> little GBean wrapper that I want to deploy. How can I get hold of the
> connection factory etc with JNDI from inside Geronimo? What is the
> appropriate InitialContext class?
> The connection factory and queue are configured in the server using  
> the
> ActiveMQ RA.

IIUC you have a geronimo plan for the amq ra that you have deployed....

in 2.1.3 (I think) and trunk all the connection factores and  
destinations are bound into jca:/<groupId>/<artifactId>/<type>/name.   
Look in var/log/geronimo.log for the exact names used to bind.  As  
long as you don't have any files or reset the jndi  
properties anywhere you should be able to look up with plain new  

hope this works :-)
david jencks

> Cheers,
> Marcus

View raw message