You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by loadmanc <ch...@gmail.com> on 2011/07/28 09:15:22 UTC

HttpConduit "name" - Ability required to inject a property for the http:conduit name attribute

I have tried everything to try and inject a value from a property file into
the http:conduit name attribute. I would like to do something like
<http:conduit name="${property}">. I also had a look at the HTTPConduit
class and realise that there is only a getter, but no setter for
HTTPConduit.conduitName.

I do not want to hard code the http:conduit name value as we have different
environments that require different values to be in the name field,
depending on which environment we are running (eg. test or production)

Is there any specific reason that this is the way it is. A solution to this
would be a great help, as we can currently inject properties for all other
attributes, or properties but the only one we have to hard code is the
http:conduit name. This is annoying as if we need to change the endpoint
when deployed in a production/test environment, we need to modify the
applicationContext and reseploy rather than just get the web admins to
change a property in an external file.

Many thanks,

Chris.

--
View this message in context: http://cxf.547215.n5.nabble.com/HttpConduit-name-Ability-required-to-inject-a-property-for-the-http-conduit-name-attribute-tp4641515p4641515.html
Sent from the cxf-issues mailing list archive at Nabble.com.

Re: HttpConduit "name" - Ability required to inject a property for the http:conduit name attribute

Posted by Willem Jiang <wi...@gmail.com>.
Spring supports the alias name, if you specify the bean id attribute and 
name attribute at the same time, the name value can be the bean's  alias 
name.
I just did some simple test[1] on the CXF core, it show that CXF support 
it out of box.

Please make sure you configure bean as id attribute and name attribute 
at the same time.

[1]http://svn.apache.org/viewvc?rev=1177193&view=rev

On Wed Sep 28 18:31:05 2011, natty wrote:
> Hi,
>
> I am also facing the same issue. I too looking for a solution not to hard
> code the "name" element of HTTP Conduit.
>
> have you found out the solution for this? if yes, please share with me..!
>
> Thanks,
> Natarajan
>
> --
> View this message in context: http://cxf.547215.n5.nabble.com/HttpConduit-name-Ability-required-to-inject-a-property-for-the-http-conduit-name-attribute-tp4641515p4848664.html
> Sent from the cxf-issues mailing list archive at Nabble.com.
>



-- 
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
          http://jnn.javaeye.com (Chinese)
Twitter: willemjiang
Weibo: willemjiang

-- 
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
          http://jnn.javaeye.com (Chinese)
Twitter: willemjiang
Weibo: willemjiang

Re: HttpConduit "name" - Ability required to inject a property for the http:conduit name attribute

Posted by natty <na...@gmail.com>.
Hi,

I am also facing the same issue. I too looking for a solution not to hard
code the "name" element of HTTP Conduit.

have you found out the solution for this? if yes, please share with me..!

Thanks,
Natarajan

--
View this message in context: http://cxf.547215.n5.nabble.com/HttpConduit-name-Ability-required-to-inject-a-property-for-the-http-conduit-name-attribute-tp4641515p4848664.html
Sent from the cxf-issues mailing list archive at Nabble.com.