You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by QJack <ja...@pathfire.com> on 2007/06/04 15:02:07 UTC

Receiver using jndi.properties, Sender not.

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.


Re: Receiver using jndi.properties, Sender not.

Posted by James Strachan <ja...@gmail.com>.
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 <ja...@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/