How to define the package?

Discussions

EJB design: How to define the package?

  1. How to define the package? (2 messages)

    I find a sample whose package's structure as following:

    jpetstore
     |
     |--dao (DAOs ,interface )
     |--domain ( the domain classes )
     |--service ( some service)
     |--web ( contains the Web Controller)

    then I want to know how to define the package ?
    Acorrding to the layers,or the function module?

    Threaded Messages (2)

  2. How to define the package?[ Go to top ]

    I find a sample whose package's structure as following:jpetstore  | |--dao (DAOs ,interface ) |--domain ( the domain classes ) |--service ( some service) |--web ( contains the Web Controller)then I want to know how to define the package ?Acorrding to the layers,or the function module?
    I think we should combine the both i.e Layers as well as function module.
    First we can create packages keeping function modules in the mind and then inside those packages we can create layer wise package structure.It will be easy to maintain..
    Some people might prefer the same thing but other way round.
    keep posted about suggestions
    Amit
  3. How to define the package?[ Go to top ]

    Thanks for your reply.
    Your opinion may be right.I study several frameworks and found the same result.