[
https://issues.apache.org/jira/browse/TUSCANY-2573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ramkumar Ramalingam updated TUSCANY-2573:
-----------------------------------------
Attachment: TUSCANY-2573.patch
For Spring Namespace Issue:
The custom XML tags like <sca:service>, <sca:reference> and <sca:property> and
the sca namespace will be supported only when the registered Namespace Handlers
are available.
Tuscany provides these handlers to resolve the namespace. Hence the current
namespace is valid in this scenario.
A detailed article on how you would go about writing your own custom XML bean
definition parsers and integrating such parsers into the Spring IoC container
can be found here....
http://static.springframework.org/spring/docs/2.5.x/reference/extensible-xml.html
For Accessing the Application Context:
I believe there is a workaround to this problem, which demostrates how the
runtime instance of the application context can be accessed and also get access
to the beans as shown here.....
http://blog.jdevelop.eu/2008/07/06/access-the-spring-applicationcontext-from-everywhere-in-your-application/
This solution returns the SCAApplicationContext instance which resolves the
namespace for you. Probably, you need to evaluate if this workaround helps your
scenario.
The same is demostrated with Spring-bigbank-stockquote sample.
> Able to get spring application context when using spring as the
> implementation binding
> --------------------------------------------------------------------------------------
>
> Key: TUSCANY-2573
> URL: https://issues.apache.org/jira/browse/TUSCANY-2573
> Project: Tuscany
> Issue Type: Improvement
> Components: Java SCA Spring Implementation Extension
> Affects Versions: Java-SCA-1.3
> Environment: all
> Reporter: Abe
> Assignee: Ramkumar Ramalingam
> Attachments: TUSCANY-2573.patch
>
>
> Would be great to have a way to grab the spring application context with
> using the spring binding. Also, the spring sca xsd is not valid:
> http://www.springframework.org/schema/sca/spring-sca.xsd -> is not valid
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.