activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bruce Snyder" <>
Subject How to intercept the creation of ActiveMQConnections?
Date Wed, 20 Aug 2008 16:33:55 GMT
I've created a BrokerFilter for limiting the number the connections
the broker will hand out by overriding the
BrokerFilter.addConnection() and BrokerFilter.removeConnection()
methods. What I've found is that these two methods are not used to
intercept the creation of ActiveMQConnections via the

To test my BrokerFilter, I'm creating connections using the
ActiveMQConnectionFactory.createConnection() method and this path does
not call BrokerFilter.addConnection(). What I've found is that the
BrokerFilter.addConnection() method is called when a
TransportConnection is created not when an ActiveMQConnection (and
therefore a Transport) is created. So is there a way to intercept the
creation of ActiveMQConnections from the ActiveMQConnectionFactory?

perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"

Apache ActiveMQ -
Apache Camel -
Apache ServiceMix -


View raw message