5 Replies Latest reply on Oct 28, 2008 11:58 AM by peterj

    Strip Down Jboss 4.2.x version??

    bronzeiii

      Hi all

      Is there a way to deploy web application (including EJB support) without using the deploy directory? Inside of the jboss-service.xml, there is a attribute where users get to specify their own exploded directory. By default, it has /deploy directory. (my setting is default)

      so now i don't frankly want to deploy the /deploy directory, so when I remove the /deploy line from the jboss-service.xml, i think the web container(tomcat) doesn't get started now once i remove the /deploy line from the xml file.

      hope someone can give me some advises on this. I'm a newbie with Jboss AS... it sounds like I need to have a strip down version of my own deploy directory which includes jboss-web.deployer....

      Thanks!

        • 1. Re: Strip Down Jboss 4.2.x version??
          peterj

          If you change the URLs attribute so that it no longer contains the deploy directory, then yes, none of the services currently located in that directory will get deployed. Considering that these services include the web application deployer and the servlet container, not deploying them will prevent web apps from working also.

          You have several options:

          A) Succumb to conventions and deploy your web app to the deploy directory.

          B) Rather than replacing the URLs attribute value, add a second entry to it, using a comma to separate the entries:

          <attribute name="URLs">
           deploy/,
           /full/path/to/your/app.war
           </attribute>
          


          Note that you can add as many paths as you like, all comma-separated. Note, however, that only the first path is hot-deployed (if you do not understand what this means, you should use option A until you do understand it).


          • 2. Re: Strip Down Jboss 4.2.x version??
            bronzeiii

            Hey Peter

            Thanks for your reply!.. i understand both options, and already experimented both already.. but honestly, I don't like neither of them. I'm seeking to see if it's possible to relocate the web application deployer and EJB container to my own exploded directory, instead of depending on the /deploy directory.

            Please let me know.

            Thanks a lot

            • 3. Re: Strip Down Jboss 4.2.x version??
              jaikiran

               

              "bronzeiii" wrote:
              but honestly, I don't like neither of them.


              Any specific reason? Maybe we can't point you to something else if we know why exactly this option isn't feasible :-)


              • 4. Re: Strip Down Jboss 4.2.x version??
                bronzeiii

                Hello

                I guess I personally feel deploy directory deploys more services than I really need.

                like.. do i really need jboss-aop, jmx-console and so on? I think I really just need ejb3.deployer and jboss-web.deployer and jmx if i want to usea JEE server right?

                Thanks

                • 5. Re: Strip Down Jboss 4.2.x version??
                  peterj