You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Mike Youngstrom (JIRA)" <ji...@apache.org> on 2010/12/03 01:18:10 UTC

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

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.


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

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-3162?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp resolved CXF-3162.
------------------------------

       Resolution: Fixed
    Fix Version/s: 2.4.3

> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Posted by "Henri Tremblay (Commented) (JIRA)" <ji...@apache.org>.
    [ 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

        

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

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
     [ 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