📄 testejb.java
字号:
package com.test;
import java.rmi.RemoteException;
import javax.ejb.CreateException;
import javax.naming.NamingException;
import com.sample.ejb.sessionbean.UserAccountMgr;
import com.sample.ejb.sessionbean.UserAccountMgrHome;
import com.sample.ejb.sessionbean.UserAccountMgrUtil;
public class TestEJB {
/**
* @param args
*/
public static void main(String[] args) {
try {
UserAccountMgrHome userAccountMgrHome = UserAccountMgrUtil.getHome();
UserAccountMgr userAccountMgr = null;
userAccountMgr = userAccountMgrHome.create();
} catch (NamingException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (RemoteException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (CreateException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -