Possible to set an env-entry to null in my web.xml file?
Joined: Jul 02, 2008
I'm using JBoss 5.1, Java 1.6 on Mac 10.5.6. I have a web application and I was wondering if it possible to set an env-entry to null? Currently I have this in my web.xml file ...
But with this set up, looking up "my.entry" in the context returns an empty string, and I would prefer it to return null. I also don't want to remove the env-entry because then I will get a NameNotFoundException if try and look up my.entry.
I would love to implement one of your suggestions but I'm dealing with code that is not my own and it requires that I get a null value in for the environment entry. I know this is a hard question, but is it possible to do what I'm asking? If not, just let me know.