Avi Kivity wrote:
>
> No, you need two packages for each bean-group. In fact, I do this with
> non-EJB projects as well - I place the interfaces and exceptions in one
> package, and the implementation in another.
I don't agree with this at all. Jars etc are there to reflect deployment
structures and the java package is there to reflect development aspects.
Apologies if I'm broadening the question far beyond what was being asked, but
here are the rules for getting from developmeent to successful deployment that I
like to follow:
1. Assign names to packages so that they are unconditionally unique, eg
com.companyname.project.part.
2. Put things into a package that are tightly coupled. Implementations, homes
locals and remotes would all go into one package. Entity beans mapping the same
database could be in the same package. A Session Bean facade to an Entity Bean
could be in the same package as the Entity. Don't be afraid of lots of packages
though.
3. Ensure there is sufficient focus on deployment, it is difficult!
4. Integrate the code from multiple developers by compiling it into a single
classes tree from where deployment structures can be created.
5. Design deployment structures so that jar/war/ear files contain things that
will definitely always be deployed to the same place. If the application may be
split across multiple servers create separate files. Helper classes, value
objects, etc needed by multiple EJBs go into separate non-EJB jars so that they
can be referenced by EJB jars (to avoid loading the code multiple times).
6. Use ANT or command files to copy the needed classes into each deployment
object from the classes tree. Only copy EXACTLY what is needed into each file.
HTH.
========================================
Ian McCallion
Alexis Systems Limited
Romsey, UK
Tel: +44 1794 514883
Fax: +44 1794 501692
========================================
===========================================================================
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".