-
Jan 22nd, 2010, 06:42 AM
#1
Calling a method on every pooled object
Hi,
I asked this on the Core Container forum and someone suggested asking on the AOP one instead - apologies if this is seen as forum spam!
I'm developing a system where we have a number of POJOs holding stateful connections to a third-party system. These POJOs are pooled using the Target Source technique.
This all works as we want, except for one thing. We need to be able to call a reconfigure() method on each of those from time-to-time, mostly from a manual intervention via JMX.
Is there a recommended - or easy ;-) - approach on how to call that method on all of the members in the pool?
I'm sure I must be missing something obvious because I can't believe this is an incredibly unusual use case. We've got a couple of other ideas in mind on how we might solve this, but none of them feel very nice (or performant).
Regards,
Camden
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules