• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Third party jar

 
Arjun Karthick
Ranch Hand
Posts: 77
  • 0
  • 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.
 
vikram karne
Ranch Hand
Posts: 34
  • 0
  • 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
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • 0
  • 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
  • 0
  • 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.
 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • 0
  • 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.
 
Amit M Tank
Ranch Hand
Posts: 257
  • 0
  • 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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic