| Author |
Glassfish App Server : How to get the Web Container Properties?
|
Rachelle Berry
Greenhorn
Joined: Sep 23, 2010
Posts: 1
|
|
I made a web container property - "MY_PROP" with a value "1" - using the Glassfish Administration Console. Anyone who knows how to retrieve this property in a Java Code?
I tried creating a ServletContextListener. I assume that it should have the same behavior as adding a context var in web.xml.
But I could not get the value. Hope you can help me with this. THanks!
|
 |
Jaikiran Pai
Marshal
Joined: Jul 20, 2005
Posts: 8145
|
|
I don't know much about Glassfish, but I don't think adding the property through admin console will add it to the java:comp ENC of the web application. How exactly did you add it from the admin console? May be that will give us a hint. Also, have you tried:
|
[My Blog] [JavaRanch Journal]
|
 |
 |
|
|
subject: Glassfish App Server : How to get the Web Container Properties?
|
|
|