Storing and editing configuration for Java EE applications

前端 未结 2 1624
慢半拍i
慢半拍i 2021-02-19 19:40

UPDATE: See my blog post on this topic about a year after this was written: http://blog.ringerc.id.au/2012/07/java-ee-7-needs-improvements-in-app.html

... for r

2条回答
  •  星月不相逢
    2021-02-19 20:14

    The problem with the preferences API was caused by the inclusion of jaxb and stax implementation jars on in the application's war, pulled in by jersey-json . With these excluded (as they're provided by the app server anyway) the preferences API resumed functioning correctly.

    It looks like the prefs API with custom UI for setup appears to be the best way to go.

提交回复
热议问题