Discussions

EJB design: EJB Package Structure

  1. EJB Package Structure (1 messages)

    I'm new to EJB.

    I want to get started creating my remote interfaces, home interfaces, exceptions, etc. I plan to use the patterns from the book "EJB Design Patterns".

    Here is my question:

    Can someone give me suggestions or guidelines on how my package structure should be set up? I have a project folder C:\Delivery8.0\java\src. How should I arrange all of my EJB related classes (remote interfaces, home interfaces, exceptions, EJB home factory, buisiness delegates, data transfer objects, data transfer object factory, EJB command, data access command beans, etc.)?

    Is there a standard for this? Does theserverside.com have an article about this?

    Thanks.
  2. RE: EJB Package Structure[ Go to top ]

    i'd be interested as well ...

    i've been using

    com.mycompany.myschema.mysubschema.ejb.stateless
    com.mycompany.myschema.mysubschema.ejb.stateful
    com.mycompany.myschema.mysubschema.ejb.entity

    or

    com.mycompany.myschema.ejb.stateless
    com.mycompany.myschema.ejb.stateful
    com.mycompany.myschema.ejb.entity