I would like to see two types of samples:

1) Managed: The composite application is developed as one or more contributions. There is no explicit code to bootstrap the Tuscany runtime in the application. A launcher is used to launch the "pure" SCA application.

2) Unmanaged: The application has a main() (or other entry point based on the hosting environment such as an OSGi activator) to bootstrap the Tuscany runtime and access the SCA services.

[1] http://markmail.org/message/tbbkihndzzdttzb4?q=Tuscany+runtime+launching

Thanks,
Raymond

--------------------------------------------------
From: "Luciano Resende" <[email protected]>
Sent: Wednesday, January 21, 2009 9:00 AM
To: <[email protected]>; <[email protected]>
Subject: Re: [2.x] Samples

As you mentioned, this might make our samples more complex then
expected from a new user.

What would be the user experience here ? Maybe we could do something
with the demos, that are already more complex and try to demonstrate a
more realistic user scenario ?

On Wed, Jan 21, 2009 at 8:55 AM, ant elder <[email protected]> wrote:
With all the 2.x changes going on and runtime starting discussion i was
wondering about changing some of our samples so that most samples create
proper SCA contribution jars, they get run by deploying the contribution to
a runtime, they wouldn't include the client impl which invokes the sample
within the contribution jar, and maybe also have samples use the
contributions from other samples. It would need a launcher if we did it that way (like what is being discussed on the runtime launching thread), and we'd
need separate client samples.

It might make the very simplest samples slightly more complicated, but it
makes the sample contributions more reusable across the various runtime
environments and would demonstrate how to use domains with multiple
contributions and composites and how to swap around different binding and
implementation types.

I'm in two minds if it would be better than the current approach, what do
others think?

   ...ant





--
Luciano Resende
Apache Tuscany, Apache PhotArk
http://people.apache.org/~lresende
http://lresende.blogspot.com/

Reply via email to