Hello, again | I had three issues with my code | 1) I packaged the client into an ear, although it was just a stand-alone Java app. | | 2) I incorrectly specified the JNDI connection, missing out the the protocol name "jnp" from "jnp://localhost:1099" | | 3) In the lookup method I specified the name of the remote interface, rather then the actual bean (or a JNDI binding name). It works when the parameter is specified as | SimpleSession ss = (SimpleSession) ctx.lookup"SimpleSessionBean/remote"); | and it doesn't when it is | SimpleSession ss = (SimpleSession) ctx.lookup(SimpleSession.class.getName()); | | Strangely enough the latter was copied from Apress JEE5 tutorial. | I moved on to EJB relationships territory since then and recently posted another issue on the forum here: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=134147. | I will very much appreciate your help and many thanks for responding to this thread. |
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145658#4145658 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145658 _______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
