Thanks all for the valuable suggestions.
Following method worked for me:
Connection con = DriverManager.getConnection("jdbc:neo4j://localhost:7474/"
);

-Sukaant Chaudhary
<http://in.linkedin.com/pub/sukaant-chaudhary/33/ba8/479>

On Tue, Jan 20, 2015 at 3:40 PM, Chris Vest <[email protected]>
wrote:

> I think the JDBC driver tries to start an embedded Neo4j database when you
> point it directly at the graph.db files. You should instead point it at the
> server URL, similar to what you do with the REST client. Then they’ll both
> go through the server.
>
> So you should ask the JDBC driver for connections in a manner similar to
> this: Connection con = DriverManager.getConnection("
> jdbc:neo4j://localhost:7474/"); according to this page:
>
> https://github.com/neo4j-contrib/developer-resources/tree/gh-pages/language-guides/java/jdbc/
>
> Here’s some more documentation on the driver:
> https://github.com/neo4j-contrib/neo4j-jdbc#minimum-viable-snippet
>
> --
> Chris Vest
> System Engineer, Neo Technology
> [ skype: mr.chrisvest, twitter: chvest ]
>
>
> On 20 Jan 2015, at 10:59, Sukaant Chaudhary <[email protected]>
> wrote:
>
> Lasse,
> Thanks for your reply.
> My problem is on of my application is developed using REST and other is
> developed using Cypher JDBC and both of them are using the same db. How can
> I access the same db for both the situations.
> Please help.
>
> -Sukaant Chaudhary
> <image004.png> <http://in.linkedin.com/pub/sukaant-chaudhary/33/ba8/479>
>
> On Tue, Jan 20, 2015 at 2:16 PM, Lasse Westh-Nielsen <
> [email protected]> wrote:
>
>> Hey Sukaant,
>>
>> You can't do that, because you really shouldn't do that.
>>
>> Those files are owned by the server process and should not be accessed
>> concurrently with the server, as that might cause all sorts of bad things.
>>
>> What is it you want to do?
>>
>>
>>
>>
>> On Tue, Jan 20, 2015 at 9:25 AM, Sukaant Chaudhary <
>> [email protected]> wrote:
>>
>>> Hi,
>>> I'm trying to access graph.db folder in neo4j using Cypher JDBC when the
>>> neo4j server is started, but I'm getting error that it is in use.
>>>
>>> Please help me how to run both simultaneously.
>>>
>>> -Sukaant Chaudhary
>>> <image004.png> <http://in.linkedin.com/pub/sukaant-chaudhary/33/ba8/479>
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Neo4j" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Neo4j" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Neo4j" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Neo4j" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to