You just need to put it in META-INF/cxf/ but I found it is not possible to
remove the original extension file, but also found this
https://issues.apache.org/jira/browse/CXF-3601. Maybe you can use it.

Le mar. 17 nov. 2020 à 09:54, Syed Mudassir Ahmed
<[email protected]> a écrit :

> Thanks Aiglin,
>   I tried bus.setExtension() but it never worked.  I can try the other
> option, but how can I tell the CXF to pick my own .txt file?.
>
> Thanks,
> <http://www.gaiansolutions.com/>
> Syed Mudassir Ahmed
> LMTS-2
> o:  +91 40 64535352
> m: +91 9177674397
> w: www.gaiansolutions.com
>
>
> On Tue, Nov 17, 2020 at 2:03 PM Baptiste Aiglin <[email protected]
> >
> wrote:
>
> > Hi Syed,
> > as far as I know this factory is chosen after you add the dependency so
> the
> > bus-extensions.txt file is also added telling CXF how to initialize the
> > implementation of HTTPConduitFactory.
> >
> >
> >
> org.apache.cxf.transport.http.asyncclient.AsyncHTTPConduitFactory:org.apache.cxf.transport.http.HTTPConduitFactory:true:true
> >
> >
> org.apache.cxf.transport.http.asyncclient.AsyncHttpTransportFactory:org.apache.cxf.transport.ConduitInitiator:true:true
> >
> > So for sure by customizing this file somehow, you could tell CXF to pick
> up
> > your implementation instead. From a code perspective, I could not find a
> > way to do so through the factories. The only way grammatically would be
> to
> > set the extension on your bus (bus.setExtension(..)), but I fear it may
> > happen too late in the initialization of the different factories.
> >
> > Le lun. 16 nov. 2020 à 06:36, Syed Mudassir Ahmed
> > <[email protected]> a écrit :
> >
> > > Hi Guys,
> > >   I am using CXF 3.4.0.
> > >   I wanted to customize the AsyncHTTPConduitFactory for my needs.
> > >   I subclasses the same, but I don't know where and how to configure
> the
> > > CXF to pick-up my custom factory instead of the default one.
> > >   Can anyone provide any example or reference regarding how to tell the
> > CXF
> > > to use my custom factory?
> > > Thanks,
> > > <http://www.gaiansolutions.com/>
> > > Syed Mudassir Ahmed
> > > LMTS-2
> > > o:  +91 40 64535352
> > > m: +91 9177674397
> > > w: www.gaiansolutions.com
> > >
> >
>

Reply via email to