[ 
https://issues.apache.org/jira/browse/TOMEE-376?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jean-Louis MONTEIRO updated TOMEE-376:
--------------------------------------

    Fix Version/s:     (was: 1.5.0)
                   1.5.1
    
> ability to configure in a more consistent manner the container (cxf feature 
> for jaxws/jaxrs endpoints managed this way)
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: TOMEE-376
>                 URL: https://issues.apache.org/jira/browse/TOMEE-376
>             Project: TomEE
>          Issue Type: Improvement
>            Reporter: Romain Manni-Bucau
>             Fix For: 1.5.1
>
>
> Sample of configuratoin:
> <AppContext>
>   <Configuration>
>     <AsynchronousPool>
>      CorePoolSize = 10
>      MaximumPoolSize = 10
>     </AsynchronousPool>
>     <AnyPropertyPrefix>
>      someproperty = foo
>     </AnyPropertyPrefix>
>     <org.quartz>
>      scheduler.instanceName = my-app
>      scheduler.instanceId = my-bean
>      threadPool.threadCount = 10
>      threadPool.class = org.superbiz.MyCustomThreadPool
>      plugin.LogPlugin.class = org.superbiz.MyLogPlugin
>      plugin.LogPlugin.active = true
>     </org.quartz>
>   </Configuration>
>   <BeanContexts>
>     <BeanContext id="CalculatorBean">
>       <Configuration>
>         <cxf.jaxws>
>           in-interceptors = wss4j
>         </cxf.jaxws>
>       </Configuration>
>     </BeanContext>
>   </BeanContexts>
>   <Pojos>
>     <Pojo id="org.foo.bar">
>       <Configuration>
>         <cxf.jaxws>
>           in-interceptors = wss4j
>         </cxf.jaxws>
>       </Configuration>
>     </Pojo>
>   </Pojos>
>   <Resources>
>     <Service id="wss4j" 
> class-name="org.apache.openejb.server.cxf.config.WSS4JInInterceptorFactory" 
> factory-name="create">
>       action = UsernameToken
>       passwordType = PasswordText
>       passwordCallbackClass = org.superbiz.ws.security.PasswordCallbackHandler
>     </Service>
>     <Service .../>
>     <Resource .../>
>   </Resources>
> <AppContext>
> The service (there is a 1:1 relationship between class-name of the service 
> representing the bean and the impl class) has the following properties:
> *  cxf.jaxrs.providers
> *  cxf.jaxrs.features
> *  cxf.jaxrs.in-interceptors
> *  cxf.jaxrs.in-fault-interceptors
> *  cxf.jaxrs.out-interceptors
> *  cxf.jaxrs.out-fault-interceptors
> *  cxf.jaxrs.databinding
> *  cxf.jaxrs.address
> *  cxf.jaxrs.properties
> For jaxws the same properties can be used (execption providers one) replacing 
> jaxrs by jaxws.
> The value is for properties anotther service id.
> For databinding it is a service id too where the class-name is the 
> databinding impl name.
> For lists (interceptors, providers, features) it is a list (comma separated) 
> of service id.
> Note: in referenced service id you can use properties. If the property value 
> starts with & it will try to resolve a bean in services.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to