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

Reply via email to