aspose file tools
The moose likes Other Java Products and Servers and the fly likes Glassfish App Server : How to get the Web Container Properties? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » Other Java Products and Servers
Reply Bookmark "Glassfish App Server : How to get the Web Container Properties?" Watch "Glassfish App Server : How to get the Web Container Properties?" New topic
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
    
  52

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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Glassfish App Server : How to get the Web Container Properties?
 
Similar Threads
defining/exporting environement variables from tomcat server
Pass parameter dynamically in Javascript in html:select
using spring expressions
glassfish source code
HTML validation with struts tags