This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Third party place for EJB.

 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Ranch Hand
Posts: 2308
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2308
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2308
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ulf for your response .
I got what I wanted.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic