I almost hate to point this out because it might confuse things, but if I don't use
the EJB injection I can get things to work:
| // @EJB(name="java:comp/env/ejb/MyBean")
| private MyBeanRemote mbr;
|
| private Logger logger = Logger.getLogger(MainForm.class.getSimpleName());
|
| public MainForm() {
| try {
| Context c = new InitialContext();
| Object obj =
c.lookup("jnp://localhost:1099/custom/remote/MyBean");
| mbr = (MyBeanRemote) PortableRemoteObject.narrow(obj,
| MyBeanRemote.class);
| } catch (NamingException e) {
| logger.log(Level.SEVERE, "Naming Exception", e);
| }
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4165742#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...