You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "daniel carter (JIRA)" <ji...@apache.org> on 2014/03/26 21:38:16 UTC

[jira] [Comment Edited] (CXF-4617) Support SpEL expressions in http conduit name

    [ https://issues.apache.org/jira/browse/CXF-4617?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13948417#comment-13948417 ] 

daniel carter edited comment on CXF-4617 at 3/26/14 8:36 PM:
-------------------------------------------------------------

I have the same problem configuring a cxf endpoint.  I don't understand why it doesn't work, this is bog standard spring xml configuration, why does it not work with camel?  I would have though spring was doing the property substitution before the endpoint lifecycle starts.
{code:xml}
<cxf:cxfEndpoint id="salesforceEndpoint" address="#{ @appPropertyBean.getProperty('SALESFORCE_WS_ENDPOINT_URL') }" />
{code}


was (Author: dantheperson):
I have the same problem configuring a cxf endpoint.  I don't understand why it doesn't work, this is bog standard spring xml configuration, why does it not work with camel?
{code:xml}
<cxf:cxfEndpoint id="salesforceEndpoint" address="#{ @appPropertyBean.getProperty('SALESFORCE_WS_ENDPOINT_URL') }" />
{code}

> Support SpEL expressions in http conduit name
> ---------------------------------------------
>
>                 Key: CXF-4617
>                 URL: https://issues.apache.org/jira/browse/CXF-4617
>             Project: CXF
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 2.6.1
>         Environment: Spring 3.1.1
>            Reporter: Eugene Scripnik
>
> I've recently described this problem in another issue (CXF-4391), but the fix for it does not actually resolve my problem.
> If you try to configure HTTP Conduit name using property file and SpEL, it will be silently discarded.
> Sample configuration:
> {code}
> <http-conf:conduit name="${soap.address.prefix}.*" />
> {code}
> Where ${soap.address.prefix} is configured in external property file:
> {code}
> soap.address.prefix=http://localhost:8080/services/
> {code}
> I am not the only one requesting this feature, here is the same request from Stack Overflow:
> http://stackoverflow.com/questions/9396095/how-to-externalize-properties-from-httpconduit-java
> I would expect that all SpEL substitutions are executed before regexp pattern is compiled in ConfigurerImpl#initWildcardDefinitionMap.



--
This message was sent by Atlassian JIRA
(v6.2#6252)