Sykes, Phil wrote:
I'm getting ready to try Tuscany in a webapp for the first time but I'm not sure about everything that needs to be done. The user guide only talks about configuring web.xml. However, the samples show some other configuration such as the contribution.xml file. I assume that this needs to be there as well, correct? Also, in looking at the calculator-webapp sample it looks like all you need to do is add a reference to a component in a jsp and it is then available to use. Is that correct? In other words, is there no need to programatically load the ScaDomain like you would in a unit test?

Hi Phil,

Yes, you are correct about Tuscany calculator web app [1]. There is no need to programatically load it, but you must deploy the composite to an applicable container. You then can reference SCA components in your JSPs and servlets. For other people looking for information on Tuscany SCA web apps, I've included a link to the user docs [2].

[1] https://svn.apache.org/repos/asf/tuscany/tags/java/sca/1.3.2/samples/calculator-webapp/
[2] http://tuscany.apache.org/sca-java-web-applications.html
--
Thanks, Dan Becker

Reply via email to