我正在开发基于Web的企业应用程序的产品定制。我想在EJB类中添加一个swing框架。我尝试将其直接添加到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);
.
.
.