For a better understanding of the webapp approach, please see the following document:

http://cwiki.apache.org/confluence/display/TUSCANYWIKI/Tuscany+Web+Application+based+Integration+with+Geronimo

Thanks,
Raymond

--------------------------------------------------
From: "Simon Laws" <[EMAIL PROTECTED]>
Sent: Thursday, June 19, 2008 7:24 AM
To: <[email protected]>
Subject: Re: starting tuscany outside of eclipse

On Thu, Jun 19, 2008 at 2:57 PM, Richard Jones <[EMAIL PROTECTED]>
wrote:

Hi Folks,

I'm brand new to Tuscany, and I've been working my way through the
documentation on the website.  I don't use Eclipse, but much of the
documentation is geared towards using the Eclipse plugin to start the
tuscany application server.  I can't find documentation on how to do this
/without/ eclipse, can someone point me in the right direction?

I'm trying to do the very basic "Hello World" example.

Is there perhaps a TuscanyServlet that I can set in my own web.xml, and do
my normal deployment through tomcat?

Cheers,

Richard

--
=======================================================================
Richard Jones                     |       Hewlett-Packard Limited
Research Engineer, HP Labs        |       registered office:
Bristol, UK                       |       Cain Road, Bracknell,
                                |       Berks, RG12 1HN.
                                |       Registered No: 690597 England
eml: [EMAIL PROTECTED]       -------------------------------------
blg: http://chronicles-of-richard.blogspot.com/
-----------------------------------------------------------------------
The contents of this message and any attachments to it are confidential
and may be legally privileged. If you have received this message in
error, you should delete it from your system immediately and advise the
sender. To any recipient of this message within HP, unless otherwise
stated you should consider this message and attachments as "HP
CONFIDENTIAL".
========================================================================


Hi Richard. Welcome to Tuscany.

There are a few words about how to develop an SCA application from the
command line in [1] but it doesn't cover doing webapp development. You could take a look at one of the Tuscany samples that do this. For example, look in
samples/calculator-webapp [2]. You will see that the basic layout of this
webapp is that an SCA application (the calculator sample) is packaged as a
webapp and a jsp is fired up and makes a call to the Calculator component
described in the SCA composite file [3]. The web.xml file in this case
defines a servlet filter as follows.

 <filter>
   <filter-name>tuscany</filter-name>

<filter-class>org.apache.tuscany.sca.host.webapp.TuscanyServletFilter</filter-class>
 </filter>


You will also note that the war file for this sample includes both the
application class and all the Tuscany jars and dependencies required to run
the sample so in theory this should run on most webapp containers.

There are several other webapp samples so there may be one that is closer to
you requirements. Let us know how you get on or if you need more pointers.

Regards

Simon

[1]
http://tuscany.apache.org/getting-started-with-tuscany-using-the-command-line.html
[2]
http://svn.apache.org/repos/asf/tuscany/java/sca/samples/calculator-webapp/
[3]
http://svn.apache.org/repos/asf/tuscany/java/sca/samples/calculator-webapp/calculator-web.png

Reply via email to