if I look up the jndi-name ejb/ListApplicants it works, but I'm wondering why one works with the COMP name and the other one doesn't
Post the entire contents of the ejb-jar.xml, jboss.xml and jboss-web.xml(if you have that). I guess for Applicant bean there is a ejb-ref that has been mentioned in one of those files because of which the lookup is successful using a COMP_NAME in case of Applicant.
Thank you, I've been fiddling so much with the entity beans that I forgot all about jboss-web.xml
It basically only contains
<ejb-ref> <ejb-ref-name>ejb/Application</ejb-ref-name> <jndi-name>ejb/Application</jndi-name> </ejb-ref>
right now, so I'll have to add the other one and try it out.