Hi everybody. I have the following problem:
I have developed a resource adapter. Its ManagedConnectionFactory instantiates a Work that is executed within ResourceAdapter's WorkManager periodically, through all ManagedConnectionFactory lifecycle. This work depends on several 'config-property' set on the datasource.
When I redeploy the datasource with new config properties, a new ManagedConnectionFactory is instantiated and so a new Work with new properties. The old ManagedConnectionFactory instance is unbounded, but I cannot hold this event on any place so that it could release its associated work.
Then, on every redeploy, a new Work remains on WorkManager without being never released.
Is there a way of fixing this issue?
Thanks a lot.
Ok, the question is as simple as this:
Is there a way of handling the ManagedConnectionFactory lifecycle¿? Methods like start() or stop() to implement in order to take actions when a ManagedConnectionFactory is unbounded...
Thanks a lot