在一个SESSION BEAN中调用另外一个SESSION BEAN,无法调用!在线等待!
In the session bean, I create and use the method TestEJB() in the other session bean as below.
The create method is OK. But when program runs to dal.TestEJB(). It causes a exception and the message of exception is as the blue line.
javax.naming.Context ctx = new javax.naming.InitialContext();
Object obj = ctx.lookup( "com/cs/eximbills/ejbs/A_DAL_Session" );
A_DAL_SessionHome home =
(A_DAL_SessionHome) javax.rmi.PortableRemoteObject.narrow(
obj,
A_DAL_SessionHome.class);
A_DAL_Session dal = (A_DAL_Session) home.create();
Document resultXML = null;
dal.TestEJB();
home.remove( dal.getHandle() );