Hi Sumedha,

On Thu, Oct 7, 2010 at 7:55 AM, Sumedha Rubasinghe <sume...@wso2.com> wrote:

> I think we made this default in the previous version. So that we did not
> have to give this in the URL itself.
>
It is there in the last release as well, I guess. What would be the solution
for this ? Do we have to dig in to H2 source ?

Lahiru

> /sumedha
>
> On Thu, Oct 7, 2010 at 8:21 AM, Afkham Azeez <az...@wso2.com> wrote:
>
>> Yeah, that does the trick! If we are creating H2 connections from within
>> Carbon components, we should always append this to the URL.
>>
>> Azeez
>>
>>
>>
>>
>> On Thu, Oct 7, 2010 at 8:15 AM, Afkham Azeez <az...@wso2.com> wrote:
>>
>>> May be adding ;DB_CLOSE_ON_EXIT=FALSE to the URL should work as
>>> indicated in this message. I will try it and let you know,
>>>
>>> Thanks
>>> Azeez
>>>
>>>
>>>
>>> On Thu, Oct 7, 2010 at 7:55 AM, Afkham Azeez <az...@wso2.com> wrote:
>>>
>>>> When we do a ctrl+c while services are being deployed, I'm getting the
>>>> following exception because, it seems that a shutdown hook in H2 is 
>>>> shutting
>>>> down the DB, before we can initiate the graceful shutdown procedure:
>>>>
>>>>
>>>> [2010-10-07 07:52:45,257] ERROR
>>>> {org.wso2.carbon.registry.core.jdbc.dao.JDBCPathCache} -  Failed to
>>>> retrieving resource from
>>>> /_system/config/repository/axis2/service-groups/pojoinheritedbeans/services/PojoBeaninheritance/bindings/PojoBeaninheritanceHttpBinding/operations/getNumber.
>>>> Database is already closed (to disable automatic closing at VM shutdown, 
>>>> add
>>>> ";DB_CLOSE_ON_EXIT=FALSE" to the db URL) [90121-112]
>>>> org.h2.jdbc.JdbcSQLException: Database is already closed (to disable
>>>> automatic closing at VM shutdown, add ";DB_CLOSE_ON_EXIT=FALSE" to the db
>>>> URL) [90121-112]
>>>> at org.h2.message.Message.getSQLException(Message.java:107)
>>>>  at org.h2.message.Message.getSQLException(Message.java:118)
>>>> at org.h2.message.Message.getSQLException(Message.java:77)
>>>>  at org.h2.message.Message.getSQLException(Message.java:153)
>>>> at org.h2.jdbc.JdbcConnection.checkClosed(JdbcConnection.java:1289)
>>>>  at org.h2.jdbc.JdbcStatement.checkClosed(JdbcStatement.java:879)
>>>> at
>>>> org.h2.jdbc.JdbcPreparedStatement.checkClosed(JdbcPreparedStatement.java:1417)
>>>>  at org.h2.jdbc.JdbcStatement.checkClosed(JdbcStatement.java:854)
>>>> at
>>>> org.h2.jdbc.JdbcPreparedStatement.setParameter(JdbcPreparedStatement.java:1222)
>>>>  at
>>>> org.h2.jdbc.JdbcPreparedStatement.setString(JdbcPreparedStatement.java:314)
>>>> at
>>>> org.apache.commons.dbcp.DelegatingPreparedStatement.setString(DelegatingPreparedStatement.java:132)
>>>>  at
>>>> org.wso2.carbon.registry.core.jdbc.dao.JDBCPathCache.getPathID(JDBCPathCache.java:213)
>>>>
>>>>
>>>> --
>>>> *Afkham Azeez*
>>>> Senior Software Architect & Senior Manager; WSO2, Inc.; http://wso2.com
>>>> ,
>>>> *
>>>> *
>>>> *Member; Apache Software Foundation; 
>>>> **http://www.apache.org/*<http://www.apache.org/>
>>>> *
>>>> email: **az...@wso2.com* <az...@wso2.com>* cell: +94 77 3320919
>>>> blog: **http://blog.afkham.org* <http://blog.afkham.org>*
>>>> twitter: 
>>>> **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez>
>>>> *
>>>> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
>>>> *
>>>> *
>>>> *Lean . Enterprise . Middleware*
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> *Afkham Azeez*
>>> Senior Software Architect & Senior Manager; WSO2, Inc.; http://wso2.com
>>> ,
>>> *
>>> *
>>> *Member; Apache Software Foundation; 
>>> **http://www.apache.org/*<http://www.apache.org/>
>>> *
>>> email: **az...@wso2.com* <az...@wso2.com>* cell: +94 77 3320919
>>> blog: **http://blog.afkham.org* <http://blog.afkham.org>*
>>> twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez>
>>> *
>>> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
>>> *
>>> *
>>> *Lean . Enterprise . Middleware*
>>>
>>>
>>
>>
>> --
>> *Afkham Azeez*
>> Senior Software Architect & Senior Manager; WSO2, Inc.; http://wso2.com,
>> *
>> *
>> *Member; Apache Software Foundation; 
>> **http://www.apache.org/*<http://www.apache.org/>
>> *
>> email: **az...@wso2.com* <az...@wso2.com>* cell: +94 77 3320919
>> blog: **http://blog.afkham.org* <http://blog.afkham.org>*
>> twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez>
>> *
>> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
>> *
>> *
>> *Lean . Enterprise . Middleware*
>>
>>
>> _______________________________________________
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
> _______________________________________________
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
Lahiru Gunathilake
Senior Software Engineer - WSO2 Inc. www.wso2.com

Email:lah...@wso2.com <email%3alah...@wso2.com> Blog: www.lahiru.org
Mobile: +94716381143

Lean . Enterprise . Middleware
_______________________________________________
Carbon-dev mailing list
Carbon-dev@wso2.org
https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to