File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Third party place for EJB. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Third party place for EJB." Watch "Third party place for EJB." New topic
Author

Third party place for EJB.

Rahul Bhattacharjee
Ranch Hand

Joined: Nov 29, 2005
Posts: 2308
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?


Rahul Bhattacharjee
LinkedIn - Blog
Rahul Bhattacharjee
Ranch Hand

Joined: Nov 29, 2005
Posts: 2308
Can someone help me with the answer to this question. I have exam next week and even not gone through the specification yet.Please help me save some time to give a few mock exams.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42950
    
  72
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.
Rahul Bhattacharjee
Ranch Hand

Joined: Nov 29, 2005
Posts: 2308
Thanks Ulf , I wasn't aware of the ear packaging.

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 ]
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42950
    
  72
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.
Rahul Bhattacharjee
Ranch Hand

Joined: Nov 29, 2005
Posts: 2308
Thanks Ulf for your response .
I got what I wanted.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Third party place for EJB.