T
Todd Peterson
I have created a class that implements ServletContextListener and
NotificationListener and would like to read in some parameters out of
the web.xml file... These parameters will vary across environments,
so I will probably have some ANT "filters" that will populate the
web.xml file, utilizing a .properties file, when an ANT build is
performed.
I have tried to read "<init-param>" parameters from the ServletContext
to no avail. I've peeked at the BEA documentation, which discusses
defining a Listener object, but doesn't explain how to provide config
information for it through the web.xml file.
I would like to avoid, if at all possible, creating a separate config
file as I don't want to maintain different config files for my
development, test and production environments.
Any suggestions would be greatly appreciated!
p.s. I'm somewhat of a newbie, so please be gentle... ;-)
NotificationListener and would like to read in some parameters out of
the web.xml file... These parameters will vary across environments,
so I will probably have some ANT "filters" that will populate the
web.xml file, utilizing a .properties file, when an ANT build is
performed.
I have tried to read "<init-param>" parameters from the ServletContext
to no avail. I've peeked at the BEA documentation, which discusses
defining a Listener object, but doesn't explain how to provide config
information for it through the web.xml file.
I would like to avoid, if at all possible, creating a separate config
file as I don't want to maintain different config files for my
development, test and production environments.
Any suggestions would be greatly appreciated!
p.s. I'm somewhat of a newbie, so please be gentle... ;-)