This content has been marked as final.
Show 3 replies
-
1. Re: @Resource injection not working in shared library
jaikiran Mar 20, 2009 6:20 AM (in response to vdmeerenp)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. -
2. Re: @Resource injection not working in shared library
jaikiran Mar 20, 2009 6:22 AM (in response to vdmeerenp)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. -
3. Re: @Resource injection not working in shared library
vdmeerenp Mar 20, 2009 12:35 PM (in response to vdmeerenp)"jaikiran" wrote:
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?
regards,
Pieter