Hi,
Thank you. I have now defined each component's service and ref beans in a 
separate context file so that all of them do not get loaded for every 
service impl.

Sangeetha



From:
Simon Laws <[email protected]>
To:
[email protected]
Date:
03/06/2012 04:41 PM
Subject:
Re: Spring Implementation - multiple services



On Tue, Mar 6, 2012 at 7:04 AM,  <[email protected]> wrote:
>
> Hi,
> I have quite a few services defined in my composite. I have used Spring
> implementation for these services.
> All the related beans have been defined in a single 
applicationContext.xml
> file. So all the <implementation.spring ...> location attributes, point 
to
> this file.
> I am testing this standalone using a client. I see in the log that the
> context file is reloaded for every service. Is that the expected 
behaviour
> or am I to add any other attribute to prevent this from happening?
>
> I am using apache-tuscany-sca-1.6.2
>
> Thanks
> Sangeetha
>
> =====-----=====-----=====
> Notice: The information contained in this e-mail
> message and/or attachments to it may contain
> confidential or privileged information. If you are
> not the intended recipient, any dissemination, use,
> review, distribution, printing or copying of the
> information contained in this e-mail message
> and/or attachments to it are strictly prohibited. If
> you have received this communication in error,
> please notify us by reply e-mail or telephone and
> immediately and permanently delete the message
> and any attachments. Thank you

Hi

IIRC each instance of implementation.spring in a composite application
is treated as a separate Spring context so it doesn't surprise me that
the context file is loaded multiple times. Implementation.spring it
trying to take the spring context as a whole and work out that the SCA
component type looks like.

The OASIS TC hasn't released a spec yet for implementation.spring but
you can see the input to the process at [1]

Hope that helps

Simon

[1] 
http://docs.oasis-open.org/opencsa/sca-j/sca-springci-spec/v1.1/sca-springci-spec-v1.1.html


-- 
Apache Tuscany committer: tuscany.apache.org
Co-author of a book about Tuscany and SCA: tuscanyinaction.com


Reply via email to