📄 ex6_73.txt
字号:
Example 6.73 AccountDelegate
public class AccountDelegate {
public AccountProfileTO getAccountProfile(String accountId) {
AccountProfileTO accountProfile = null;
try {
AccountSessionHome home =
(AccountSessionHome) ServiceLocator.getInstance().
getEJBHome("Account", AccountSessionHome.class);
AccountSession session = home.create();
// Invoke Account Session Fa鏰de to get Account Profile
accountProfile = session.getAccountDetails(accountId);
}
catch(CreateException ex) {
// Translate the Session create exception into
// application exception
}
catch(RemoteException ex) {
// Translate the Remote exception into
// application exception
}
return accountProfile;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -