This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes How to obtain contents from other project Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "How to obtain contents from other project" Watch "How to obtain contents from other project" New topic
Author

How to obtain contents from other project

shekar march chandra
Greenhorn

Joined: Jul 07, 2005
Posts: 25
Hi,

I have developed ejbs and created a jar file for it.

I am developing servlets(which performs a lookup for ejbs),the problem is i am not able to import other project contents(i,e ejb project contents)

say I have an Ejb project by name Ej.All the beans will be in Ej.

Now, I have an Tomcat project by name Bj,I have to import all the contents of Ej project.How to do it ???

I tried to import but not working

Thanks,
Chandra
Valentin Tanase
Ranch Hand

Joined: Feb 17, 2005
Posts: 704
Hi Chandra,

I believe it all depends whether you�re using an IDE or a building tool like ant. However the choice the idea is always the same: you don�t need to import the whole ejb project, but only the home/remote interfaces (and their local siblings if your client is local) and all the common classes (like DTOs for example). Usually you pack all these files in one or more separate ejb-client.jar and common.jar libraries and make these available to your web project.
Regards.


I think, therefore I exist -- Rene Descartes
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to obtain contents from other project
 
Similar Threads
Can a Local EJB call another Local EJB?
ejb-ref question
Mysterious if statement
referencing ejb at run time in wsad
jndi lookup for an ejb through a servlet.