I have two question:
1) I am trying to access a class from a jsp in a j2EE application.
- The class is in EJB module
- Class in interacting with an Ejb and one of its method(class method) is returning an interface that
has bussiness methods.
- I want to create an instance of that interface using method of that class in my jsp,so
that i can use the methods of interface
- Code for accessing class is :
<% AccessHome ah = new AccessHome();
com.genuitec.myejb.interfaces.HelloWorld bean1= ah.lookuphelloworld();%>
Message is <%= bean1.displaymessage() %>
I have imported the package of class using import,but i am having error on line
where i am creating the class as: " line breakpoint on line 27"
2) In an enterprise application which consists of web as well as ejb module, do we have to deploy EJB and web modules separately before deploying the j2ee project or directly deploy the J2EE application so it will automatically deploy ejb and web modules? |