You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Donal Arundel (JIRA)" <ji...@apache.org> on 2009/12/22 17:03:40 UTC

[jira] Created: (CAMEL-2311) Allow CAMEL cxfEndpoint sub-elements to be factored out

Allow CAMEL cxfEndpoint sub-elements to be factored out 
--------------------------------------------------------

                 Key: CAMEL-2311
                 URL: https://issues.apache.org/activemq/browse/CAMEL-2311
             Project: Apache Camel
          Issue Type: Improvement
          Components: camel-cxf
    Affects Versions: Future
            Reporter: Donal Arundel
            Priority: Minor


The objective is to be able to factor out cxfEndoint sub-elements  (such as features ) in order that they can be shared via bean references with other camel CXF endpoints.
e.g. via <bean ref="someid">

A camel cxf  schema snippet is below.
The features element (for example)  cannot be declared outside of the cxfEndoint scope without violating the schema.
Global types should be defined for each sub-element  to allow adressability 
e.g. rather than the features element being declared directly as "xsd:anyType",
it could be declared as a distinct  featuresType which is defined globally and can be refernced via <bean ref=someid"> for various cxfEndpoint elements as required.
 
My intial requriement was to have this for features, which is probably the most useful  - but It probably would make sense to address this for all approrpiate cxfEndpoint sub-elements at the same time.

- <xsd:element name="cxfEndpoint">
- <xsd:complexType>
- <xsd:complexContent>
- <xsd:extension base="beans:identifiedType">
- <xsd:all>
  <xsd:element name="binding" type="xsd:anyType" minOccurs="0" /> 
  <xsd:element name="dataBinding" type="xsd:anyType" minOccurs="0" /> 
  <xsd:element name="features" type="xsd:anyType" minOccurs="0" /> 
  <xsd:element name="inInterceptors" type="xsd:anyType" minOccurs="0" /> 
  <xsd:element name="inFaultInterceptors" type="xsd:anyType" minOccurs="0" /> 
  <xsd:element name="outInterceptors" type="xsd:anyType" minOccurs="0" /> 
  <xsd:element name="outFaultInterceptors" type="xsd:anyType" minOccurs="0" /> 
  <xsd:element name="handlers" type="xsd:anyType" minOccurs="0" /> 
  <xsd:element name="properties" type="beans:mapType" minOccurs="0" /> 
  <xsd:element name="schemaLocations" type="schemasType" minOccurs="0" /> 
  <xsd:element name="serviceBean" type="xsd:anyType" minOccurs="0" /> 
  <xsd:element name="serviceFactory" type="xsd:anyType" minOccurs="0" /> 
  </xsd:all>
  <xsd:attributeGroup ref="cxf-beans:beanAttributes" /> 
  <xsd:attribute name="address" type="xsd:string" /> 
  <xsd:attribute name="bindingId" type="xsd:string" /> 
  <xsd:attribute name="bus" type="xsd:string" /> 
  <xsd:attribute name="serviceClass" type="xsd:string" /> 
  <xsd:attribute name="transportId" type="xsd:string" /> 
  <xsd:attribute name="wsdlURL" type="xsd:string" /> 
  <xsd:attribute name="endpointName" type="xsd:QName" /> 
  <xsd:attribute name="serviceName" type="xsd:QName" /> 
  </xsd:extension>
  </xsd:complexContent>
  </xsd:complexType>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-2311) Allow CAMEL cxfEndpoint sub-elements to be factored out

Posted by "Donal Arundel (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2311?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=58247#action_58247 ] 

Donal Arundel commented on CAMEL-2311:
--------------------------------------

Thanks willem, 
I would have thought it was possible to do this in a backwardly compatible way, essentially you would just be promoting the visibility of a specific type to a globally declaration level.
I think It would still be possible to support exisisting users spring config files, i.e. the new schema would superset of the config of the old schema.

However I confess to not realising that CXf itself currenlty has the same limitation, so it does seem "unfair" to raise this JIRA against CAMEL CXF without also addressing it in CXF core :-)

As an aside when folks are developing spring based schemas for CXF or other products they probably want to take into account that folks will want to support refactoring of config and declare the types concerned at a level that supports it.
Glancing through some CXF schemas this issue seems pervasive, and as a result a lot of the flexability that spring  config can give is lost, which will make administration more difficult.

Anyway, I am happy to leave this for now. I might reopen this issue when/if the CXF schema is adjusted to support this.

Regards,
    Donal

> Allow CAMEL cxfEndpoint sub-elements to be factored out 
> --------------------------------------------------------
>
>                 Key: CAMEL-2311
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2311
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-cxf
>    Affects Versions: Future
>            Reporter: Donal Arundel
>            Assignee: Willem Jiang
>            Priority: Minor
>   Original Estimate: 4 hours
>  Remaining Estimate: 4 hours
>
> The objective is to be able to factor out cxfEndoint sub-elements  (such as features ) in order that they can be shared via bean references with other camel CXF endpoints.
> e.g. via <bean ref="someid">
> A camel cxf  schema snippet is below.
> The features element (for example)  cannot be declared outside of the cxfEndoint scope without violating the schema.
> Global types should be defined for each sub-element  to allow adressability 
> e.g. rather than the features element being declared directly as "xsd:anyType",
> it could be declared as a distinct  featuresType which is defined globally and can be refernced via <bean ref=someid"> for various cxfEndpoint elements as required.
>  
> My intial requriement was to have this for features, which is probably the most useful  - but It probably would make sense to address this for all approrpiate cxfEndpoint sub-elements at the same time.
> - <xsd:element name="cxfEndpoint">
> - <xsd:complexType>
> - <xsd:complexContent>
> - <xsd:extension base="beans:identifiedType">
> - <xsd:all>
>   <xsd:element name="binding" type="xsd:anyType" minOccurs="0" /> 
>   <xsd:element name="dataBinding" type="xsd:anyType" minOccurs="0" /> 
>   <xsd:element name="features" type="xsd:anyType" minOccurs="0" /> 
>   <xsd:element name="inInterceptors" type="xsd:anyType" minOccurs="0" /> 
>   <xsd:element name="inFaultInterceptors" type="xsd:anyType" minOccurs="0" /> 
>   <xsd:element name="outInterceptors" type="xsd:anyType" minOccurs="0" /> 
>   <xsd:element name="outFaultInterceptors" type="xsd:anyType" minOccurs="0" /> 
>   <xsd:element name="handlers" type="xsd:anyType" minOccurs="0" /> 
>   <xsd:element name="properties" type="beans:mapType" minOccurs="0" /> 
>   <xsd:element name="schemaLocations" type="schemasType" minOccurs="0" /> 
>   <xsd:element name="serviceBean" type="xsd:anyType" minOccurs="0" /> 
>   <xsd:element name="serviceFactory" type="xsd:anyType" minOccurs="0" /> 
>   </xsd:all>
>   <xsd:attributeGroup ref="cxf-beans:beanAttributes" /> 
>   <xsd:attribute name="address" type="xsd:string" /> 
>   <xsd:attribute name="bindingId" type="xsd:string" /> 
>   <xsd:attribute name="bus" type="xsd:string" /> 
>   <xsd:attribute name="serviceClass" type="xsd:string" /> 
>   <xsd:attribute name="transportId" type="xsd:string" /> 
>   <xsd:attribute name="wsdlURL" type="xsd:string" /> 
>   <xsd:attribute name="endpointName" type="xsd:QName" /> 
>   <xsd:attribute name="serviceName" type="xsd:QName" /> 
>   </xsd:extension>
>   </xsd:complexContent>
>   </xsd:complexType>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (CAMEL-2311) Allow CAMEL cxfEndpoint sub-elements to be factored out

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-2311?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Willem Jiang resolved CAMEL-2311.
---------------------------------

    Resolution: Won't Fix

Current CxfEndpoint already supports the <ref bean="beanID"> definition.

> Allow CAMEL cxfEndpoint sub-elements to be factored out 
> --------------------------------------------------------
>
>                 Key: CAMEL-2311
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2311
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-cxf
>    Affects Versions: Future
>            Reporter: Donal Arundel
>            Assignee: Willem Jiang
>            Priority: Minor
>   Original Estimate: 4 hours
>  Remaining Estimate: 4 hours
>
> The objective is to be able to factor out cxfEndoint sub-elements  (such as features ) in order that they can be shared via bean references with other camel CXF endpoints.
> e.g. via <bean ref="someid">
> A camel cxf  schema snippet is below.
> The features element (for example)  cannot be declared outside of the cxfEndoint scope without violating the schema.
> Global types should be defined for each sub-element  to allow adressability 
> e.g. rather than the features element being declared directly as "xsd:anyType",
> it could be declared as a distinct  featuresType which is defined globally and can be refernced via <bean ref=someid"> for various cxfEndpoint elements as required.
>  
> My intial requriement was to have this for features, which is probably the most useful  - but It probably would make sense to address this for all approrpiate cxfEndpoint sub-elements at the same time.
> - <xsd:element name="cxfEndpoint">
> - <xsd:complexType>
> - <xsd:complexContent>
> - <xsd:extension base="beans:identifiedType">
> - <xsd:all>
>   <xsd:element name="binding" type="xsd:anyType" minOccurs="0" /> 
>   <xsd:element name="dataBinding" type="xsd:anyType" minOccurs="0" /> 
>   <xsd:element name="features" type="xsd:anyType" minOccurs="0" /> 
>   <xsd:element name="inInterceptors" type="xsd:anyType" minOccurs="0" /> 
>   <xsd:element name="inFaultInterceptors" type="xsd:anyType" minOccurs="0" /> 
>   <xsd:element name="outInterceptors" type="xsd:anyType" minOccurs="0" /> 
>   <xsd:element name="outFaultInterceptors" type="xsd:anyType" minOccurs="0" /> 
>   <xsd:element name="handlers" type="xsd:anyType" minOccurs="0" /> 
>   <xsd:element name="properties" type="beans:mapType" minOccurs="0" /> 
>   <xsd:element name="schemaLocations" type="schemasType" minOccurs="0" /> 
>   <xsd:element name="serviceBean" type="xsd:anyType" minOccurs="0" /> 
>   <xsd:element name="serviceFactory" type="xsd:anyType" minOccurs="0" /> 
>   </xsd:all>
>   <xsd:attributeGroup ref="cxf-beans:beanAttributes" /> 
>   <xsd:attribute name="address" type="xsd:string" /> 
>   <xsd:attribute name="bindingId" type="xsd:string" /> 
>   <xsd:attribute name="bus" type="xsd:string" /> 
>   <xsd:attribute name="serviceClass" type="xsd:string" /> 
>   <xsd:attribute name="transportId" type="xsd:string" /> 
>   <xsd:attribute name="wsdlURL" type="xsd:string" /> 
>   <xsd:attribute name="endpointName" type="xsd:QName" /> 
>   <xsd:attribute name="serviceName" type="xsd:QName" /> 
>   </xsd:extension>
>   </xsd:complexContent>
>   </xsd:complexType>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (CAMEL-2311) Allow CAMEL cxfEndpoint sub-elements to be factored out

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-2311?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Willem Jiang reassigned CAMEL-2311:
-----------------------------------

    Assignee: Willem Jiang

> Allow CAMEL cxfEndpoint sub-elements to be factored out 
> --------------------------------------------------------
>
>                 Key: CAMEL-2311
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2311
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-cxf
>    Affects Versions: Future
>            Reporter: Donal Arundel
>            Assignee: Willem Jiang
>            Priority: Minor
>   Original Estimate: 4 hours
>  Remaining Estimate: 4 hours
>
> The objective is to be able to factor out cxfEndoint sub-elements  (such as features ) in order that they can be shared via bean references with other camel CXF endpoints.
> e.g. via <bean ref="someid">
> A camel cxf  schema snippet is below.
> The features element (for example)  cannot be declared outside of the cxfEndoint scope without violating the schema.
> Global types should be defined for each sub-element  to allow adressability 
> e.g. rather than the features element being declared directly as "xsd:anyType",
> it could be declared as a distinct  featuresType which is defined globally and can be refernced via <bean ref=someid"> for various cxfEndpoint elements as required.
>  
> My intial requriement was to have this for features, which is probably the most useful  - but It probably would make sense to address this for all approrpiate cxfEndpoint sub-elements at the same time.
> - <xsd:element name="cxfEndpoint">
> - <xsd:complexType>
> - <xsd:complexContent>
> - <xsd:extension base="beans:identifiedType">
> - <xsd:all>
>   <xsd:element name="binding" type="xsd:anyType" minOccurs="0" /> 
>   <xsd:element name="dataBinding" type="xsd:anyType" minOccurs="0" /> 
>   <xsd:element name="features" type="xsd:anyType" minOccurs="0" /> 
>   <xsd:element name="inInterceptors" type="xsd:anyType" minOccurs="0" /> 
>   <xsd:element name="inFaultInterceptors" type="xsd:anyType" minOccurs="0" /> 
>   <xsd:element name="outInterceptors" type="xsd:anyType" minOccurs="0" /> 
>   <xsd:element name="outFaultInterceptors" type="xsd:anyType" minOccurs="0" /> 
>   <xsd:element name="handlers" type="xsd:anyType" minOccurs="0" /> 
>   <xsd:element name="properties" type="beans:mapType" minOccurs="0" /> 
>   <xsd:element name="schemaLocations" type="schemasType" minOccurs="0" /> 
>   <xsd:element name="serviceBean" type="xsd:anyType" minOccurs="0" /> 
>   <xsd:element name="serviceFactory" type="xsd:anyType" minOccurs="0" /> 
>   </xsd:all>
>   <xsd:attributeGroup ref="cxf-beans:beanAttributes" /> 
>   <xsd:attribute name="address" type="xsd:string" /> 
>   <xsd:attribute name="bindingId" type="xsd:string" /> 
>   <xsd:attribute name="bus" type="xsd:string" /> 
>   <xsd:attribute name="serviceClass" type="xsd:string" /> 
>   <xsd:attribute name="transportId" type="xsd:string" /> 
>   <xsd:attribute name="wsdlURL" type="xsd:string" /> 
>   <xsd:attribute name="endpointName" type="xsd:QName" /> 
>   <xsd:attribute name="serviceName" type="xsd:QName" /> 
>   </xsd:extension>
>   </xsd:complexContent>
>   </xsd:complexType>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-2311) Allow CAMEL cxfEndpoint sub-elements to be factored out

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2311?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=58205#action_58205 ] 

Willem Jiang commented on CAMEL-2311:
-------------------------------------

You can configure the feature like this
{code}
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:cxf="http://camel.apache.org/schema/cxf"
	xsi:schemaLocation="
       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
       http://camel.apache.org/schema/cxf http://camel.apache.org/schema/cxf/camel-cxf.xsd
       http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd
    ">
     
	<cxf:cxfEndpoint id="routerEndpoint" address="http://localhost:9000/router"
		serviceClass="org.apache.camel.component.cxf.HelloService">
		<cxf:features>
		    <ref bean="loggingOutInterceptor"/>
		</cxf:features>
	</cxf:cxfEndpoint>
		
    <bean id="myFeature" class="org.apache.cxf.feature.MyFeature" />
     		
	<cxf:cxfEndpoint id="serviceEndpoint" address="http://localhost:9002/helloworld"
		serviceClass="org.apache.camel.component.cxf.HelloService">
		<cxf:features>
		    <ref bean="loggingOutInterceptor"/>
		</cxf:features>
	</cxf:cxfEndpoint>
	
	
	<camelContext id="camel" xmlns="http://camel.apache.org/schema/spring">
		<route>
			<from uri="cxf:bean:routerEndpoint" />
			<to uri="cxf:bean:serviceEndpoint" />
		</route>
	</camelContext>
</beans>
{code}

> Allow CAMEL cxfEndpoint sub-elements to be factored out 
> --------------------------------------------------------
>
>                 Key: CAMEL-2311
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2311
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-cxf
>    Affects Versions: Future
>            Reporter: Donal Arundel
>            Priority: Minor
>   Original Estimate: 4 hours
>  Remaining Estimate: 4 hours
>
> The objective is to be able to factor out cxfEndoint sub-elements  (such as features ) in order that they can be shared via bean references with other camel CXF endpoints.
> e.g. via <bean ref="someid">
> A camel cxf  schema snippet is below.
> The features element (for example)  cannot be declared outside of the cxfEndoint scope without violating the schema.
> Global types should be defined for each sub-element  to allow adressability 
> e.g. rather than the features element being declared directly as "xsd:anyType",
> it could be declared as a distinct  featuresType which is defined globally and can be refernced via <bean ref=someid"> for various cxfEndpoint elements as required.
>  
> My intial requriement was to have this for features, which is probably the most useful  - but It probably would make sense to address this for all approrpiate cxfEndpoint sub-elements at the same time.
> - <xsd:element name="cxfEndpoint">
> - <xsd:complexType>
> - <xsd:complexContent>
> - <xsd:extension base="beans:identifiedType">
> - <xsd:all>
>   <xsd:element name="binding" type="xsd:anyType" minOccurs="0" /> 
>   <xsd:element name="dataBinding" type="xsd:anyType" minOccurs="0" /> 
>   <xsd:element name="features" type="xsd:anyType" minOccurs="0" /> 
>   <xsd:element name="inInterceptors" type="xsd:anyType" minOccurs="0" /> 
>   <xsd:element name="inFaultInterceptors" type="xsd:anyType" minOccurs="0" /> 
>   <xsd:element name="outInterceptors" type="xsd:anyType" minOccurs="0" /> 
>   <xsd:element name="outFaultInterceptors" type="xsd:anyType" minOccurs="0" /> 
>   <xsd:element name="handlers" type="xsd:anyType" minOccurs="0" /> 
>   <xsd:element name="properties" type="beans:mapType" minOccurs="0" /> 
>   <xsd:element name="schemaLocations" type="schemasType" minOccurs="0" /> 
>   <xsd:element name="serviceBean" type="xsd:anyType" minOccurs="0" /> 
>   <xsd:element name="serviceFactory" type="xsd:anyType" minOccurs="0" /> 
>   </xsd:all>
>   <xsd:attributeGroup ref="cxf-beans:beanAttributes" /> 
>   <xsd:attribute name="address" type="xsd:string" /> 
>   <xsd:attribute name="bindingId" type="xsd:string" /> 
>   <xsd:attribute name="bus" type="xsd:string" /> 
>   <xsd:attribute name="serviceClass" type="xsd:string" /> 
>   <xsd:attribute name="transportId" type="xsd:string" /> 
>   <xsd:attribute name="wsdlURL" type="xsd:string" /> 
>   <xsd:attribute name="endpointName" type="xsd:QName" /> 
>   <xsd:attribute name="serviceName" type="xsd:QName" /> 
>   </xsd:extension>
>   </xsd:complexContent>
>   </xsd:complexType>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-2311) Allow CAMEL cxfEndpoint sub-elements to be factored out

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2311?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=58216#action_58216 ] 

Willem Jiang commented on CAMEL-2311:
-------------------------------------

Hi Donal,

Current CxfEndpoint schema is same with the CXF's jaxws.schema, which means people can leverage their knowledge of CXF spring configuration to setup the camel-cxf as they want.
As you said current solution don't support to share the features group configure across the endpoints, but the fix will break the back compatibility of camel-cxf, so I'm afraid I can't implement this feature as you want.

Willem

> Allow CAMEL cxfEndpoint sub-elements to be factored out 
> --------------------------------------------------------
>
>                 Key: CAMEL-2311
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2311
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-cxf
>    Affects Versions: Future
>            Reporter: Donal Arundel
>            Assignee: Willem Jiang
>            Priority: Minor
>   Original Estimate: 4 hours
>  Remaining Estimate: 4 hours
>
> The objective is to be able to factor out cxfEndoint sub-elements  (such as features ) in order that they can be shared via bean references with other camel CXF endpoints.
> e.g. via <bean ref="someid">
> A camel cxf  schema snippet is below.
> The features element (for example)  cannot be declared outside of the cxfEndoint scope without violating the schema.
> Global types should be defined for each sub-element  to allow adressability 
> e.g. rather than the features element being declared directly as "xsd:anyType",
> it could be declared as a distinct  featuresType which is defined globally and can be refernced via <bean ref=someid"> for various cxfEndpoint elements as required.
>  
> My intial requriement was to have this for features, which is probably the most useful  - but It probably would make sense to address this for all approrpiate cxfEndpoint sub-elements at the same time.
> - <xsd:element name="cxfEndpoint">
> - <xsd:complexType>
> - <xsd:complexContent>
> - <xsd:extension base="beans:identifiedType">
> - <xsd:all>
>   <xsd:element name="binding" type="xsd:anyType" minOccurs="0" /> 
>   <xsd:element name="dataBinding" type="xsd:anyType" minOccurs="0" /> 
>   <xsd:element name="features" type="xsd:anyType" minOccurs="0" /> 
>   <xsd:element name="inInterceptors" type="xsd:anyType" minOccurs="0" /> 
>   <xsd:element name="inFaultInterceptors" type="xsd:anyType" minOccurs="0" /> 
>   <xsd:element name="outInterceptors" type="xsd:anyType" minOccurs="0" /> 
>   <xsd:element name="outFaultInterceptors" type="xsd:anyType" minOccurs="0" /> 
>   <xsd:element name="handlers" type="xsd:anyType" minOccurs="0" /> 
>   <xsd:element name="properties" type="beans:mapType" minOccurs="0" /> 
>   <xsd:element name="schemaLocations" type="schemasType" minOccurs="0" /> 
>   <xsd:element name="serviceBean" type="xsd:anyType" minOccurs="0" /> 
>   <xsd:element name="serviceFactory" type="xsd:anyType" minOccurs="0" /> 
>   </xsd:all>
>   <xsd:attributeGroup ref="cxf-beans:beanAttributes" /> 
>   <xsd:attribute name="address" type="xsd:string" /> 
>   <xsd:attribute name="bindingId" type="xsd:string" /> 
>   <xsd:attribute name="bus" type="xsd:string" /> 
>   <xsd:attribute name="serviceClass" type="xsd:string" /> 
>   <xsd:attribute name="transportId" type="xsd:string" /> 
>   <xsd:attribute name="wsdlURL" type="xsd:string" /> 
>   <xsd:attribute name="endpointName" type="xsd:QName" /> 
>   <xsd:attribute name="serviceName" type="xsd:QName" /> 
>   </xsd:extension>
>   </xsd:complexContent>
>   </xsd:complexType>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-2311) Allow CAMEL cxfEndpoint sub-elements to be factored out

Posted by "Donal Arundel (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2311?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=58207#action_58207 ] 

Donal Arundel commented on CAMEL-2311:
--------------------------------------

Hi William,

you are just referring to the abiilty to share a bean from within a features list, this is not what the JIRA referred to.

This is not the same as being able to share a feature set across all (or a group of) camel  endpoints.

e.g. say you had various combinations of features such as logging and security, but you knew they would all be the same for a group of logically related CAMEL endpoints.
It would be nice to be able to adminsiter these as a "group".

Being able to factor out the features as indicated in the JIRA allows you to do this, but the existing support for factoring out a single feature would just allow you to do something like change a security feature or something, but NOT change a group of feature beans contained within  a features element.

Cheers,
     Donal

> Allow CAMEL cxfEndpoint sub-elements to be factored out 
> --------------------------------------------------------
>
>                 Key: CAMEL-2311
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2311
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-cxf
>    Affects Versions: Future
>            Reporter: Donal Arundel
>            Assignee: Willem Jiang
>            Priority: Minor
>   Original Estimate: 4 hours
>  Remaining Estimate: 4 hours
>
> The objective is to be able to factor out cxfEndoint sub-elements  (such as features ) in order that they can be shared via bean references with other camel CXF endpoints.
> e.g. via <bean ref="someid">
> A camel cxf  schema snippet is below.
> The features element (for example)  cannot be declared outside of the cxfEndoint scope without violating the schema.
> Global types should be defined for each sub-element  to allow adressability 
> e.g. rather than the features element being declared directly as "xsd:anyType",
> it could be declared as a distinct  featuresType which is defined globally and can be refernced via <bean ref=someid"> for various cxfEndpoint elements as required.
>  
> My intial requriement was to have this for features, which is probably the most useful  - but It probably would make sense to address this for all approrpiate cxfEndpoint sub-elements at the same time.
> - <xsd:element name="cxfEndpoint">
> - <xsd:complexType>
> - <xsd:complexContent>
> - <xsd:extension base="beans:identifiedType">
> - <xsd:all>
>   <xsd:element name="binding" type="xsd:anyType" minOccurs="0" /> 
>   <xsd:element name="dataBinding" type="xsd:anyType" minOccurs="0" /> 
>   <xsd:element name="features" type="xsd:anyType" minOccurs="0" /> 
>   <xsd:element name="inInterceptors" type="xsd:anyType" minOccurs="0" /> 
>   <xsd:element name="inFaultInterceptors" type="xsd:anyType" minOccurs="0" /> 
>   <xsd:element name="outInterceptors" type="xsd:anyType" minOccurs="0" /> 
>   <xsd:element name="outFaultInterceptors" type="xsd:anyType" minOccurs="0" /> 
>   <xsd:element name="handlers" type="xsd:anyType" minOccurs="0" /> 
>   <xsd:element name="properties" type="beans:mapType" minOccurs="0" /> 
>   <xsd:element name="schemaLocations" type="schemasType" minOccurs="0" /> 
>   <xsd:element name="serviceBean" type="xsd:anyType" minOccurs="0" /> 
>   <xsd:element name="serviceFactory" type="xsd:anyType" minOccurs="0" /> 
>   </xsd:all>
>   <xsd:attributeGroup ref="cxf-beans:beanAttributes" /> 
>   <xsd:attribute name="address" type="xsd:string" /> 
>   <xsd:attribute name="bindingId" type="xsd:string" /> 
>   <xsd:attribute name="bus" type="xsd:string" /> 
>   <xsd:attribute name="serviceClass" type="xsd:string" /> 
>   <xsd:attribute name="transportId" type="xsd:string" /> 
>   <xsd:attribute name="wsdlURL" type="xsd:string" /> 
>   <xsd:attribute name="endpointName" type="xsd:QName" /> 
>   <xsd:attribute name="serviceName" type="xsd:QName" /> 
>   </xsd:extension>
>   </xsd:complexContent>
>   </xsd:complexType>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.