AnsweredAssumed Answered

Does FSR permits concurrent deployment to different targets?

Question asked by rockycres on Aug 25, 2009
Latest reply on Aug 25, 2009 by mrogers
Hi all,

This post is regarding  FSR Deployment .

 <property name="targetData">
        <entry key="target1">
            <entry key="root"><value>content/data1</value></entry>
            <entry key="prepare">
                <ref bean="prepareCallback" />

<bean id="prepareCallback" class="com.sample.deployment.PrepareCallback" >
     <property name="fileTarget">
            <ref bean="fileTarget" />
      <property name="filePath">
            <ref bean="filePath" />

<bean id="fileTarget" class="com.sample.deployment.FileTarget" />
<bean id="filePath" class="com.sample.deployment.FilePath" />

public class PrepareCallback implements FSDeploymentRunnable{
        public FileTarget  fileTarget = null;
        public Filepath  filePath = null;   
   public void init(Deployment deployment) {


       public void setFileTarget(FileTarget fileTarget) {
      this.fileTarget = fileTarget;
FSR being an spring application,if we use PrepareCallback with default singleton scope in application context, so it will be instantiated once when the server starts or when the  application context is loaded,.

Consider the scenario when two user deploys to the same FSR server but deploys to  two different targets at the same time, does FSR framework permits concurrent deployment at the same time,if it does allow , then the same prepareCallback class & fileTargetinstances  will be shared for both the deployments?…Is it the right way to have instance variables for the PrepareCallback class if concurrent deployment scenario is permitted.?