This week's book giveaway is in the Spring forum.
We're giving away four copies of Spring Boot in Practice and have Somnath Musib on-line!
See this thread for details.
Win a copy of Spring Boot in Practice this week in the Spring forum!
  • 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
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

query on including utility jars in an ejb-jar

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

Newbie question coming up:

I have built an ejb-jar and would like to include some utility classes in it (eg jars for jaxp and jaxb). Am I right in assuming that this is simply a case of adding whatever jars I need to the ejb-jar at the top-level?


I've read a forum thread on the issue here which covers ear files, but I just want to clarify the situation for just using an ejb-jar. I won't need to do any extra work, such as putting the jars in some particular directory, or modifying the manifest file?

Well, i'll give it a try tomorrow and hopefully it'll work as i think!


Thanks
Dilshad
 
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can add those jar file names in the manifest.mf file
 
Dilshad Marikar
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have confirmed that you do not need to do modify the manifest file when adding jars to an ejb-jar.
 
Ranch Hand
Posts: 425
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
yes you can add the jars in manifest and supply those jars with your EJB jar and put it in the same directory.

Cheers,
Rahul
 
reply
    Bookmark Topic Watch Topic
  • New Topic