These questions are based on what I've seen in the simple-bigbank-spring
example.

The bigbank.composite has two components, AccountServiceComponent which
implements the spring-context.xml file as well as the
StockQuoteServiceComponent which references another composite.

In the spring-context.xml file, an sca:service is declared named
"AccountService" which targets the AccountServiceBean.

When scaDomain.getService is called looking for AccountService.class on
AccountServiceComponent, it is able to find it and run with it.

But, I can call scaDomain.getService for StockQuoteService.class on the
StockQuoteServiceComponent and it is also able to find the service.

What I'm trying to understand is why declare the service in the spring
context file, and why no service is declared for the
StockQuoteServiceComponent?

If I remove the sca:service declaration for AccountService, I get the
following exception, "More than one service is declared on component
AccountServiceComponent", but I only see one service, AccountService.

I don't even know how to ask the question because I'm slightly confused, but
if you understand what I'm getting at, can anyone explain what's going on in
this example?


-Jason Clark







---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to