Hi Mike
Thanks for helping me. But it's still confusing because we got
Struts Framework with EJB 1.1
What code should I put inside my Action class that enable me to get the SessionContext?
protected MY_TO invokeService(MY_TO myTO)
throws EJBException, RemoteException, NamingException, CreateException {
SeparationReasonInquiry_TO sepReasonTO =
(SeparationReasonInquiry_TO) myTO;
InitialContext ctx;
if (home == null) {
ctx = new InitialContext();
Object o = ctx.lookup("java:comp/env/PilotFacade");
home = (PilotFacadeHome) PortableRemoteObject.narrow(o, PilotFacadeHome.class);
}
PilotFacade remote = home.create();
myTO =
(MY_TO) remote.processTransaction(
"SeparationReasonInquiry",
sepReasonTO);
return myTO;
}
[ November 15, 2007: Message edited by: Quang Pham ]