You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by qu...@apache.org on 2003/02/05 00:15:01 UTC
cvs commit: jakarta-turbine-2/src/java/org/apache/turbine/services/xmlrpc TurbineXmlRpcService.java
quintonm 2003/02/04 15:15:01
Modified: xdocs changes.xml
src/java/org/apache/turbine/services/xmlrpc
TurbineXmlRpcService.java
Log:
The non-secure web server for handling xml-rpc requests
will now use the services.XmlRpcService.address setting for
the address on which to listen for requests. If the setting
is not found in TR.props, it will use the default of 0.0.0.0.
This address will cause the server to listen on all
addresses of a multi-homed machine.
Revision Changes Path
1.37 +8 -0 jakarta-turbine-2/xdocs/changes.xml
Index: changes.xml
===================================================================
RCS file: /home/cvs/jakarta-turbine-2/xdocs/changes.xml,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -r1.36 -r1.37
--- changes.xml 31 Jan 2003 16:04:05 -0000 1.36
+++ changes.xml 4 Feb 2003 23:15:00 -0000 1.37
@@ -237,6 +237,14 @@
A new SessionService has been added. This will allow access to all
sessions in the current context.
</li>
+ <li>
+ The non-secure web server for handling xml-rpc requests
+ will now use the services.XmlRpcService.address setting for
+ the address on which to listen for requests. If the setting
+ is not found in TR.props, it will use the default of 0.0.0.0.
+ This address will cause the server to listen on all
+ addresses of a multi-homed machine.
+ </li>
</ul>
</p>
</subsection>
1.15 +4 -3 jakarta-turbine-2/src/java/org/apache/turbine/services/xmlrpc/TurbineXmlRpcService.java
Index: TurbineXmlRpcService.java
===================================================================
RCS file: /home/cvs/jakarta-turbine-2/src/java/org/apache/turbine/services/xmlrpc/TurbineXmlRpcService.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- TurbineXmlRpcService.java 21 Jan 2003 21:00:08 -0000 1.14
+++ TurbineXmlRpcService.java 4 Feb 2003 23:15:01 -0000 1.15
@@ -101,6 +101,7 @@
* @author <a href="mailto:jvanzyl@periapt.com">Jason van Zyl</a>
* @author <a href="mailto:dlr@finemaltcoding.com">Daniel Rall</a>
* @author <a href="mailto:mpoeschl@marmot.at">Martin Poeschl</a>
+ * @author <a href="mailto:quintonm@bellsouth.net">Quinton McCombs</a>
* @version $Id$
*/
public class TurbineXmlRpcService
@@ -152,7 +153,7 @@
setSystemPropertiesFromConfiguration(secureServerOptions);
// Host and port information for the WebServer
- String addr = getConfiguration().getString("address", null);
+ String addr = getConfiguration().getString("address", "0.0.0.0");
port = getConfiguration().getInt("port", 0);
if(port != 0)
@@ -175,7 +176,7 @@
}
else
{
- webserver = new WebServer(port);
+ webserver = new WebServer(port, address);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org
Is VelocityScreen java required in Turbine 2.2
Posted by pavel <pa...@icecentric.com>.
Hello,
Please, could you tell me if VelocityScreen java is required in TDK 2.2?
We have templates that are getting context objects only from Action and
therefore in the VelocityScreen is nothing. In TDK 2.1. we had to have
those empty VelocityScreen java files? It seems to work without them in
TDK 2.2. Is that right?
Thank you in advance.
With regards,
Pavel Kusch
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org
Re: Architecture Question
Posted by Colin Chalmers <co...@maxware.nl>.
Hhmm was a while ago that we implemented it but the just of it is as
follows:
1. Add (if not already present) following pull tool to Turbine properties
file
tool.request.l18n=org.apache.turbine.services.localization.LocalizationTool
2. Resource bundles should be present under classes directory, named
according to specs, ie "en_GB.properties" and contain key/values
3. Set default localization settings to reflect names of resource bundles
4. In template text can be accessed by using one of the following
$!l18n.get($fooKeyVariable)
$!l18n.fooKey
Look at the Turbine Javadocs for the Localization stuff, we could set a
default language, browser selectable or user defined.
HTH
/c
----- Original Message -----
From: "Xavier Ottolini" <xa...@qualipse.fr>
To: "Turbine Users List" <tu...@jakarta.apache.org>
Sent: Wednesday, February 05, 2003 10:01 AM
Subject: Re: Architecture Question
> Hi Colin,
>
> Could you give us some details about how to use the localization service
> ?. Where do you write the labels for every language ? How do you access
> to the file ? How do you read thoses labels ?
>
> Thank you,
>
> Xavier
>
> Colin Chalmers wrote:
>
> >We have built an app. for two languages; Dutch & English.
> >
> >We use one set of templates and the localisation service to present the
> >text. Works a treat!
> >
> >/c
> >
> >----- Original Message -----
> >From: "pavel" <pa...@icecentric.com>
> >To: <tu...@jakarta.apache.org>
> >Sent: Wednesday, February 05, 2003 8:46 AM
> >Subject: Architecture Question
> >
> >
> >
> >
> >>Hello,
> >>We are building a small app that is in 9 languages and we may get huge
> >>traffic. Would there be any benefit of running those in separate
> >>Turbines, or is it better to have them all in one. Also would you
> >>consider having separate Tomcats for each? My thinking is that
> >>distribution of the load in more containers would help and could make it
> >>more robust but on the other hand more memory would be required. What do
> >>you think?
> >>
> >>Thank you.
> >>
> >>Pavel Kusch
> >>
> >>
> >>
> >>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> >>For additional commands, e-mail: turbine-user-help@jakarta.apache.org
> >>
> >>
> >>
> >>
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail: turbine-user-help@jakarta.apache.org
> >
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org
Re: Architecture Question
Posted by Xavier Ottolini <xa...@qualipse.fr>.
Hi Colin,
Could you give us some details about how to use the localization service
?. Where do you write the labels for every language ? How do you access
to the file ? How do you read thoses labels ?
Thank you,
Xavier
Colin Chalmers wrote:
>We have built an app. for two languages; Dutch & English.
>
>We use one set of templates and the localisation service to present the
>text. Works a treat!
>
>/c
>
>----- Original Message -----
>From: "pavel" <pa...@icecentric.com>
>To: <tu...@jakarta.apache.org>
>Sent: Wednesday, February 05, 2003 8:46 AM
>Subject: Architecture Question
>
>
>
>
>>Hello,
>>We are building a small app that is in 9 languages and we may get huge
>>traffic. Would there be any benefit of running those in separate
>>Turbines, or is it better to have them all in one. Also would you
>>consider having separate Tomcats for each? My thinking is that
>>distribution of the load in more containers would help and could make it
>>more robust but on the other hand more memory would be required. What do
>>you think?
>>
>>Thank you.
>>
>>Pavel Kusch
>>
>>
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: turbine-user-help@jakarta.apache.org
>>
>>
>>
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: turbine-user-help@jakarta.apache.org
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org
Re: Architecture Question
Posted by Colin Chalmers <co...@maxware.nl>.
We have built an app. for two languages; Dutch & English.
We use one set of templates and the localisation service to present the
text. Works a treat!
/c
----- Original Message -----
From: "pavel" <pa...@icecentric.com>
To: <tu...@jakarta.apache.org>
Sent: Wednesday, February 05, 2003 8:46 AM
Subject: Architecture Question
> Hello,
> We are building a small app that is in 9 languages and we may get huge
> traffic. Would there be any benefit of running those in separate
> Turbines, or is it better to have them all in one. Also would you
> consider having separate Tomcats for each? My thinking is that
> distribution of the load in more containers would help and could make it
> more robust but on the other hand more memory would be required. What do
> you think?
>
> Thank you.
>
> Pavel Kusch
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org
RE: Architecture Question
Posted by Robert Douglass <r....@onlinehome.de>.
We run different apps in different tomcat instances on the same machine for
other reasons, and it seems to work well. Only when the apps have to talk to
each other is it a pain.
-----Original Message-----
From: pavel [mailto:pavel@icecentric.com]
Sent: Wednesday, 05 February, 2003 8:46 AM
To: turbine-user@jakarta.apache.org
Subject: Architecture Question
Hello,
We are building a small app that is in 9 languages and we may get huge
traffic. Would there be any benefit of running those in separate
Turbines, or is it better to have them all in one. Also would you
consider having separate Tomcats for each? My thinking is that
distribution of the load in more containers would help and could make it
more robust but on the other hand more memory would be required. What do
you think?
Thank you.
Pavel Kusch
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org
Architecture Question
Posted by pavel <pa...@icecentric.com>.
Hello,
We are building a small app that is in 9 languages and we may get huge
traffic. Would there be any benefit of running those in separate
Turbines, or is it better to have them all in one. Also would you
consider having separate Tomcats for each? My thinking is that
distribution of the load in more containers would help and could make it
more robust but on the other hand more memory would be required. What do
you think?
Thank you.
Pavel Kusch
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org