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
             Fix For: 2.3.1


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.
-
You can reply to this email to add a comment to the issue online.

Reply via email to