This content has been marked as final. Show 3 replies
This listener is bundled in a jar file, which I have put under <JBOSS_HOME>/common/lib to make it available for all applications running on my Jboss application server.
What I see is that when web application is deployed and listener is executed the datasource (ds) is always = null.This means the container did not execute the dependency injection of the datasource.
jars in that folder are considered just as libraries and are not scanned for deployments.
Could someone please help because I don't want to deploy my shared jar with each application individually.
Are those war applications independent of each other? If not, then you can create an EAR and package all these wars in that EAR along with that single jar containing the listener.
Are those war applications independent of each other?
Thanks for your quick reply, jaikiran.
Yes the war applications are independant of each other, so I guess the only solution would be to package the jar with each war individually?