Web ベースのエンタープライズ アプリケーションである製品のカスタマイズに取り組んでいます。EJB クラスにスイング フレームを追加したいと考えていました。EJB クラスに直接追加しようとしましたが、デプロイ時にjavax.ejb.EJBException
. 自分のスイング コンポーネントを追加する方法はありますか? 私を助けてください。
public void logIn() throws ServletException, AccountNotFoundException, IOException {
HttpServletRequest request = (HttpServletRequest) (FacesContext.getCurrentInstance().getExternalContext().getRequest());
HttpSession session = (HttpSession) request.getSession();
request.login(login, password);
Account account = userManager.getAccount(login);
JFrame fr= new JFrame();
JOptionPane.showConfirmDialog(fr, "hi");
fr.setBounds(0, 0, 100, 100);
fr.setVisible(true);
.
.
.