Thank you Freeman Fang.
Regarding:
<cxf:bus>
<cxf:features>
your feature here
</cxf:features>
</cxf:bus>
All the examples I found were about adding a feature defined into cxf
namespace, e.g., <cxf:logging/>
Is it explained anywhere how to define my own custom feature? And second (more
important for me right now), is it possible to just list the beans implementing
Feature, e.g.:
<cxf:bus>
<cxf:features>
<list>
<ref bean="feature1" />
<ref bean=" feature2" />
</list>
</cxf:features
</cxf:bus>
Best Regards,
Yossi Cohen
-----Original Message-----
From: Freeman Fang [mailto:[email protected]]
Sent: Friday, December 13, 2013 10:27 AM
To: [email protected]
Subject: Re: Autowire CXF Bus
Hi,
My comment inline
-------------
Freeman(Yue) Fang
Red Hat, Inc.
FuseSource is now part of Red Hat
On 2013-12-13, at 下午4:18, Yossi Cohen wrote:
> Hello,
>
> I use CXF, Spring and Tomcat. What way can CXF Feature be added
> programmatically to CXF Bus instance? What way can this be done via CXF XML
> (at bus level)?
Something like
<cxf:bus>
<cxf:features>
your feature here
</cxf:features>
</cxf:bus>
> Also, if I do not want configure a bunch of features separately, does it make
> sense to aggregate them within a newly created Feature (see below)?
>
> public class MyCompositeFeature extends AbstractFeature {
> @Override
> public void initialize(Server server, Bus bus) {
> AbstractFeature feature = new ServiceCleanupFeature();
> bus.getFeatures().add(feature);
> feature.initialize(server, bus);
> }
> }
Yep, you can do this way
>
> Thanks,
> Yossi
>
>
> This message and the information contained herein is proprietary and
> confidential and subject to the Amdocs policy statement, you may
> review at http://www.amdocs.com/email_disclaimer.asp
This message and the information contained herein is proprietary and
confidential and subject to the Amdocs policy statement,
you may review at http://www.amdocs.com/email_disclaimer.asp