[jboss-dev-forums] [Deployers on JBoss (Deployers/JBoss)] - DeployerConfig vs. WebMetaData

bstansberry@jboss.com do-not-reply at jboss.com
Wed Sep 12 14:57:52 EDT 2007


Wanting to clean up some stuff related to clustered webapp configuration, but first want to be sure I understand how things are meant to work.

Looking at DeployerConfig and WebMetaData, it seems like there's some overlap in their usage. Both contain some metadata about a web app.  AFAICT, DeployerConfig should contain information that solely tells the deployer how to do the deployment, while WebMetaData would be the place to put things that the webapp itself would need to understand. Metadata that the deployer doesn't care about but the webapp does should be stored in WebMetaData.

DeployerConfig has a number of clustering-related properties that based on the above should be stored in WebMetaData rather than in DeployerConfig:

cacheName
useJK
useLocalCache
snapshotMode
snapshotInterval

This will eliminate a bunch of code where TomcatDeployment is passing these values into the clustered session manager one at a time. Instead they all would get passed with WebMetaData.

Am I wrong-headed here?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4083615#4083615

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4083615



More information about the jboss-dev-forums mailing list