Hi Don -

I always use the fully qualified class name of the home interface as my JNDI
name.
E.g. com.customware.shoppingcart.ProductHome

This means that you are sure that there will be nice collisions, and also,
if you know the home interface's class name
then you know where to do the lookup.  If you do not want to use such a hard
coded name you can use <ejb-ref>'s so
in code you can lookup "ejb/ProductHome" and have this aliased to the
com.customware.shoppingcart.ProductHome.

Dion


> -----Original Message-----
> From: A mailing list for Enterprise JavaBeans development
> [mailto:[EMAIL PROTECTED]]On Behalf Of Don Schaefer
> Sent: Monday, April 16, 2001 12:41 PM
> To: [EMAIL PROTECTED]
> Subject: EJB naming patterns
>
>
> It is common for many to name their beans in the following fashion:
>
> Foo.java - base interface, used by both bean interface and bean
> implementation classes to ensure compile time safety.
> FooBean.java - bean interface class
> FooHome.java - bean's home interface
> FooImpl.java - beam implementation class.
>
> The Home interface is then found in/or near the root of the jndi context
>
> of the server that contains it.  This is fine for a small population of
> interfaces.  But what do you do when the number grows?  What sorts of
> policies have been used for larger numbers of deployed beans.
>
> I could imagine using something that includes the company name and the
> goal of the bean. (This would be redundant to some degree because this
> is already part of the package.)  But that would not work well if you
> are trying to implement a "well known" interface for an application
> assembler.
>
> Do you use a locator / activator behavior to create an aggregation on
> top of something that is really flat?
>
> Thanks for your thoughts on this,
> don.
>
> ==================================================================
> =========
> To unsubscribe, send email to [EMAIL PROTECTED] and include
> in the body
> of the message "signoff EJB-INTEREST".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
>

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to