Scoping is spec mandated, nothing we can do about it.  In fact, I'm not even 
sure you can legally reference a PU packaged within an EJB-JAR with the 
"../foo.jar#PU" syntax.  Repackage your persistence units into their own jar 
separate from EJBs and you don't have to use that ugly syntax.

As for the EJB default JNDI names?  Yes, I liked the old syntax too but it 
didn't work well out of the box when you use the same interface name in 
multiple EJBs or versioned the EJB in different EARs.  If you think about it, 
the EAR syntax is analogous to the WAR file name being used as the root context 
in a URL.  If you don't like the default names, you can change it in jboss.xml 
or with the @Remote/@LocalBinding annotations.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3920811#3920811

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3920811


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to