anonymous wrote : I would expect that with any code that calls Profile.addDeployment(),
the result would be the same -- the new deployment doesn't get installed into the
runtime
Searched around for usages of Profile.addDeployment(...). Besides the VFSScanner, the one
I'm seeing is in ManagementViewImpl.applyTemplate(...). And there it seems to be
calling the MainDeployer directly to get the new content installed:
| VFSDeployment ctx = deploymentFactory.createVFSDeployment(vf);
| activeProfile.addDeployment(ctx, phase);
| mainDeployer.addDeployment(ctx);
|
Is that the recommended approach to this sort of thing? Makes sense in a way; adding
content and then waiting for an arbitrarily timed scanner to pick it up seems wrong.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4160624#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...