users@javaee-spec.java.net

[javaee-spec users] rich domain models - injecting services into (JPA) beans

From: <vissers.j_at_gmail.com>
Date: Fri, 16 Nov 2012 01:41:59 +0000 (GMT)

Hi,

We are using a programming model that is inspired by rich
domains/domain-driven design. Right now we're leveraging Spring's
@Configurable concept, which combined with (a static) weave step allows
us to have JPA/persistable beans that get injected with collaborating
services. This works seamlessly for instance for entities that are the
result of a query, or for entities we create (new) ourselves to be
persisted later.

Maybe this is not the right place to ask this question, but I wonder
how I could accomplish something similar using JEE. I've asked a
similar question at the Devoxx BOF yesterday evening, but got no
clear/definitive answer.

Thanks for any feedback,
You're doing a great job.

Jan.