GitHub user rzo1 opened a pull request:

    https://github.com/apache/tomee/pull/227

    TOMEE-2233 - Custom Configuration of TomEEJsonbProvider

    **Summary**
    
    Provides support for custom configuration of  `TomEEJsonbProvider` (see 
https://issues.apache.org/jira/browse/TOMEE-2233) in order to migrate from a 
custom `TomEEConfigurableJohnzon`.
    
    This was merged into 7.1.x branch (see 
https://github.com/apache/tomee/pull/162) only, but also affect **8.x.x**.
    
    **Example configuration via `resources.xml`**
    
    ```
    <?xml version="1.0" encoding="utf-8"?>
    <resources>
        <Service id="configuredTomEEJsonbProvider" 
class-name="org.apache.openejb.server.cxf.rs.johnzon.TomEEJsonbProvider">
            dateFormat = yyyy-MM-dd'T'HH:mm:ss.SSSZ
            locale = @germanLocale
            accessMode = @fieldAccessMode
            nullValues = false
        </Service>
    
        <Resource id="germanLocale" class-name="java.util.Locale" 
constructor="language,country">
            language = de
            country = DE
        </Resource>
    
        <Resource id="fieldAccessMode" 
class-name="org.apache.johnzon.mapper.access.FieldAccessMode" 
constructor="useConstructor,acceptHiddenConstructor">
            useConstructor = true
            acceptHiddenConstructor = true
        </Resource>
    </resources>
    ```

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/rzo1/tomee tomee-8.x.x-TOMEE-2233

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/tomee/pull/227.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #227
    
----
commit 88b8ef487a17db8cbebe88b7af1538a036fbe8f1
Author: rzo1 <richard@...>
Date:   2018-09-12T11:58:02Z

    TOMEE-2233 adds support for configuration of dateFormat, locale and 
accessMode to TomEEJsonbProvider

commit d5a1b06e629c9792775b88c7e14c3b0be0f570f4
Author: rzo1 <richard@...>
Date:   2018-09-12T12:32:09Z

    TOMEE-2233 adds a test-case for custom configuration of TomEEJsonbProvider

commit 46873a5982b4de0001f47e52a8644298503ff023
Author: rzo1 <richard@...>
Date:   2018-12-03T09:44:38Z

    Merge remote-tracking branch 'origin/master' into tomee-8.x.x-TOMEE-2233

commit 14d1e7990abeb9cd4b4a059563c140403d82e21a
Author: rzo1 <richard@...>
Date:   2018-12-03T09:48:30Z

    TOMEE-2233 Adjusts test-case dateFormat

----


---

Reply via email to