You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomee.apache.org by rzo1 <gi...@git.apache.org> on 2018/12/03 09:50:52 UTC
[GitHub] tomee pull request #227: TOMEE-2233 - Custom Configuration of TomEEJsonbProv...
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 <ri...@...>
Date: 2018-09-12T11:58:02Z
TOMEE-2233 adds support for configuration of dateFormat, locale and accessMode to TomEEJsonbProvider
commit d5a1b06e629c9792775b88c7e14c3b0be0f570f4
Author: rzo1 <ri...@...>
Date: 2018-09-12T12:32:09Z
TOMEE-2233 adds a test-case for custom configuration of TomEEJsonbProvider
commit 46873a5982b4de0001f47e52a8644298503ff023
Author: rzo1 <ri...@...>
Date: 2018-12-03T09:44:38Z
Merge remote-tracking branch 'origin/master' into tomee-8.x.x-TOMEE-2233
commit 14d1e7990abeb9cd4b4a059563c140403d82e21a
Author: rzo1 <ri...@...>
Date: 2018-12-03T09:48:30Z
TOMEE-2233 Adjusts test-case dateFormat
----
---
[GitHub] tomee issue #227: TOMEE-2233 - Custom Configuration of TomEEJsonbProvider
Posted by jgallimore <gi...@git.apache.org>.
Github user jgallimore commented on the issue:
https://github.com/apache/tomee/pull/227
Awesome, thanks for the PR! I'll pull this, and get it merged for you.
---
[GitHub] tomee pull request #227: TOMEE-2233 - Custom Configuration of TomEEJsonbProv...
Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:
https://github.com/apache/tomee/pull/227
---