Standalone client:
Code:
------------------------------------------------
package test;
import javax.naming.InitialContext;
public class Client {
public static void main(String[] args){
try{
InitialContext context = new InitialContext();
EJB01 ejb01=(EJB01)context.lookup("java:global/testEJBExceptions/EJB01Bean!test.EJB01");
ejb01.init();
ejb01.method1(123);
EJB02 ejb02=(EJB02)context.lookup("java:global/testEJBExceptions/EJB02Bean!test.EJB02");
ejb02.init();
ejb02.method2(345);
}catch (Exception ex){
ex.printStackTrace();
}
}
}
------------------------------------------------
[Message sent by forum member 'lft']
http://forums.java.net/jive/thread.jspa?messageID=396646