wood burning stoves*
The moose likes EJB and other Java EE Technologies and the fly likes Third party jar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Third party jar" Watch "Third party jar" New topic
Author

Third party jar

Arjun Karthick
Ranch Hand

Joined: Jan 04, 2007
Posts: 77
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.
vikram karne
Ranch Hand

Joined: Jun 05, 2007
Posts: 34
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
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

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.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Arjun Karthick
Ranch Hand

Joined: Jan 04, 2007
Posts: 77
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.
Rahul Bhattacharjee
Ranch Hand

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


Rahul Bhattacharjee
LinkedIn - Blog
Amit M Tank
Ranch Hand

Joined: Mar 28, 2004
Posts: 257
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


Amit Tank
Linked In
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Third party jar