geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cvx22 <cv...@wp.pl>
Subject Re: Multiple 'Service' in GMO 2.1 (like in Tomcat)
Date Thu, 07 Aug 2008 11:12:08 GMT

Thanks Kevan,
  I read information from you and given sample.
  I spend few hours editing var/config/config.xml file and now it worked for
me. I don't use ear, and it works good.

best regards
artur

there is basic configuration for sencond Container:
----
        <gbean
name="org.apache.geronimo.configs/tomcat6/2.1.1/car?ServiceModule=org.apache.geronimo.configs/tomcat6/2.1.1/car,j2eeType=Host,name=PortaHost"
gbeanInfo="org.apache.geronimo.tomcat.HostGBean">
            <attribute
name="className">org.apache.catalina.core.StandardHost</attribute>
            <attribute name="initParams">name=${ServerHostname}
				appBase=
				workDir=workPorta</attribute>
        </gbean>
        <gbean
name="org.apache.geronimo.configs/tomcat6/2.1.1/car?ServiceModule=org.apache.geronimo.configs/tomcat6/2.1.1/car,j2eeType=GBean,name=PortaEngine"
gbeanInfo="org.apache.geronimo.tomcat.EngineGBean">
            <attribute
name="className">org.apache.geronimo.tomcat.TomcatEngine</attribute>
            <attribute name="initParams">name=Porta</attribute>
            <reference name="DefaultHost">
                <pattern>
                    <name>PortaHost</name>
                </pattern>
            </reference>
            <reference name="TomcatValveChain">
                <pattern>
                    <name>PortaAccessLogValve</name>
                </pattern>
            </reference>
            <reference name="RealmGBean"/>
            <reference name="MBeanServerReference"/>
        </gbean>
        <gbean
name="org.apache.geronimo.configs/tomcat6/2.1.1/car?ServiceModule=org.apache.geronimo.configs/tomcat6/2.1.1/car,j2eeType=GBean,name=PortaWebManager"
gbeanInfo="org.apache.geronimo.tomcat.TomcatManagerImpl"/>
        <gbean
name="org.apache.geronimo.configs/tomcat6/2.1.1/car?ServiceModule=org.apache.geronimo.configs/tomcat6/2.1.1/car,j2eeType=GBean,name=PortaWebConnector"
gbeanInfo="org.apache.geronimo.tomcat.connector.Http11ConnectorGBean">
            <attribute name="name">HTTP</attribute>
            <attribute name="host">0.0.0.0</attribute>
            <attribute name="port">8080</attribute>
            <attribute name="maxHttpHeaderSize">8192</attribute>
            <attribute name="maxThreads">300</attribute>
            <attribute name="minSpareThreads">25</attribute>
            <attribute name="maxSpareThreads">300</attribute>
            <attribute name="enableLookups">false</attribute>
            <attribute name="redirectPort">8443</attribute>
            <attribute name="acceptCount">100</attribute>
            <attribute name="connectionTimeout">20000</attribute>
            <attribute name="disableUploadTimeout">true</attribute>
            <attribute name="maxSavePostSize">2097152</attribute>
            <reference name="TomcatContainer">
                <pattern>
                    <name>PortaWebContainer</name>
                </pattern>
            </reference>
            <reference name="ServerInfo">
                <pattern>
                    <name>ServerInfo</name>
                </pattern>
            </reference>
        </gbean>
        <gbean
name="org.apache.geronimo.configs/tomcat6/2.1.1/car?ServiceModule=org.apache.geronimo.configs/tomcat6/2.1.1/car,j2eeType=GBean,name=PortaWebContainer"
gbeanInfo="org.apache.geronimo.tomcat.TomcatContainer">
            <attribute name="catalinaHome">var/catalina</attribute>
            <reference name="EngineGBean">
                <pattern>
                    <name>PortaEngine</name>
                </pattern>
            </reference>
            <reference name="ServerInfo">
                <pattern>
                    <name>ServerInfo</name>
                </pattern>
            </reference>
            <reference name="WebManager">
                <pattern>
                    <name>TomcatWebManager</name>
                </pattern>
            </reference>
        </gbean>
        <gbean
name="org.apache.geronimo.configs/tomcat6/2.1.1/car?ServiceModule=org.apache.geronimo.configs/tomcat6/2.1.1/car,j2eeType=TomcatValve,name=PortaAccessLogValve"
gbeanInfo="org.apache.geronimo.tomcat.ValveGBean">
            <attribute
name="className">org.apache.catalina.valves.AccessLogValve</attribute>
            <attribute name="initParams">prefix=prota_access_log.
	            suffix=.txt
    	        pattern=common</attribute>
            <reference name="NextValve">
                <pattern>
                    <name>PortaSingleSignOnValve</name>
                </pattern>
            </reference>
        </gbean>
        <gbean
name="org.apache.geronimo.configs/tomcat6/2.1.1/car?ServiceModule=org.apache.geronimo.configs/tomcat6/2.1.1/car,j2eeType=TomcatValve,name=PortaSingleSignOnValve"
gbeanInfo="org.apache.geronimo.tomcat.ValveGBean">
            <attribute
name="className">org.apache.catalina.authenticator.SingleSignOn</attribute>
        </gbean>
----




Kevan Miller wrote:
> 
> 
> There's a sample that will give you guidance on getting this to work  
> for Geronimo 2.1.
> 
> The sample is here --
> https://svn.apache.org/repos/asf/geronimo/samples/branches/2.1/samples/app-per-port
> 
> The sample is set up as a Geronimo plugin. Easy to set you up with a  
> geronimo deployment plan for the ear, if you prefer.
> 
> We need to update this wiki page --
> http://cwiki.apache.org/GMOxDOC21/app-per-port-running-multiple-web-apps-on-different-ports.html
> 
> Here's a wiki page for G 1.1 --
> http://cwiki.apache.org/GMOxDOC11/exposing-web-applications-on-distinct-ports.html
> 
> Take a look at the 2.1 sample and let us know if you have questions...
> 
> --kevan
> 
> 

-- 
View this message in context: http://www.nabble.com/Multiple-%27Service%27-in-GMO-2.1-%28like-in-Tomcat%29-tp18358099s134p18868175.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Mime
View raw message