We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this questionI am reading the book Patterns of enterprise application architecture. While going through the basic patterns - such as Registry pattern I am finding that possibilities that these patterns which were first published in Nov,2002 may not be the best possible solutions to go for.
For example take th开发者_如何学Pythone Registry pattern. In our organization we use simple JDBC calls for db operations and if needed pass the connection object for a single transaction. This approach is not the best - but the alternative of using Registry pattern also is not seeming good as the dependency would then not be visible - can be an issue for testing. Dependency Injection is suggested as a better way to implement this behavior.
Can anyone who has worked on Java EE web/enterprise apps comment on this - and what would you recommend to analyze the usage of each pattern (its pros and cons?). Any recent book that does a coverage of this in detail?.
(...) Any recent book that does a coverage of this in detail?
I recommend Adam Bien's Real World Java EE Patterns if you're looking for an up to date coverage of patterns and best practices with Java EE 5 and 6:
Real World Java EE Patterns includes coverage of:
- An introduction into the core principles and APIs of Java EE 6 (EJB, JPA, JMS, JCA, JTA, Dependency Injection, Convention Over Configuration, Interceptors, REST)
- Principles of transactions, Isolation Levels, Remoting in context of Java EE 6
- Mapping of the Core J2EE patterns into Java EE
- Discussion of superfluous patterns and outdated best practices like DAOs, Business Delegates, Data Transfer Objects extensive layering, indirections etc.
- Business layer patterns for domain driven and service oriented architectures
- Patterns for integration of asynchronous, legacy, or incompatible resources
- Infrastructural patterns for eager-starting of services, thread tracking, pre-condition checks, Java EE 6 lookups or integration of third-party Dependency Injection frameworks like Guice
- Hints for efficient documentation and testing
- Lean and pragmatic service and domain driven architectures, based on the discussed patterns
- Fully functional Java Connector Architecture (JCA) implementation with source code
- EJB 2 - EJB 3 migration
精彩评论