[jboss-dev-forums] [Design of JCA on JBoss] - Re: Programmatic deployment--Redux

weston.price@jboss.com do-not-reply at jboss.com
Mon Nov 27 15:04:32 EST 2006


This is actually proving to be a bit more tricky than what I had previously thought. Rather than push the envelope, I started with a JAXP compliant parser deployer (though this can be changed). The parsising of the *-ds(x).xml file is the trivial part. Generating the apprpriate MBeans is proving to be the real *catch*. 

The org.jboss.resource.connectionmanager.RARDeployment, as well as all the other JCA related MBeans (JBossManagedConnectionPool, ConnectionManager etc) extend ServiceMBean support and as a result, rely on the default constructor being called. 

As a result, there is no way to inject the DeploymentData into them with the org.jboss.resource.deployment.RARDeployment. Unfortunately, I have as of yet been unable to figure out how to set properties on the MBeans using the ServiceMetaData API. I can set dependencies, but what about regular attributes? The only thing I could find was the ServiceElementValueMetaData/ServiceJavaBeanValueMetaData. 

Is there an API I am missing to set simple attributes on MBeans programmatically? 

So, to support programmatic deployment, something has to be done. Either the existing RARDeployment has to be rewritten to extend ServiceDynamicMBeanSupport (and all the other MBeanss), or new MBeans have to be created to support this. 



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

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



More information about the jboss-dev-forums mailing list