Forums Register Login

importing a project

+Pie Number of slices to send: Send
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.
Does this tiny ad smell okay to you?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 494 times.
Similar Threads
regarding clas cast exception
Bring resources from ejb project into web project
NoClassDefFoundError running ejb Client
class cast exception
typical problem with J2EE Server
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 02:36:20.