A slightly more elegant way than Ivar’s suggestion would be to put a properties file in the classpath somewhere (for example, with Tomcat, you could put it in tomcat’s lib/) folder, then in your ResourceConfig, do a getResourceAsStream(“/config.properties”) and look for some property to tell you the mode you are running in.
Joseph Mocker | Velti | Senior Software Architect
t +1.415.315.4314 m +1.650.566.7033
e jmocker_at_velti.com @VeltiMobile
The leading global technology provider of
mobile marketing and advertising solutions
On Oct 25, 2013, at 12:46 PM, Ivar <ivarconr_at_gmail.com> wrote:
> Use regular jvm properties to set a debug property?
>
> Ivar