This content has been marked as final. Show 1 reply
OK, hit post rather than preview...sorry
one line in the code is a typo, it should be:
Object ref = context.lookup("java:comp/env/ejb/LogicBean/remote");
My question is how to configure the web.xml and jboss-web.xml so that the servlet knows about my EJB? Can someone post or point me toward an example, using a EJB 3.0 bean, that explains how to configure the <ejb-ref> tag in both web files. Thanks in advance, I'v been playing with this for a few days and had no luck.
A second question relates to the first. What, besides the remote/local interface, classes related to the EJB need to be in the WAR for things to work? In the old days the container produced a client JAR, what does one do in EJB 3.0 in JBoss? Thanks!!