Agree 100%.

We use this naming convention on the bean-side.
That is:
com.x.blah.people.Customer
com.x.blah.beans.CustomerBean (containing business logic only)
com.x.blah.beans.CustomerBeanCMP (container managed)
com.x.blah.beans.CustomerBeanBMP (bean managed)

On session-beans I'm not sure this always goes though. You cannot change a
stateful to a stateless without changing much of the interface.

Generally, I hate prefixes and suffixes in the interfaces. Makes code look
ugly. Sometimes you can't avoid it though.

Jon Tirs�n
Chief Architect
Itec Open Business Integrator AB
PGP key lookup:
http://certserver.pgp.com:11371/pks/lookup?op=get&search=0xE9032B9A

> -----Original Message-----
> From: A mailing list for Enterprise JavaBeans development
> [mailto:[EMAIL PROTECTED]]On Behalf Of Bailey, Jeff
> Sent: den 18 oktober 1999 19:51
> To: [EMAIL PROTECTED]
> Subject: Re: EJB naming conventions?
>
>
> I'm not too crazy about the idea of publishing the type of EJB in
> the remote
> interface and home names.  I view CMP vs. BMP as an implementation detail
> that users of my EJB don't know or care about.  For example, I
> could change
> from CMP to BMP and my client code should care less.
>
> Jeff Bailey ([EMAIL PROTECTED])
> Sr. Software Engineer
> NetGenics, Inc.
>
> -----Original Message-----
> From: John Archer [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 18, 1999 12:23 PM
> To: [EMAIL PROTECTED]
> Subject: Re: EJB naming conventions?
>
>
> I like the 3rd style in which you separate the BL from the interfaces.
>
> Currently use Remote to notate its usage and use a prefix to
> notate type of
> EJB
>
> SS - Session Stateful
> SL - Session Stateless
> EC - Entity CMP
> EB - Entity BMP
>
> an example
> Remote:   com.package.ECAccountRemote
> Home:     com.package.ECAccountHome
> Bean:     com.package.ECAccount
>
> just doing my part to create a naming nightmare !)
>
> good luck,
> john archer
> [EMAIL PROTECTED]
>
> -----Original Message-----
> From: A mailing list for Enterprise JavaBeans development
> [mailto:[EMAIL PROTECTED]]On Behalf Of Rickard �berg
> Sent: Sunday, October 17, 1999 12:40 PM
> To: [EMAIL PROTECTED]
> Subject: EJB naming conventions?
>
>
> Hi!
>
> I'm currently working on a wizard-style tool for EJB-XML creation. I was
> thinking of letting the tool figure out as much as possible on its own.
> To do that I have to know approximately which naming conventions people
> use for their beans.
>
> So far I have the following (using the common Account example):
> Style #1 (EJB spec):
> Remote: com.x.Account
> Home:   com.x.AccountHome
> Bean:   com.x.AccountBean
>
> Style #2 (J2EE RI):
> Remote: com.x.Account
> Home:   com.x.AccountHome
> Bean:   com.x.AccountEJB
>
> Style #3 (the one I use: alleviates packaging+follows EJB spec style):
> Remote: com.x.interfaces.Account
> Home:   com.x.interfaces.AccountHome
> Bean:   com.x.beans.AccountBean
>
> Are there any other styles that you people use? Let me know and I'll
> include them into the tool (which will be released as OpenSource).
>
> Thanks for your help!
> Rickard
>
> --
> Rickard �berg
>
> @home: +46 13 177937
> Email: [EMAIL PROTECTED]
> Homepage: http://www-und.ida.liu.se/~ricob684
>
> ==================================================================
> =========
> 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".
>
> ==================================================================
> =========
> 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".
>
BEGIN:VCARD
VERSION:2.1
N:Tirs�n;Jon;;;
FN:Jon Tirs�n
ORG:Itec;
TITLE:Chief Architect
TEL;WORK;VOICE:+46 (8) 343431
TEL;CELL;VOICE:+46 (709) 306109
TEL;WORK;FAX:+46 (8) 343438
ADR;WORK:;;Box 23049;Stockholm;;104 35;Sweden
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:Box 23049=0D=0AStockholm 104 35=0D=0ASweden
ADR;POSTAL:;;Ynglingagatan 17;Stockholm;;104 35;Sweden
LABEL;POSTAL;ENCODING=QUOTED-PRINTABLE:Ynglingagatan 17=0D=0AStockholm,  104 35=0D=0ASweden
URL:
URL:http://www.itec.se
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
EMAIL;INTERNET:[EMAIL PROTECTED]
REV:19990417T134712Z
END:VCARD

Reply via email to