A deployer for seam should just be a case of something that modifies
the WebMetaData to add the seam servlet context listener (or whatever
mechanism it uses).
| public MySeamDeployer extends AbstractSimpleVFSRealDeployer<WebMetaData>
|
| public MySeamDeployer()
| {
| super(WebMetaData.class);
| // We modify the web metadata - i.e. we are filter that inputs/outputs WebMetaData
| setOutputs(WebMetaData.class);
| }
|
| public void deploy(VFSDeploymentUnit unit, WebMetaData webMetaData) throws
DeploymentException
| {
| if (isSeamDeployment(unit))
| modifyWebMetaDataToAddSeamIfNotAlreadyPresent(webMetaData);
| }
|
WebMetaData is the object model for [jboss-]web.xml
Once that is done, you can just deploy a normal war with seam metadata
(or annotated classes) and it will automatically make the necessary
configuration changes to web.xml
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058864#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...