[jboss-dev-forums] [Design of EJB 3.0] - Re: Default JNDI naming scheme in EJB3.0 and possible confli

jaikiran do-not-reply at jboss.com
Tue Oct 21 12:27:48 EDT 2008


"jaikiran" wrote : 
  | I think the second example will be handled gracefully in 3.1 as per the specs (Section 4.4.1):
  | 
  | anonymous wrote : Each portable session bean global JNDI name has the following syntax :
  |   | 
  |   | java:global[/<app-name>]/<module-name>/<bean-name>#<fully-qualified-interface-name>
  |   | 
  |   | The container registers a separate global JNDI name entry for each local business interface, each remote business interface, and any no-interface view, 2.x local home interface, or 2.x remote home interface. For the the no-interface view, the last portion of the entry name is the fully-qualified bean class name.
  |   | 
  | 
  | The fully-qualified-interface-name will generate a unique JNDI name.
  | 


On second thoughts, Carlo is right. The following scenario will not work even in 3.1:

Both packaged in same EAR/JAR:
 
package org.myapp.business;
  | 
  | @Stateless
  | public class ManagerBean implements org.myapp.Manager {
  | 
  | }
  |  


package org.myapp.persistence;
  | 
  | @Stateless
  | public class ManagerBean implements org.myapp.Manager {
  | 
  | }
  | 

Both of these will resolve to

java:global[/<app-name>]/<module-name>/ManagerBean#org.myapp.Manager
  | 


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

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



More information about the jboss-dev-forums mailing list