Its needs to be done in applyTemplates. The initial creation to create the template
properties is just a way to leverage the existing annotations and
AbstractManagedObjectFactory. In reality that ManagedObject and group are unused. The
AbstractTemplateInfoFactory.createInfo(...) call could just as easily take the
ManagedConnectionFactoryDeploymentGroup.class and scan for the ManagedPropertys that
should be part of the template. It gets away from the issue of knowing what ds type and
name are at that point.
One thing we have gotten confused about is that the ManagedPropertys are used in two
different ways, as detached by value objects used by admin clients (similar to detached
ejb3 entities), and as server side objects that are really proxies for properties on the
underlying metadata. Step 1 and the DeploymentTemplateInfo represents the client side
case, applyTemplates represents the server side case.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093682#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...