activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Fernandez <>
Subject Re: Determining the client's AMQ interface within a JAAS login module
Date Mon, 13 Apr 2009 10:57:21 GMT

You'll probably have an object that implements Broker or extends
BrokerFilter. That object's addConnection() method is passed a reference to
a ConnectionContext object. Use that object's  getConnection() method to get
the corresponding Connection object, which has a getRemoteAddress() method
that gives you the connection's source address. 



huntc wrote:
> Hi there,
> Does anyone know if it is possible to determine what interface a
> connection came in on while inside a JAAS plugin? I would like to know if
> the client has connected from within a local machine and, if so, assume
> authorisation. However if the client has connected from an outside
> address, or via SSL then I would like to take other authorisation action.
> Any ideas?
> Kind regards,
> Christopher

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message