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 Kulp (JIRA)" <ji...@apache.org> on 2011/09/07 18:07:10 UTC

[jira] [Assigned] (CXF-3162) Make it possible to set bus id through core:bus namespace handler

     [ https://issues.apache.org/jira/browse/CXF-3162?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp reassigned CXF-3162:
--------------------------------

    Assignee: Daniel Kulp

> Make it possible to set bus id through core:bus namespace handler
> -----------------------------------------------------------------
>
>                 Key: CXF-3162
>                 URL: https://issues.apache.org/jira/browse/CXF-3162
>             Project: CXF
>          Issue Type: Improvement
>          Components: Configuration
>    Affects Versions: 2.2.11
>            Reporter: Mike Youngstrom
>            Assignee: Daniel Kulp
>
> Currently when using spring with imported cxf.xml configuration files it does not appear to be possible to set the bus id without overriding the default bus bean which can be problematic.  It would be nice if we could simply set the id on the "core:bus" namespace handler similar to how this namespace handler currently sets interceptors, properties, etc.
> I need to set the default bus id because I'd like to monitor my cxf mbeans and since cxf uses the bus id to create the JMX ObjectName this makes my mbean Object names indeterministic if the default random id is used.  So I would like to be able to change my configuration like so:
> 	<import resource="classpath:META-INF/cxf/cxf.xml" />
> 	<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
> 	<import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
> 	<cxf:bus bus-id="someId"/>
> Which would be the equivalent but less problematic form of:
> 	<import resource="classpath:META-INF/cxf/cxf.xml" />
> 	<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
> 	<import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
> 	<bean id="cxf" class="org.apache.cxf.bus.CXFBusImpl">
> 		<property name="id" value="someId"/>
> 	</bean>
>  I would be happy to provide a patch if the idea is acceptable.
> Mike

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira