• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

Third party jar

 
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am new to EJB.I want to know where should i specify the the path of third party jars like commons-logging.jar in the ejb-jar.xml used by my application.

Regards,
Arjun.
 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

you should specify the third party jars used in your application in the java build path of your application.
if you are using any IDE's like Eclipse,NetBeans then this process can be very easy.

Regards
Vikram K
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Arjun Karthick:
Hi,
I am new to EJB.I want to know where should i specify the the path of third party jars like commons-logging.jar in the ejb-jar.xml used by my application.

Regards,
Arjun.



This sort of stuff doesn't go in the deployment descriptor for your EJBs. The EJB spec. doesn't define where EAR classpath resources need to be placed. You should check your application server's documentation.
 
Arjun Karthick
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Vikram.
But i dont use any IDE. My requirement is to keep the jars specific to application and i dont want it to be visible to other applications.

More over i want the application to be deployable in any J2EE specific container.

I know for web- applications if we include the jars in the web-inf/lib folder the application the jars picks from there. Is there any similar way in the EJB applications.

regards,
Arjun.
 
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Paul Sturrock:
You should check your application server's documentation.



AS Paul pointed out , its something vendor specific and specification doesn't say anything about this , nor it has any folder like lib as in case of web application.

As in case of OC4J you can put all your dependent libraries directly within the EAR file.
 
Ranch Hand
Posts: 257
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We mostly have the jars in the EAR under the App-inf/lib folder. And for war under the web-inf/lib folder.

Hope this answers your question
 
Please do not shoot the fish in this barrel. But you can shoot at this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!