If you run into errors, please make sure to include the exceptions in the 
e-mail.

Verbal descriptions are sometimes hard to follow without having the code and 
the environment.

You mean you take the same program and exchange the code line to use 
EmbeddedReadOnlyGraphDb ?

Why do you do that? Why don't you create a second program that uses 
EmbeddedReadOnlyGraphDb, you can't
do modifying operations anyway.

Cheers

Michael

Am 21.07.2011 um 06:12 schrieb cyuczi eekc:

> It is not necessary however your reply made me retest, and it works as it
> were, but it only shows that error, if, I run the program with
> EmbeddedGraphDatabase and put it in an 100 second sleep(so that it keeps the
> database open), and then I change it to EmbeddedReadOnlyGraphDatabase and
> run it again as second program (while first is already running as
> EmbeddedGraphDatabase). In this case, this second program shows that error.
> If I run both programs with EmbeddedReadOnlyGraphDatabase, the exact thing
> happens :)
>  I guess it's the way the second program complains that the index (and/or
> the database, since it's in the same path) is already in use by the first
> program.
> 
> On Thu, Jul 21, 2011 at 6:03 AM, Michael Hunger <
> [email protected]> wrote:
> 
>> Probably you have to add that for the other project too ?
>> 
>> Am 21.07.2011 um 05:57 schrieb cyuczi eekc:
>> 
>>> Thanks Michael, that is good to know...
>>> I would've tried that right now, for tests, but unfortunately I get that
>>> silly error "No index provider 'lucene' found", but only when using
>>> EmbeddedReadOnlyGraphDatabase, not EmbeddedGraphDatabase. Perhaps it
>> would
>>> be worth mentioning that in order to not get the error for
>>> EmbeddedGraphDatabase, I had to add the folder
>>> ".\lucene-index\src\main\resources\" to classpath, since I am not using
>> any
>>> .jars, instead I'm using the source files directly from github (in
>> eclipse)
>>> 
>>> regarding my topic, I am reading this currently:
>>> http://wiki.neo4j.org/content/Using_the_Neo4j_Server_with_Java
>>> but it seems a bit messy, so I will probably limit myself to using
>> embedded
>>> database for now :)
>>> 
>>> 
>>> 
>>> On Thu, Jul 21, 2011 at 5:44 AM, Michael Hunger <
>>> [email protected]> wrote:
>>> 
>>>> If you want to have a "read-only-snapshot" view of the database you can
>>>> also use
>>>> 
>>>> new EmbeddedReadOnlyGraphDatabase(path);
>>>> 
>>>> Cheers
>>>> 
>>>> Michael
>>>> 
>>>> Am 21.07.2011 um 05:31 schrieb Jim Webber:
>>>> 
>>>>> Hi Cyuczi,
>>>>> 
>>>>> You can't open the same database twice in two programs. If you want
>> data
>>>> to be replicated between Neo4j instances, look into HA:
>>>>> 
>>>>> http://docs.neo4j.org/chunked/stable/ha-how.html
>>>>> http://wiki.neo4j.org/content/High_Availability_Cluster
>>>>> 
>>>>> Jim
>>>>> _______________________________________________
>>>>> Neo4j mailing list
>>>>> [email protected]
>>>>> https://lists.neo4j.org/mailman/listinfo/user
>>>> 
>>>> _______________________________________________
>>>> Neo4j mailing list
>>>> [email protected]
>>>> https://lists.neo4j.org/mailman/listinfo/user
>>>> 
>>> _______________________________________________
>>> Neo4j mailing list
>>> [email protected]
>>> https://lists.neo4j.org/mailman/listinfo/user
>> 
>> _______________________________________________
>> Neo4j mailing list
>> [email protected]
>> https://lists.neo4j.org/mailman/listinfo/user
>> 
> _______________________________________________
> Neo4j mailing list
> [email protected]
> https://lists.neo4j.org/mailman/listinfo/user

_______________________________________________
Neo4j mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to