Etienne-Hugues Fortin wrote:
>
> Hi Jon
>
> I just look at the source for TurbineConfig and there's three things that I
> want to know. First, your example have a line tc.init(). As it's already
> in the constructor for TurbineConfig, why would we call it explicitely?
OK it is definetely messed up. One constructor calls init() the other
does not.
I'll remove the call to init() if noone objects. This way you can create
a
fake ServletConfig/ServletContext, toy around with it for a while, and
then
use it to start Turbine.
> My second question is about the fact that you said that we can use
> TurbineResources outside of Turbine. It's seems true but what is the cost
> of doing so? I saw in the init that a Turbine object is created and
> initialize. Are the two services mentionned (ResourceService and
> LoggingService) the only ones that will run? Can I set a property so that
> the Logging don't run at all?
Only the services that are listed in TurbineResources.properties will be
started (ie. ones that have services.x.classname=y entries), not
counting
Resources and Logging, which are used by ServiceBroker itself.
But why would you want to disable logging? I'd say that Turbine has
really
great logging system right now.
> The last thing is still about TurbineConfig. The first parameter is the
> base directory from where the properties file can be found. Is there any
> default that I missed (like looking in the classpath)? If not, as an
> application can be installed about anywhere on a filesystem and we certainly
> don't want to put a path in the code, how do you suggest that we configure
> this base path? Via the servlet config?
You can make the basepath to be '.', or use a system property like in
Tomcat
or Ant.
Rafal
--
Rafal Krzewski
Senior Internet Developer
mailto:[EMAIL PROTECTED]
+48 22 8534830 http://e-point.pl
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]