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".

Reply via email to