• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Third party place for EJB.

 
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Ulf for your response .
I got what I wanted.
 
If you settle for what they are giving you, you deserve what you get. Fight for this tiny ad!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic