activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: Receiver using jndi.properties, Sender not.
Date Wed, 06 Jun 2007 09:25:41 GMT
I don't really understand what you're doing or whats happening; but I
guess you might be hitting an issue with classpaths, or that the
broker is not being created until after your connections. Maybe
switching to tcp:// rather than vm:// might help

On 6/4/07, QJack <jandrews@pathfire.com> wrote:
>
> I have a Receiver that is using jndi.properties in the classpath and the
> InitialContext is being created with the default contructor.
> InitialContext().  I am also running the broker service.  When I run the
> Receiver it appears that it is trying to create its own service instead of
> binding to the existing broker.  I think this because I get a JMX connector
> "NameAlreadyBoundException".
>
> I then have a Sender that is creating an InitialContext with the EXACT same
> properties as the jndi.properties file using InitialContext(props) and the
> jndi.properties is NOT nor should be in it's classpath.  Yet, my receiver
> never receives the messages and what's more is that when using JConsole to
> monitor my Topics, the receiver's topic never shows.
>
> The JNDI tutorial doesn't mention this.  Also, I've noticed that if I use
> the jndi.properties in the classpath for both Receiver and Sender, the same
> thing happens, I don't successfully send messages.
>
> Any clues?
>
> Thanks,
>
> Jeff
> --
> View this message in context: http://www.nabble.com/Receiver-using-jndi.properties%2C-Sender-not.-tf3865081s2354.html#a10949357
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>


-- 
James
-------
http://macstrac.blogspot.com/

Mime
View raw message