Sure, here it is.

*@Bean*
*  public DataSource getDataSource() {*

*    BasicDataSource dataSource = new BasicDataSource();*
*    dataSource.setDriverClassName("org.h2.Driver");*
*
dataSource.setUrl("jdbc:h2:mem:refimpldb;MODE=MYSQL;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE;");*
*    dataSource.setUsername("admin");*
*    dataSource.setPassword("admin");*
*    return dataSource;*
*  }*

*I am using the org.apache.commons.dbcp2.BasicDataSource.*

On Tue, Sep 25, 2018 at 5:40 PM Julian Reschke <[email protected]>
wrote:

> On 9/25/2018 1:51 PM, rajesh wrote:
> > Hi,
> >
> > I am using Jackrabbit oak 1.8.7 version. It is working fine with the
> > SegmentNodeStore, MongoDocumentNodeStore but when I tried with
> > RDBDocumentNodeStore, it is failing with the java.sql.SqlException
> > Datasource is closed.
> > ...
>
> I hwven't tried the EmbeddedH2Server option. Can you share the code that
> you use to get the datasource?
>
>  > ...
>
> Best regards, Julian
>


-- 

*Regards*

*Rajesh.M | Skava*

Tidel Park, Coimbatore, India

-- 


This
email message, including attachments, may contain confidential 
and/or
privileged information and/or material.  If you receive this message 
in
error, please notify the sender and delete it from your mailbox and 
system
immediately.  Any review, retransmission, dissemination or other use 
of,
or taking any action in reliance upon, this message, by anyone other 
than the
intended recipient, is not authorized.  The sender disclaims all 
liability
from unauthorized use.  Skava is a private company incorporated 
in
California as Kallidus, Inc.  This communication may come from Skava or

one of its affiliates.

Reply via email to