6 Replies Latest reply on Jan 4, 2008 3:41 PM by peterj

    jboss and apache?

    nitm

      hi,

      i want to use Subversion and my server is jboss AS 4.2.2 (running on a windows xp).
      from what Subversion tell me i need an apache server (2.0 or 2.2).

      as far as i know jboss AS has apache tomcat in it, but not the apache web server...
      is there a way to have the jboss AS working along side the apache server?
      or is there another way to work with Subversion without the apache? or another version control application that might work with jboss AS ?

      thanks, nitzan.

        • 1. Re: jboss and apache?
          hsaha

          Yes, jboss(integrated with tomcat) can work with Apache web server too... you just need to have the mod_jk connector configured in apache ..

          • 2. Re: jboss and apache?
            nitm

            thanks for the quick reply.

            i will check out this mod_jk connector but i want to know what are consequences of using this...
            the jboss as must have some kind of http server that it uses, will i be chaging that? will something work in a different way? will the roll of the jboss AS change somehow ?

            thanks, nitzan.

            • 3. Re: jboss and apache?
              peterj

              nitm, do you just want to run Subversion and JBossAS on the same host? If so, you can run JBossAS and Apache HTTPD on the same host, and set up Apache HTTPD to run Subversion. That is what I have done on my systems.

              The mod_jk connector is only if you want to front-end your JBossAS with Apache HTTPD and HTTPD handle static file (html, jpeg, gif, css, and so on) and forward servlet and jsp requests to JBossAS.

              • 4. Re: jboss and apache?
                peterj

                Oh, I should point out that previous reply assumed that you were going to use port 80 for HTTPD and port 8080 for JBossAS. If you were planning to use port 80 for JBossAS also, you will need to use mod_jk.

                • 5. Re: jboss and apache?
                  nitm

                  peter,

                  i never thought of using the apache for port 80, that can do the trick... right now i have iis working on port 80 but i dont need/use it so that's not a problem...

                  i would rather use the same ports though.
                  will the use of the mod_jk "harm" me in anyway? is this something i should avoid?

                  another question i have:
                  is there a way to check every incoming web request (http) ?
                  i want to check every request to see if the user is logged, if so send him to the requested path, if not send him to a logging page..
                  is this possible?

                  thanks, nitzan.

                  • 6. Re: jboss and apache?
                    peterj

                    For mod_jk information, read:

                    http://wiki.jboss.org/wiki/Wiki.jsp?page=ModJK_FAQ
                    http://wiki.jboss.org/wiki/Wiki.jsp?page=UsingMod_jk1.2WithJBoss

                    You can also search the forums for mod_jk to see what others are saying about it.

                    For the login question, use the standard mechanisms built into web applications. You can read up on the security settings in web.xml at http://pdf.moreservlets.com/More-Servlets-and-JSP-Chapter-07.pdf