activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: How to intercept the creation of ActiveMQConnections?
Date Wed, 20 Aug 2008 16:36:33 GMT
You hit this FAQ by any chance?
http://activemq.apache.org/i-am-not-receiving-any-messages-what-is-wrong.html

2008/8/20 Bruce Snyder <bruce.snyder@gmail.com>:
> 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
> ActiveMQConnectionFactory.
>
> 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?
>
> Bruce
> --
> perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
> );'
>
> Apache ActiveMQ - http://activemq.org/
> Apache Camel - http://activemq.org/camel/
> Apache ServiceMix - http://servicemix.org/
>
> Blog: http://bruceblog.org/
>



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

Open Source Integration
http://open.iona.com

Mime
View raw message