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

Henri Tremblay commented on CXF-3162:
-------------------------------------

>From what I've seen in the modified code, there should now be an id attribute 
>on the bus in core.xsd.

However, I can't find it in http://cxf.apache.org/schemas/core.xsd

Should I use another xsd or is this one obsolete?

Thanks.
                
> 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
>             Fix For: 2.4.3
>
>
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to