Ok, as everyone liked it, going to make this change tonight or tomorrow (likely tomorrow) so we can get it in for the beta. Not the kind of thing we want to change on users later.

-David

On Sep 12, 2007, at 11:37 PM, David Blevins 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




Reply via email to