This content has been marked as final.
Show 4 replies
-
1. Re: HornetQ 2.2.14 - How can I tell what node a client is connected to at any given time when using Discovery?
ataylor May 8, 2012 2:06 PM (in response to bruceas)do you mean programatically or from an administrative tool?
-
2. Re: HornetQ 2.2.14 - How can I tell what node a client is connected to at any given time when using Discovery?
bruceas May 8, 2012 2:29 PM (in response to ataylor)Programatically. I'd like for the client to log the actual node it's connected to.
-
3. Re: HornetQ 2.2.14 - How can I tell what node a client is connected to at any given time when using Discovery?
ataylor May 9, 2012 3:16 AM (in response to bruceas)you can only really do it via the core API, something like
HornetQSession hornetQSession = (HornetQSession) jmsSession;
ClientSessionInternal sessionInternal = (ClientSessionInternal) hornetQSession.getCoreSession();
TransportConfiguration tc = sessionInternal.getSessionFactory().getConnectorConfiguration();
however, bear in mind that this is an internal API and subject to change.
-
4. Re: HornetQ 2.2.14 - How can I tell what node a client is connected to at any given time when using Discovery?
bruceas May 9, 2012 2:34 PM (in response to ataylor)Thanks Andy. This gives me exactly what I need.