Announcement Announcement Module
Collapse
No announcement yet.
Calling a method on every pooled object Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
Working...
X