As a web application has lib folder within WEB-INF folder to put the third party jars.But I do not see anything in the jar file structure to store third party jars that I might have used in my bean class.
Do I have to put my third party jars in the context of the classloader of the application server ?
EJB does not have any specific classloader for different jars , like webappclassloader in case of a web application?
Isn't that what .ear files are for? The difference being that .war files have a correspondingly defined exploded directory structure, while .ear files have not. Which means the EJB container would be free to use them as it sees fit.
Does this mean that if my session bean class is dependent on a third party jar ,then there is no means by which I can only deploy the bean jar in application server. In this case I have to make an ear with the EJB component jar and the third party jar within it and deploy it in the application server. [ April 24, 2007: Message edited by: Rahul Bhattacharjee ]
Joined: Mar 22, 2005
The EJB container may have some kind of 'common' or 'shared' directory for jar files that are being made available to all applications, similar to the way Tomcat does it. I'd have a look at the container you're using for your experiments to see if that is the case.
Joined: Nov 29, 2005
Thanks Ulf for your response . I got what I wanted.