Hello:

I am attempting to write information to a database using a connection
obtained through a dataSource.
Could anyone provide the best approach to write to a database from a session
listener.

I have attempted retrieving the datasource from the servlet context using
the following code snippet within my session listener

        DataSource dataSource = (DataSource)
servletContext.getAttribute(Action.DATA_SOURCE_KEY);

        listener cannot find the dataSource stored in the context.

Help!

Sincerely,


Paul Idusogie

Email: [EMAIL PROTECTED]


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to