I\'m trying to read deployment specific information from a properties file in my wildfly configuration folder. I tried this:
@Singleton
@Startup
public class
If you have in standalone.xml property:
you can wasily read it with:
static final String MY_PROPERTY = System.getProperty("my.properties");
Or if you specify context param in web.xml like:
MyProperty
MyPropertyValue
You can read it in Java bean:
String myProperty= getServletContext().getInitParameter("MyProperty");