--- Mikkel Heisterberg <[EMAIL PROTECTED]> wrote: > So in other words the only way to obtain this kind > of functionality easily > would be a ServletContextListener which would get a > reference to the > connection pool from JNDI and then close the > connection pool, or using > some other (probably application server specific) > life-cycle extension to > make sure the connection pool is properly closed. > > Bummer. > > P.S.: I guess changing the connection pool from > being instantiated and put > in JNDI from a MBean instead of a Resource would > also work. > > Thanks. > > > Med venlig hilsen / Best regards, > > Mikkel Heisterberg Or since you have your own API just call the method directly from the listener. No need for JNDI unless you are storing your reference already in JNDI. Just use some sort of a static instance or static factory. That would be the simpler way, and would work in any servlet container meeting the spec you are using (2.2, 2.3, etc)
Wade --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
