"kabir.khan(a)jboss.com" wrote : I see TestMetaDataBeanDeployer from JBDEPLOY-69
adds the metadata in a different way
|
The only reason I did it a different way was because the deployers
were not fully configured in that test.
I modified the test so it sets up the Deployer's MetaDataRepository
from the Kernel's MetaDataRepository.
The test now uses the mechanism you had originally and passes.
| public class TestMetaDataBeanDeployer extends AbstractDeployer
| {
| public TestMetaDataBeanDeployer()
| {
| setStage(DeploymentStages.PRE_REAL);
| }
|
| public void deploy(DeploymentUnit unit) throws DeploymentException
| {
| unit.getMutableMetaData().addMetaData("test", this,
TestMetaDataBeanDeployer.class);
| }
| }
|
I don't what you are seeing? Can you modify the test to show it?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4168985#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...