Hi,
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.
Is there a recommended approach on how to access all of the members in the pool?
Bonus point: we'd also like to be able to expose reconfigure() via JMX, so that the sys admins can trigger that when they need to via a JMX admin tool in JBoss. We are using JMX successfully with singletons, but is there any easy way of doing this for a bunch of pooled POJOs? I suppose the answer may depend on the solution to the earlier question.
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


Reply With Quote
