[ 
https://issues.apache.org/jira/browse/SYNAPSE-207?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12556374#action_12556374
 ] 

Andreas Veithen commented on SYNAPSE-207:
-----------------------------------------

I completely agree that this is better than nothing. I just posted my comment 
to make people aware of the fact that it doesn't work in all deployment 
scenarios.

In the OSGi platform they have the same problem and they partially solved it, 
but I don't think their hack works properly in a servlet container. The 
URLStreamHandlerFactory solution has one big advantage, which is that it is 
completely transparent, i.e. there is no need to modify code and it also works 
with third party libraries. What is interesting to see is that in the Spring 
framework they don't use it, probably because they came to the conclusion that 
it doesn't work in a servlet container. A long term solution for Synapse could 
be to integrate the Spring resource framework. What do you think?

> Support classpath resources in registry entries
> -----------------------------------------------
>
>                 Key: SYNAPSE-207
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-207
>             Project: Synapse
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 1.1
>            Reporter: Jose Luis Alba
>            Assignee: Asankha C. Perera
>            Priority: Minor
>             Fix For: 1.1.1
>
>
> When defining a localEntry the src attribute specifies a URL resource. It 
> would be useful to load the resources from classpath using something like 
> (spring) src="classpath:someFile.xml".

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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

Reply via email to