File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes importing a project 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 "importing a project" Watch "importing a project" New topic

importing a project

PradeepPillai Pradeep
Ranch Hand

Joined: Nov 15, 2005
Posts: 186
I have a project called EJBProject. I have an ejb project called EJBProjectEJB and a web project called EJBProjectWeb in Project. How can I make the methods in ProjectEJB available in ProjectWeb.
I have

InitialContext context = new InitialContext ();
Object o = context.lookup("ejb/com/ejb/HelloHome");
HelloHome hh = (HelloHome)PortableRemoteObject.narrow (o,com.ejb.HelloHome.class);
com.ejb.Hello h = hh.create();
hello = h.sayHello();
out.println(hello + "

in my jsp.
I agree. Here's the link:
subject: importing a project
It's not a secret anymore!