4 Replies Latest reply on Mar 1, 2013 5:48 AM by nickarls

    Deploy only a part of ear

    nicolyra

      Hello everybody,

       

       

      I am new in this forum and in JBoss7 too.

      Indeed, recently I had to migrate my company application server from JBoss5 to JBoss7.

      It was not easy but now the application runs now!

       

       

      During the migration, we decided to package all our application jars and wars in an unique ear. It works too, but others programmers are unhappy because.

      Indeed, before, during the development phase, when they just want to update a JSP page, for example, they could modify it, generate the war and deploy it without restarting their own JBoss5 and without deploying all others jars and wars.

      Now, with the ear, they have to generate the new war, the ear and deploy all the application (without restarting JBoss7 of course ;)).

       

       

      I tried to used an ear repository and to change its content but JBoss7 needs to be restarted to consider the modifications.

       

       

      Anyone has an idea of the process I can use or it's definitely impossible?

       

      Thanks.

        • 1. Re: Deploy only a part of ear
          ranga033

          So do you use the standalone model or domain model ?

           

          If you are deploying using jboss-cli, you can do a force deploy. This would replace the contents of the new ear with the old ear without a restart.

          • 2. Re: Deploy only a part of ear
            nickarls

            Hot-deployment tools like JRebel quickly returns your investment in deployment times...

            • 3. Re: Deploy only a part of ear
              nicolyra

              => rang s :

               

              We currently use the standalone model and we deploy thanks to a Maven task.

               

              The problem is not the fact to deploy without restarting JBoss but deploy only a part of the ear without deploy all its content.

               

              Of course, we can decide to deploy jars and wars without ear in development but it can be nice to have the same architecture in development and production.

               

              => Nicklas Karlsson

              For JRebel, I'll test it as soon as possible but I believe my boss prefers a free solution

              • 4. Re: Deploy only a part of ear
                nickarls

                You can tell your boss he's saving in the wrong places ;-) Show him how you work and how much waiting/redploying is involved and let him do the math.