You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Abe (JIRA)" <de...@tuscany.apache.org> on 2008/08/29 18:34:44 UTC
[jira] Created: (TUSCANY-2573) Able to get spring application
context when using spring as the implementation binding
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
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.
[jira] Commented: (TUSCANY-2573) Able to get spring application
context when using spring as the implementation binding
Posted by "Ramkumar Ramalingam (JIRA)" <de...@tuscany.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-2573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12629201#action_12629201 ]
Ramkumar Ramalingam commented on TUSCANY-2573:
----------------------------------------------
Removed the current patch to update the changes made by Mike Edwards to the namespace. Will be posting a new patch with the changes required. Thanks.
> 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
>
> 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.
[jira] Updated: (TUSCANY-2573) Able to get spring application
context when using spring as the implementation binding
Posted by "Ramkumar Ramalingam (JIRA)" <de...@tuscany.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-2573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ramkumar Ramalingam updated TUSCANY-2573:
-----------------------------------------
Attachment: (was: TUSCANY-2573.patch)
> 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
>
> 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.
[jira] Assigned: (TUSCANY-2573) Able to get spring application
context when using spring as the implementation binding
Posted by "Ramkumar Ramalingam (JIRA)" <de...@tuscany.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-2573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ramkumar Ramalingam reassigned TUSCANY-2573:
--------------------------------------------
Assignee: Ramkumar Ramalingam
> 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
>
> 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.
[jira] Resolved: (TUSCANY-2573) Able to get spring application
context when using spring as the implementation binding
Posted by "Simon Laws (JIRA)" <de...@tuscany.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-2573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Simon Laws resolved TUSCANY-2573.
---------------------------------
Resolution: Fixed
Fix Version/s: Java-SCA-Next
Committed at revision: 693847 . I had the following problem applying the patch...
can't find file to patch at input line 110
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|
|### Eclipse Workspace Patch 1.0
|#P sample-spring-bigbank-checkaccount
|Index: samples/spring-bigbank-calculator/src/main/resources/spring-context/META
-INF/spring/CheckingAccountService-context.xml
|===================================================================
|--- samples/spring-bigbank-calculator/src/main/resources/spring-context/META-IN
F/spring/CheckingAccountService-context.xml (revision 693030)
|+++ samples/spring-bigbank-calculator/src/main/resources/spring-context/META-IN
F/spring/CheckingAccountService-context.xml (working copy)
--------------------------
File to patch:
Skip this patch? [y] y
Skipping patch.
1 out of 1 hunk ignored
I fixed it up manuall but please check that everything is ok an re-open this JIRA if you need to make further changes.
> 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: Simon Laws
> Fix For: Java-SCA-Next
>
> Attachments: TUSCANY-2573-NEW.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.
[jira] Assigned: (TUSCANY-2573) Able to get spring application
context when using spring as the implementation binding
Posted by "Simon Laws (JIRA)" <de...@tuscany.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-2573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Simon Laws reassigned TUSCANY-2573:
-----------------------------------
Assignee: Simon Laws (was: Ramkumar Ramalingam)
> 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: Simon Laws
> Attachments: TUSCANY-2573-NEW.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.
[jira] Updated: (TUSCANY-2573) Able to get spring application
context when using spring as the implementation binding
Posted by "Ramkumar Ramalingam (JIRA)" <de...@tuscany.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-2573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ramkumar Ramalingam updated TUSCANY-2573:
-----------------------------------------
Patch Info: [Patch Available]
> 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-NEW.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.
[jira] Updated: (TUSCANY-2573) Able to get spring application
context when using spring as the implementation binding
Posted by "Ramkumar Ramalingam (JIRA)" <de...@tuscany.apache.org>.
[ 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.
[jira] Updated: (TUSCANY-2573) Able to get spring application
context when using spring as the implementation binding
Posted by "Ramkumar Ramalingam (JIRA)" <de...@tuscany.apache.org>.
[ 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-NEW.patch
Uploading new patch with the change in schema location to http://www.osoa.org/xmlns/sca/1.0/spring-sca.xsd.
> 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-NEW.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.
[jira] Commented: (TUSCANY-2573) Able to get spring application
context when using spring as the implementation binding
Posted by "Mike Edwards (JIRA)" <de...@tuscany.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-2573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12630539#action_12630539 ]
Mike Edwards commented on TUSCANY-2573:
---------------------------------------
Added a new testcase for this function:
SpringContextAccessTestCase
> 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: Simon Laws
> Fix For: Java-SCA-Next
>
> Attachments: TUSCANY-2573-NEW.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.