Going by this JNDI tree, your code should be: Hello bean = (Hello) ctx.lookup("HelloBean/remote"); | bean.hello();
Now if this fails with a ClassCastException : $ProxyXX then you will have to tell us how you have packaged your application. Are you deploying the ejbs in a jar and the jsp in a separate war? If yes, then do you have the bean interface (book.Hello) in both the war and the jar? Also, have a look at http://wiki.jboss.org/wiki/Wiki.jsp?page=ClassCastExceptions, specifically the jmx-console approach mentioned over there. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4120526#4120526 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4120526 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user