Lean service architectures with Java EE 6 - JavaWorld - 0 views
-
Entity-Control-Boundary (ECB) architectural pattern matches perfectly with our pattern language
-
domain structure is an Entity, the Control is a service, and the Boundary is realized with a facade
-
In simpler cases the facade and service can collapse, and a service would be realized only as a facade's method in that case
Lean service architectures with Java EE 6 - JavaWorld - 0 views
-
DAOs aren't dead, but they cannot be considered as a general best practice any more. They should be created in a bottom-up, rather than a top-down, fashion. If you discover data-access code duplication in your service layer, just factor it out to a dedicated DAO and reuse it. Otherwise it is just fine to delegate to an EntityManager from a service. The enforcement of an empty DAO layer is even more harmful, because it requires you to write dumb code for even simple use cases. The more code is produced, the more time you must spend to write tests and to maintain it.
-
With JDK 1.5 and the advent of generics, it is possible to build and deploy a generic, convenient, and typesafe DAO once and reuse it from variety of services
-
DAOs aren't dead, but they cannot be considered as a general best practice any more. They should be created in a bottom-up, rather than a top-down, fashion. If you discover data-access code duplication in your service layer, just factor it out to a dedicated DAO and reuse it. Otherwise it is just fine to delegate to an EntityManager from a service. The enforcement of an empty DAO layer is even more harmful, because it requires you to write dumb code for even simple use cases. The more code is produced, the more time you must spend to write tests and to maintain it.
Lean service architectures with Java EE 6 - JavaWorld - 0 views
-
key ingredients of a service-oriented component: Facade: Provides simplified, centralized access to the component and decouples the client from the concrete services. It is the network and transaction boundary. Service: The actual implementation of business logic. Domain structure: This is a structure rather than an object. It implements the component's persistence and exposes all of its state to the services, without encapsulation.
-
This convention not only standardizes the structure and improves maintainability, but also allows automatic dependency validation with frameworks like JDepend, Checkstyle, Dependometer, SonarJ, or XRadar. You can even perform the validation at build time. If you do, the continuous build would break on violation of defined dependencies. The rules are clearly defined with strict layering: a facade may access a service, and the service a domain object, but not vice versa
Lightweight Java EE - YouTube - 0 views
Generic CRUD Service aka DAO - EJB 3.1/0 Code - Only If You Really Needed : Adam Bien's... - 0 views
-
Generic CRUD Service
-
The term Data Access Object (DAO)
-
is actually wrong
- ...7 more annotations...
[Debate] - And what about configuration in Java EE 7 ? « Antonio's Blog - 0 views
Temporary Documentation - 0 views
-
Low-level configurations
-
ConfigResolver
-
ConfigResolver.getPropertyValue
- ...7 more annotations...
DeltaSpike - ASF JIRA - 0 views
Working with Events in CDI - NetBeans IDE Tutorial - 0 views
-
Events
-
raised by the event producer
-
subscribed to by event observers
- ...2 more annotations...
Introduction - 0 views
Weld - JSR-299 Reference Implementation - 0 views
Object Services, or bridging anemic and rich models, in CDI/Weld @ Blog of Adam Warski - 1 views
-
Object Services, or bridging anemic and rich models, in CDI/Weld
Extending the security interceptor for Weld/JSF2 @ Blog of Adam Warski - 1 views
-
Extending the security interceptor for Weld/JSF2
-
simple security interceptor, which checks conditions defined
-
using EL expressions
VineetReynolds / Java EE 6-Galleria / wiki / DataModel - Bitbucket - 1 views
-
Many users can be associated with a group
-
Groups
-
groupId.
- ...5 more annotations...