Packages
General rules of architecture layering
From SonarJ
AppFuse Packaging
src
main
java
org.myproject
dao // dao interface
hibernate // hibernate implementation
model // entities
service // services interface
impl // services implementations
util // utility classes
webapp
action // struts actions
filter // servlet filter
taglib // taglib
.....
webapp
pages web // html, jsp, images
WEB-INF
web.xml // and other config filesPattern Oriented Packaging
src
main
java
org.myproject
view // UI application
dao // dao interface (if needed)
model // entities
dto // dtos (if needed)
service // EJB local/remote interface
impl // EJB implementations
util // utility classes
webapp
controller // JSF controllers
filter // servlet filter
taglib // taglib
.....
webapp
pages web // html, jsp, images
WEB-INF
web.xml // and other config filesTier Oriented Packaging
src
main
java
org.myproject
client // UI application
server
dao // dao interface (if needed)
model // entities
dto // dtos (if needed)
service // EJB local/remote interface
impl // EJB implementations
util // utility classes
interop // interoperability classes
dto // dtos
ws // web services
jms // JMS MDBs
rest // resful services
webapp
controller // JSF controllers
filter // servlet filter
taglib // taglib
.....
webapp
pages web // html, jsp, images
WEB-INF
web.xml // and other config files










Comments: 0