Hi Burak,
The EJB 3.1 support in the add-on to the V3 preview was based on a much earlier version of the spec so there are some changes between that and the EJB support in the current EE 6 preview release. mappedName() will continue to be non-portable in Java EE 6 so it's likely that we won't be extending its capability to support local JNDI names in V3, though the final decision on that has not yet been made.
The better alternative is to use the new standard session bean JNDI names defined by the EJB spec. Any code packaged within the same module as the EJB can look up the
EJB with the string "java:module/<ejb-name>", which in your case would be "java:module/RPMCheckService".
--ken
[Message sent by forum member 'ksak' (ksak)]
http://forums.java.net/jive/thread.jspa?messageID=352107