Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

importing a project

 
PradeepPillai Pradeep
Ranch Hand
Posts: 186
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic