On Dec 4, 2006, at 7:25 AM, Filippo Diotalevi wrote:

Now I notice that openejb uses different types of JndiNameStrategy to
assign names to deployed ejbs, so that my ejb, whose remote interface
is org.acme.Calculator, becomes CalculatorBusinessRemote bean on JNDI.
Is this behaviour correct?

With Glassfish, the ejb takes the simple name of its business
interface, but I didn't find a clear statement in the specification
about the correct naming of ejb...

On this note, we can do whatever users think is most intuitive as global JNDI isn't a spec defined thing -- per spec even client apps are supposed to have a deployment descriptor and use ejb-ref and ejb- local-ref tags (ick).

The strategy concept was plumbed in so we could support just about anything, we just don't yet have a mechanism for the user to say which strategy they want.

I like the interface simple name approach. The only downside is that more than one bean can easily implement the interface.

What kind of thoughts do you have?  Any preferences?

-David


Reply via email to