Hi Sebastien, thanks for doing this. I am going to be away for the rest of the week after today. So I wish to try an RC before I leave to get some feedback from the community. I am leaving out this sample for the first RC but would most certainly include in the next RC (which I hope will be the last ;-)).
Thanks - Venkat On 6/26/07, Jean-Sebastien Delfino <[EMAIL PROTECTED]> wrote:
Jean-Sebastien Delfino wrote: > Jean-Sebastien Delfino wrote: >> [snip] >> Venkata Krishnan wrote: >>> Hi >>> >>> So here is a list of things that will be included for the 0.91release. >>> >>> - binding-ajax (has sample to demonstrate this) >>> - extension-helper (the scripting extensions demonstrate this) >>> - binding-ejb >>> - binding-feed (the bigbank demo uses this) >>> - implementation-resource (the bigbank demo uses this) >>> - implementation-spring (no sample, no demos, but interesting to >>> have and >>> hope Sebastien is able to contribute a sample for this). >>> >>> As far as demos and samples are concerned I intend to include only >>> the ones >>> that have READMEs. So if you folks can help me fix READMEs for the >>> ones >>> that need to be included and that don't have this, that will be very >>> helpful. >>> >>> Finally, may I request that any improvements or changes which any of >>> you >>> wish to be a included in the release be done on the branch and then >>> also >>> merged with the trunk immediately. I hope we don't have large ones >>> ;-). >>> >>> Thanks. >>> >> >> I have added a sample showing how to use the implementation-resource >> extension under [1]. I can add merge it into the 0.91 branch in a day >> or two after people get a chance to review it if you think it's >> useful to have in the release. It doesn't have a README yet, I'll try >> to add one tomorrow. >> >> I'm still working on a Spring sample as well, it will be a variation >> of the simple-bigbank sample. >> >> [1] >> http://svn.apache.org/repos/asf/incubator/tuscany/java/sca/samples/web-resource/ >> >> > > I have added a Spring sample under [2]. This is a variation of the > simple-bigbank sample that uses a nested Spring assembly using > <implementation.spring> instead of a nested SCA assembly using > <implementation.composite>. > > Here are the relevant XML snippets. > > The original SCA simple-bigbank: > > BigBank.composite > > <composite xmlns="http://www.osoa.org/xmlns/sca/1.0" > targetNamespace="http://bigbank" > xmlns:a="http://account" > xmlns:s="http://stockquote" > name="BigBank"> > > <component name="AccountServiceComponent"> > <implementation.composite name="a:Account"/> > <reference name="stockQuoteService" > target="StockQuoteServiceComponent"/> > </component> > > <component name="StockQuoteServiceComponent"> > <implementation.composite name="s:StockQuote"/> > </component> > > </composite> > > > Account.composite > > <composite xmlns="http://www.osoa.org/xmlns/sca/1.0" > targetNamespace="http://account" > name="Account"> > <service name="AccountService" > promote="AccountServiceComponent"/> > > <component name="AccountServiceComponent"> > <implementation.java class="bigbank.account.AccountServiceImpl"/> > <reference name="accountDataService" > target="AccountDataServiceComponent"/> > <property name="currency">USD</property> > </component> > > <component name="AccountDataServiceComponent"> > <implementation.java > class="bigbank.accountdata.AccountDataServiceImpl"/> > </component> > <reference name="stockQuoteService" > promote="AccountServiceComponent/stockQuoteService"/> > > </composite> > > > The SCA + Spring based spring-bigbank: > > BigBank.composite > > <composite xmlns="http://www.osoa.org/xmlns/sca/1.0" > targetNamespace="http://bigbank" > xmlns:s="http://stockquote" > name="BigBank"> > > <component name="AccountServiceComponent"> > <implementation.spring location="Account-spring-context.xml"/> > <reference name="stockQuoteService" > target="StockQuoteServiceComponent"/> > </component> > > <component name="StockQuoteServiceComponent"> > <implementation.composite name="s:StockQuote"/> > </component> > > </composite> > > > Account-spring-context.xml > > <beans xmlns="http://www.springframework.org/schema/beans" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:sca="http://www.springframework.org/schema/sca" > xsi:schemaLocation="http://www.springframework.org/schema/beans > http://www.springframework.org/schema/beans/spring-beans.xsd"> > > <bean id="AccountServiceBean" > class="bigbank.account.AccountServiceImpl"> > <property name="accountDataService" ref="AccountDataServiceBean"/> > <property name="stockQuoteService" ref="stockQuoteService"/> > <property name="currency" value="USD"/> > </bean> > > <bean id="AccountDataServiceBean" > class="bigbank.accountdata.AccountDataServiceImpl"> > </bean> > > </beans> > > > > [2] > http://svn.apache.org/repos/asf/incubator/tuscany/java/sca/samples/spring-bigbank/ > > I improved the sample a bit to show how to declare proper SCA services and references in a Spring assembly, using the Spring SCA extension elements. Account-spring-context.xml now looks like this: <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:sca="http://www.springframework.org/schema/sca" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/sca http://www.springframework.org/schema/sca/spring-sca.xsd"> <sca:service name="AccountService" type="bigbank.account.AccountService" target="AccountServiceBean"/> <bean id="AccountServiceBean" class="bigbank.account.AccountServiceImpl"> <property name="accountDataService" ref="AccountDataServiceBean"/> <property name="stockQuoteService" ref="stockQuoteService"/> <property name="currency" value="USD"/> </bean> <bean id="AccountDataServiceBean" class="bigbank.accountdata.AccountDataServiceImpl"> </bean> <sca:reference name="stockQuoteService" type="bigbank.stockquote.StockQuoteService"/> </beans> -- Jean-Sebastien --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]