EJB3 JNDI name is mangled!
After deploying my stateless session bean: com.test.RemoteSecurity, doing a lookup(RemoteSecurity.class.getName()) gives me a NameNotFoundException.
Sure enough, looking at the JNDI entries, it has been entered as com.test.RemoteSecurity__3_x_Internal_RemoteBusiness__.
I thought you were supposed to be able to lookup EJBs by their interface name in EJB (or did I misinterpret a JBoss-specific functionality for being J2EE functionality?).