"Arnaud" <[EMAIL PROTECTED]> wrote:
> Hi from france...
> i've just download Jboss+Tomcat on my computer and i would like to know how
> jboss and tomcat are linked ?
> What i mean is,
> there is a relation between tomcat and apache with tomcat.conf and
> httpd.conf (inclusion)
> but when i look at the run_with_tomcat in the jboss_final2.0/bin folder
> there is just a run tomcat ?
>
> 1/ so where is the connection with JBoss ??
Tomcat is completely embedded into JBoss. It doesn't use the
configuration files in the tomcat directory anymore, JBoss does
everything automatically for you.
> 2/ to use apache+tomcat+jboss
> I must configure tomcat+apache and then "how can i tell to apache or tomcat
> that i 've got an EJB container :-)
Well, as I said, you don't have to tell tomcat enything. The problem
is just, that this tomcat is started without apj.
What I did is the following:
I had a whole website in a single EAR, which should be accessible via
http://www.somedomain.com. Using tomcat alone gave me a URL to access
the web like http://www.somedomain.com/my_app. So I just used the
proxy module of Apache for a name virtual server:
<VirtualHost *>
ServerName www.somedomain.com
DocumentRoot /pub/httpd/htdocs
ProxyRequests on
ProxyPass / http://localhost:8080/my_app/
ProxyPassReverse / http://localhost:8080/my_app/
</VirtualHost>
You can also make this proxy caching, so that not every request gets
forwarded to tomcat, if you like.
Hope this helps...
--
(o_ Raffael Herzog
//\ [EMAIL PROTECTED]
V_/_
May the penguin be with you!
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]