[ 
https://issues.apache.org/jira/browse/CXF-8637?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17472387#comment-17472387
 ] 

Andriy Redko commented on CXF-8637:
-----------------------------------

[~mattrpav] you could inject your own `Bus` instance into the 
`CXFNonSpringServlet` by pointing the system property 
`org.apache.cxf.bus.factory` to your own `BusFactory` implementation. With 
that, you have full control over the `Bus` instantiation, does it solve your 
particular problem?

> Support bus configuration using servlet init-params for non-Spring
> ------------------------------------------------------------------
>
>                 Key: CXF-8637
>                 URL: https://issues.apache.org/jira/browse/CXF-8637
>             Project: CXF
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Matt Pavlovich
>            Priority: Major
>
> Currently, a CXFNonSpringServlet always creates a new bus. It would be useful 
> to be able to specify init-params to instruct it to re-use existing bus, and 
> provide configuration options.
> Proposal:
> 1. Update 
> https://github.com/apache/cxf/blob/master/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/CXFNonSpringServlet.java#L166
>  to parse out params that begin with bus.* and pass them into the create bus.
> 2. Provide a flag to re-use the existing or default bus



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to