What would be the name in the case I had two SuperBadBean EJB's in different packages i.e.
org.packageone.SuperBadBean org.packagetwo.SuperBadBean Both of the SuperBadBean EJB's implement the same interfaces. On 9/13/07, David Blevins <[EMAIL PROTECTED]> wrote: > Currently for a bean like this: > > @Stateless > @RemoteHome(MyHome.class) > @LocalHome(MyLocalHome.class) > @Local({SomeLocalInterface.class, AnotherLocalInterface.class}) > @Remote({SomeRemoteInterface.class, AnotherRemoteInterface.class}) > public static class SuperbadBean implements SomeLocalInterface, > AnotherLocalInterface, SomeRemoteInterface, AnotherRemoteInterface { > > } > > You'd get these JNDI Names: > > INFO - Jndi(name=SuperbadBean) // for MyHome > INFO - Jndi(name=SuperbadBeanLocal) // for MyLocalHome > INFO - Jndi(name=SuperbadBeanBusinessLocal) // for SomeLocalInterface > and AnotherLocalInterface > INFO - Jndi(name=SuperbadBeanBusinessRemote) // for > SomeRemoteInterface and AnotherRemoteInterface > > This pattern is completely configurable, but I'm thinking we should > change the default to use the annotation names (@RemoteHome, @Remote, > @LocalHome, @Local): > > INFO - Jndi(name=SuperbadBeanRemoteHome) // for MyHome > INFO - Jndi(name=SuperbadBeanLocalHome) // for MyLocalHome > INFO - Jndi(name=SuperbadBeanLocal) // for SomeLocalInterface and > AnotherLocalInterface > INFO - Jndi(name=SuperbadBeanRemote) // for SomeRemoteInterface and > AnotherRemoteInterface > > Thoughts? > > -David > > > -- Karan Singh Malhi