Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

Ramkumar 10/10/2008: SCA annotations and Callbacks does not seem be supported by Spring natively, though few lifecycle methods like @Init and @Destroy seems to be possible.
To support other annotation types, I believe we need to have the Tuscany runtime to introspect the spring implementation classes and inject the required objects.
Spring allows to inject the objects into its existing beans at post-initialization of bean using custom annotations defined by BeanPostProcessor.
Here we need a clarification, if this would be the right approach.

Ramkumar 14/10/2008: Refer to page http://cwiki.apache.org/confluence/display/TUSCANYWIKI/SCA+Annotation+Support+for+Spring

Specs Silent on supporting Constructor Injection:

...

The use case : service composites using components or composites as Spring beans. Those beans rely on other injected common beans or applied aspects.
We should not instantiate a new bean or aspect for every Spring component or composite if the beans and aspects are shared .
The Spring way would be to declare a parent context to accommodate the common beans / aspects.
The Spring SCA implementation specification says a new Spring context will be created for each composite. Unclear for component.
Can we enhance the specification in the sense of a parent application context ?

Ramkumar 10/10/2008: http://blog.springsource.com/2007/06/11/using-a-shared-parent-application-context-in-a-multi-war-spring-application/Image Removed