I am reading an Enterprise Application Architecture Templates book . Looking through basic templates such as the registry template , I find that features that were first published in November 2002 may not be the best possible solutions.
For example, take a registry template. In our organization, we use simple JDBC calls for db operations and, if necessary, pass the connection object for one transaction. This approach is not the best, but the alternative to using a registry template also does not seem good , since the dependency will not be visible then - there may be a problem for testing. Dependency injection is suggested as the best way to implement this behavior.
Can anyone who has worked on Java EE web / enterprise apps comment on this and that you would recommend analyzing the use of each template (its pros and cons?). Any recent book that details this?
source
share