Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to obtain contents from other project

 
shekar march chandra
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 704
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic