[jboss-dev-forums] [Design of EJB 3.0] - Re: Injecting into the Containers

ALRubinger do-not-reply at jboss.com
Tue May 26 18:18:29 EDT 2009


"ALRubinger" wrote : * New Deployer to Create a Metrics POJO, then attach it to the DeploymentUnit
  | * Ejb3Deployer picks up the attachment and sets it upon the Ejb3JBoss5Deployment.
  | * Containers get at the Metrics POJO via getDeployment().

Alternatively I can:

* Have Ejb3MetricsDeployer come along *after* Ejb3Deployer
* Pick out all Containers created from the Deployment
* Inject Metrics POJOs into each of them

...thus adding metrics becomes a concern atop EJB3.  ejb3-core then relies only upon ejb3-metrics-spi, and ejb3-metrics-impl can be a JAR which includes the Ejb3MetricsDeployer definition in a jboss-beans.xml.

But ejb3-core still needs to make the calls to the underlying metrics collectors, so we still mix concerns unless we start intercepting things like createSession and destroySession via AOP.

S,
ALR

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4233435#4233435

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4233435



More information about the jboss-dev-forums mailing list