activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Davies <rajdav...@gmail.com>
Subject Re: Use of jndi.properties with activemq?
Date Tue, 15 Sep 2009 04:16:28 GMT

On 15 Sep 2009, at 01:29, Robert Nicholson wrote:

> Ok I spotted one mistake and that was that I had receive queue and  
> not request queue populated in my Point to Point setup.
>
> Now I see messages in my queue. Eureka !!!
>
> On Sep 14, 2009, at 8:36 AM, Rob Davies wrote:
>
>>
>> On 14 Sep 2009, at 14:27, Robert Nicholson wrote:
>>
>>> When using org.apache.activemq.jndi.ActiveMQInitialContextFactory  
>>> will it ever look for a local jndi.properties file?
>>>
>>> I'm trying to get JMeter working with the JMSSampler and I keep  
>>> getting a classcastexception when it does the lookup
>>>
>>>>>> 2009/09/13 21:35:43 ERROR - jmeter.threads.JMeterThread: Test  
>>>>>> failed!
>>>>>> java.lang.ClassCastException:  
>>>>>> org.apache.activemq.jndi.ReadOnlyContext
>>>>>> cannot be cast to javax.jms.Queue
>>>
>>>
>>>
>>>
>>>
>>
>>
>> Yes - if it can find it on its classpath - see http://activemq.apache.org/jndi-support.html
>>
>> cheers,
>>
>> Rob
>>
>> Rob Davies
>> http://twitter.com/rajdavies
>> I work here: http://fusesource.com
>> My Blog: http://rajdavies.blogspot.com/
>> I'm writing this: http://www.manning.com/snyder/
>>
>>
>>
>>
>>
>


Great stuff! - and yes the finding of the properties file relies on  
InitialContext

cheers,

Rob Davies
http://twitter.com/rajdavies
I work here: http://fusesource.com
My Blog: http://rajdavies.blogspot.com/
I'm writing this: http://www.manning.com/snyder/






Mime
View raw message