You can write a Maven goal in maven.xml that issues the SHUTDOWN
command to the database (see sql ant task) , so you can call maven
shutdown and close the db.
<sql
driver="org.database.jdbcDriver"
url="jdbc:database-url"
userid="sa"
password="pass"
>
SHUTDOWN;
</sql>
or maybe you can extend the Spring listener (or add another one to
web.xml) to issue that command when the webapp is unloaded.
Regards
Carlos Sanchez
On 5/26/05, Sebastien Arbogast <[EMAIL PROTECTED]> wrote:
> Actually I found out how to access my JDBC connection and I wrote the
> corresponding code but it appeared to be useless because my close()
> method was simply not called at all.
> So I'll give up with that as I have many other more important things
> to achieve on that project. For now I'll just restart the whole server
> every time and that's it...
>
> Anyway I sincerely thank you all for your help, despite the fact that
> this thread was not directly linked with maven.
>
> Bye
>
> --
> Sebastien ARBOGAST
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]