Thanks for the reply Janine.
But I am not trying to play with App Data or Session Data. Let me put my question some different way:
I have three classes:
- MyCustomAction class which extends ActionElementBase
- Startup Class which implements StartApplicationInterface
- DbHandler which contains a static variable of BasicDataSource (pool)
MyCustomAction and Startup are bundled in the same jar where as DbHandler is in another jar.
Now initialize pool in DbHandler class which is done successfully. But when I try to get a connection from this pool, I find it un-initialized. I am not accessing any thing out of application. And I dont wanna set pool ref in application etc. It loaded within the same application and should be available to all classes of that very same application.
Hope I could clear my question.