[jboss-dev-forums] [Design of POJO Server] - Re: The DeploymentManager and ProfileService

emuckenhuber do-not-reply at jboss.com
Fri Jan 30 08:09:31 EST 2009


Last but not least - the deploymentManager is one of the remaining parts which are making the cleanup of the profileservice-spi a bit harder.

Especially the basic locking which is done when copying a file into a hot-deployment folder.
So maybe we want to remove the enableModifiedDeploymentChecks from the Profile spi:


  | public interface Profile
  | {
  |    /**
  |     * Enable/disable the getModifiedDeployments results. This can be
  |     * used to disable the getModifiedDeployments results during
  |     * periods such as bootstrap where changes should be delayed.
  |     * @see #getModifiedDeployments
  |     * @param flag - the enable/disable flag
  |     */
  |    void enableModifiedDeploymentChecks(boolean flag);
  | }
  | 

And just have a HDScanner.suspendProfile(ProfileKey key) and HDScanner.resumeProfile(ProfileKey key) 
to avoid that the folder is hot-deployment checked when the DeploymentManager is copying a file.
Not sure if that makes more sense, but i think the enableModifiedDeploymentChecks in the Profile spi maybe should not be there.

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

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



More information about the jboss-dev-forums mailing list