java - How/where to include and read build information in an EAR? -


i've been trying come clean way include , display in webpage build information ear (containing web app war).

my first instinct put bulls metadata in ear meta-inf/manifest.mf file. chance have ear's manifest not part of classpath , consequently there no way read without using file operations - no no in jee container.

another option add bulls info war manifest, isn't giving me necessary info on ear.

lastly, have build process create properties file in jar in ear/lib folder, feels wrong well... creating lib on fly screams poor practice.

is there clean/property way this?

in java ee 6 , newer can place <env-entry> elements in ear's application.xml file.

therefore can place whatever additional metadata need 1 or more <env-entry> sections , load values either via @resource injection or old fashioned jndi lookups.


Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -