13 Replies Latest reply on Nov 4, 2013 1:30 AM by munnangi

    Jboos deployment  automation steps

    munnangi

      Hi All,

       

      Could you  please help me on jboss-5.1.0.GA  deployment automation process in windows environment.

      Thanks.

        • 1. Re: Jboos deployment  automation steps
          ctomc

          Moved to appropriate forum.

          • 2. Re: Jboos deployment  automation steps
            wdfink

            Hi Durga,

            welcome to the forum.

            he WildFly forum is not the right place for your question. I'll move your question to another space.

             

            Also your question is not very clear. What you mean by automation process?

            Could you give a more detailed description.

            1 of 1 people found this helpful
            • 3. Re: Jboos deployment  automation steps
              munnangi

              Hi Fink,

               

              Thank You.

               

              Now  we are  doing   application  deployments in jboss  manually, we  want  to   do this   deployment automation process .

               

              Need to  know the  jboss application deployment automation  process .

               

              Thanks in Advance

              Durga

              • 4. Re: Jboos deployment  automation steps
                wdfink

                Hi Durga,

                as you are using a AS5 you can copy the EAR/WAR/JAR file to the deploy follder of the server profile you use (i.e. JBOSS_HOME/server/default/deploy) it will be picked up from the scanner if you use the provided configuration. There is a deployment-scanner which watch the directory.

                • 5. Re: Jboos deployment  automation steps
                  munnangi

                  Hi Fink,

                   

                  Your  right, currently  we  are copying  WAR and EAR files  to the deploy folder of the server profile as you said.

                   

                  Our requirement is now we need to do this deployment automation  by  creating  one batch file, once we clinked on  batch  file   EAR/WAR file  deployment  will be  done  on (JBOSS_HOME/server/default/deploy)  by taking  backup  previous files.

                  I am looking  help on above  requirement.

                  Thanks,
                  Durga

                  • 6. Re: Jboos deployment  automation steps
                    wdfink

                    This is more a question for a windows scripting guy (not me).

                    What I would do in that case (via unix shell script) is to create a backupfolder with the current date copy the deploy/XXXX file and overwrite it with the new one.

                    If you prefere to have the installation date you might copy the new file into the backup folder and to the deploy folder with the script. The old file don't need to be backed up as you do that during installation.

                     

                    But I'm not sure how to do so with a *.bat file

                    • 7. Re: Jboos deployment  automation steps
                      munnangi

                      Hi Fink,

                      Thanks for your  replay.

                       

                      Could you  please  route this question to any  windows  scripting guys who can  help on this.

                      Need to  write  .bat file for deployment automation.

                       

                      Thanks,

                      Durga

                      • 8. Re: Jboos deployment  automation steps
                        sfcoy

                        Hi Durga,

                         

                        The best solution to your problem is to become a "windows scripting guy" yourself.

                         

                        Alternatively, what I've done in the past is to use http://ant.apache.org scripts, which have access to many more useful tasks, such as the ability to copy files across a network using scp. This would still require you to become an "ant scripting guy".

                        1 of 1 people found this helpful
                        • 9. Re: Jboos deployment  automation steps
                          ctomc

                          In any case i would recommend you to start with powershell and don't even bother with batch files (cmd.exe)

                           

                          see http://www.powershellpro.com/powershell-tutorial-introduction/ for some nice beginners tutorial.

                          • 10. Re: Jboos deployment  automation steps
                            munnangi


                            Hi Stephen,

                             

                            I am  new to  scripting, could you please  guide me on learning  this scripting and  get  it  done  deployment automation  in jboss  windows environment.

                             

                            Thanks a ton.

                            Durga.

                            • 11. Re: Jboos deployment  automation steps
                              munnangi

                              Hi Cerar

                               

                              Thank you,i am new to scripting it will be help full your  guidance  on this scripting and get it done  jboss deployment  automation  in windows.

                               

                              Thanks in Advance.

                              • 12. Re: Jboos deployment  automation steps
                                wdfink

                                As you get here answers from JBoss experts we might give you hints or solutions if we know it. But for scripting windows batch files I suppose you need to learn it because there are so many different requirements that this is an individual job.

                                • 13. Re: Jboos deployment  automation steps
                                  munnangi


                                  Thanks Fink,

                                   

                                  Please suggest if any  online learning  jboss scripting  stuff available It would be help  full .

                                   

                                  Thank you.