I don't know what would be the best way from the Tuscany standpoint, but having some sort of configuration object (maybe a StAXArtifactProcessor) mirroring part of a global Tuscany configuration and available in the module activator would be nice. And you'll probably have people at some point who will ask you how they can configure this or that in Jetty or Tomcat.
And yes, there will be only one ODE server instance on which processes will be deployed. The approach I used for now is to instantiate a server wrapper in the module activator and initialize the engine lazily in the provider, when the first implementation is started. Matthieu On 6/22/07, Venkata Krishnan <[EMAIL PROTECTED]> wrote:
Is this something that we should consider permitting thro external config files ? And how would it work - the contribution service picks the resource up and makes it available to the module activators ? Thanks - Venkat On 6/22/07, Luciano Resende <[EMAIL PROTECTED]> wrote: > > I'm still reviewing the patch provided by Matthieu [1], but I think he > is taking the similar approach we have for the embedded hosts. > > I think that, one difference, is that we don't necessary expose or let > the user tweak server configuration when we start an embedded jetty or > tomcat, do we ? > > [1] http://issues.apache.org/jira/browse/TUSCANY-1365 > > On 6/22/07, Venkata Krishnan <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I assume there is going to be just about 'one' ODE instance which might > be > > running several processes that are implementations of different > components > > in a deployment. Is the ODE server something that we should implement > on > > lines with the 'hosts' that we have have ? Thoughts ? > > > > - Venkat > > > > On 6/21/07, Matthieu Riou <[EMAIL PROTECTED]> wrote: > > > > > > Hi guys, > > > > > > I'm starting on the lifecycle part of the Tuscany/ODE integration to > get > > > an > > > engine started with all its necessary resources (transaction, > persistence, > > > ...). I can go with in-memory mode and light configuration for now but > > > we'll > > > want a fully working server sooner or later. So I have a few > questions: > > > > > > 1. How can I get server-wide configuration properties to configure the > > > behavior of the engine? Things like the size of our thread pool, if we > > > should use an embedded database or try to lookup a datasource, some > memory > > > optimization modes we can run in, ... These would be for the whole ODE > > > server and not on a per-process basis. > > > > > > 2. How can I get the a transaction manager? I haven't been able to > find an > > > extension point for it. If there are none available, I can still > create my > > > own but it'd be probably be better to reuse the Tuscany one if it's > there. > > > > > > 3. In embedded persistence mode, ODE uses a Derby database. Which > means > > > files located somewhere. Is there a way to lookup a given directory > under > > > which the database could be made available? For example when we deploy > ODE > > > in a webapp for example, the database is prepackage in the webapp and > we > > > find it under the context root (or alternatively a path can be > configured, > > > see 1) > > > > > > I think that's all for now but I'll certainly find more in the coming > days > > > :) > > > > > > Thanks! > > > Matthieu > > > > > > > > -- > Luciano Resende > Apache Tuscany Committer > http://people.apache.org/~lresende > http://lresende.blogspot.com/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >