File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Glassfish App Server : How to get the Web Container Properties?

 
Rachelle Berry
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:

 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic