How to intercept stop bundle event in Talend Runtime?
Hi!
I found bug in tMomInput for IBM Webshpere. When i stop bundle in Talend Runtime the queue connection doesn't interrupt.
That's why i try to find in tMomInputLoop (subcomponent of tMomInput) place where i can handle stop bundle event.
How can i intercept stop bundle event in Talend Runtime for logging or further handling inside a component or otherwise?
In theory to intercept bundle events you could implement your own BundleListener or ServiceListener (see
https://osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleContext.html) and listen to specific services or bundle names.. However - tMomInput is a library, not a bundle, so you may need to do the monitoring outside the Talend flow..