"scott.stark@jboss.org" wrote:
but as I'm testing these in jbossas I don't see the BeanMetaData annotations showing up in the MetaData for the deployments. In fact, there MetaData obtained from the DeploymentUnit.getMetaData does not have anything it appears.
Its the BeanMetaDataDeployer, there is no ManagedObjectCreatorDeployer any longer. The ManagedObjectCreator implementation plugs into the DeployersImpl and processes every DeploymentContext passed in from the MainDeployer.
The problem is ManagedObjects are not created for the component deployment units as the parent deployment unit KernelDeployment metadata exposes the List beanFactories managed property. For a given BeanMetaData I need the component MetaData that overrides it. I don't see how I get this in a general way such that a single ManagedObjectCreator implementation can be used. I'll have to create a KernelDeployment specific implementation.
I finally got this working, but I don't see deployment level annotations visible in the deployment scope metadata:
<deployment xmlns="urn:jboss:bean-deployer:2.0"> <annotation>@org.jboss.managed.api.annotation.ManagementDeployment(description="JBossSX Security Beans")</annotation> <!-- Establish the basic XML Based Configuration--> <bean name="XMLLoginConfig" class="org.jboss.security.auth.login.XMLLoginConfig"> <property name="configResource">login-config.xml</property> </bean> ...