G'day all,
Can someone please advise how to pass init params to a listener? For
example, in my web.xml file I have the following listener currently defined
as:-
<listener>
<listener-class>czone.db.InitConnectionPool</listener-class>
</listener>
At the moment all parameters are hard coded in the listener. If I want to
extend the flexibility of the code by adding init parameters to the listener
definition do I merely do this:-
<listener>
<listener-class>czone.db.InitConnectionPool</listener-class>
<init-param>
<param-name>jdbcConnectionString</param-name>
<param-value>...</param-value>
</init-param>
</listener>
If this is correct then what Java code is required in the
contextInitialized(...) method to pull the init parameter name and value so
the listener can use it?
I really don't have a clue what I'm doing so some guideance on this matter
would be greatly appreciated!
Thanks if you can help.
AB
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]