Two options that I can think of.  I don't know if these are the best
options, but the second is working OK for us so far.
 
You can run multiple Turbine Applications ( webapps ) in the servlet
container.  Each would have its own db pool, security, webspace, etc.
Difficult to implement a single logon for all your sub-apps in this manner.

We sort of setup a sudo-portal situation where we have a main turbine
application 
with a menu and just include the templates and code for other sub-apps, but
technically it is one large Turbine web app.  With the Turbine ( may only be
turbine-2 cvs version ) you can package up the template directory and code
into a jar for a 'sub-app' and have Turbine pick it up.

So in our situation we have our main webapp directory, under
webapp/templates we have different app's template directories, and some
sub-apps are packaged into jars and have their own project/build.  We also
create a conf file for each sub app and just include them in the bottom of
TurbineResources.properties.

templates
   |
   |-mainapp
   |   |-screens
   |   |-layouts
   |   |-navigations
   |      
   |-subapp1
   |-subapp2

You could also have directories under mainapp/screens.  We chose this way so
if we want to in the future pull the subapp out into its own project is was
slightly easier.  The code is also setup with packages indicating subapp
names.

Hope this gives you a few ideas.

-----Original Message-----
From: Ronan-Yann Lorin
To: [EMAIL PROTECTED]
Sent: 12/30/01 4:50 AM
Subject: singleton vs multiple applications

Hi,

I'm new to Turbine and managing to use it in a new project, which will,
in
fact include many sub-projects (applications).

As Turbine use the singleton pattern, how can I run multiple Turbine
applications hosted in the same application server (JVM), all using
their
own configuration file ?

Thanks in advance.

Ronan-Yann Lorin  t�l: +33 610 927 199
3, All�e des Hirondelles t�l: +33 134 506 034
95220 Herblay   mailto:[EMAIL PROTECTED]
France    http://lorin.nom.fr


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to