You could take a look at the configuration of camel transport for CXF. we
inject the camel context (which could be an extension of TransportConfig)
into the CamelTransportFactory or the {CamelConduit|CamelDestion}.

Endpoint can find the CamelTransportFactory by using the transport id or
transport perfix like 'camel:'.  Each Conduit or Destination configuration
has its own id, when the endpoint find the transport factory and create the
conduit or destination, current CXF configuration will call the 'configure'
method which will seach the spring context and configure the conduit or
destination according the bean id.

If you want to add the TransportConfig into the endpoint , we need to hack
the code of endpoint looking up the transport factory, and set the
TransportConfig into the transport factory or the {conduit|destination}.

Any thoughts?

On Sat, Oct 4, 2008 at 3:51 AM, Christian Schneider <[EMAIL PROTECTED]
> wrote:

> Hi Willem,
>
> after completing the change to Spring JMS for the JMS transport I will now
> tackle the configuration problem again.
>
> I would also recommend thinking about a broader change of configuration
> style. But I am unsure how to really do it. Can you elaborate a little
> further how you would add the TransportConfig to the endpoint?
> I would like to be able to configure the TransportConfig in the spring
> client or endpoint definition definition. Where would I add the property and
> how would I transport this information to the Conduit.
> The current configs are added to the EndpointInfo from WSDL or Conduit /
> Destination definitions. How would I connect this when the config is added
> to client or endpoint?
>
> I think we could introduce the new config style in parallel for 2.x and if
> it is better than the current config could turn this off in 3.0. In the JMS
> transport I have prepared all to be able to do this.
>
> Greetings
>
> Christian
>
> Willem Jiang schrieb:
>
>> Hi Christian,
>>
>> +1 for introducing the Camel style URL for the JMS configuration.
>> In Camel, you just need to specify the jms component's connection factory,
>> then the JMS component can take care of  the URL itself.
>>
>> In you proposal , we need to add a TransportConfig element for the
>> endpoint which could contain the Transport specified configuration for the
>> JMSConduit or JMSDestination.
>> I think we could go further, as you know for the HttpJettyDestination ,
>> there need to do some configuration for JettyServerEngine which is also a
>> transport level configuration.
>> We could also set the URLConnection factory for the HttpConduit in this
>> way.
>>
>> Since most current CXF configration are based on parser an XML to Java
>> Object by JAXB and few Spring style bean class injection.
>> If we introduce the TransportConfig element and lots of transport
>> configuration could be changed.
>> Maybe we can do this in CXF 3.0.
>>
>> Any thoughts?
>>
>> Willem
>>
>
> --
>
> Christian Schneider
> ---
>
> http://www.liquid-reality.de
>
>

Reply via email to