Uploaded image for project: 'TomEE'
  1. TomEE
  2. TOMEE-376

ability to configure in a more consistent manner the container (cxf feature for jaxws/jaxrs endpoints managed this way)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.5.1
    • None
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            romain.manni-bucau Romain Manni-Bucau
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: