On Sat, Jan 10, 2009 at 12:58 AM, Piero Sartini <[email protected]> wrote:
> I just don't understand how to use the JdbmEntity store.
> If adding the JdbmEntityStoreService, he tells me I need some kind of
> Configuration. Is there some documentation available how to set this up?
>
> just creating a org/qi4j/entitystore/jdbm/JdbmEntityStoreService.properties
> (file=/path/to/file ) seems not enough.

Yes, but it must be available on the classpath's reach, i.e. either in
your application's Jar file, or having a classpath reference to the
file system.

See 
https://scm.ops4j.org/repos/ops4j/projects/qi4j/extensions/entitystore-jdbm/src/test/resources/org/qi4j/entitystore/jdbm/JdbmEntityStoreService.properties
for content.

'file' is actually 'incorrect' since it refers to a name, where .data
and .lg will be added to that name.

'turboMode' is somewhat experimental. It disables certain aspects of
Java serialization which we think is not needed and only slows
serialization down. Use "true" with caution.

> Next I tried the MemoryEntityStoreService - now it works, I am able to persist
> entities... at least it does not throw an exception ;) Now I want to query
> them, but qi4j needs an EntityFinder:
> No EntityFinder has been declared in the assembly of the application.
>
> Where do I find such an EntityFinder?

Yes, you need to add an indexing/querying subsystem, and at the moment
there is only one. I would recommend that in your module assembly put
in;

import org.qi4j.entity.index.rdf.assembly.RdfNativeSesameStoreAssembler;

module.addAssembler( new RdfNativeSesameStoreAssembler() );


I guess I have long hours of documentation ahead of me :-(

Cheers
Niclas

_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to