Hi.

I'm trying to use JDBM for persistence. It is working except that whenever you restart the application, the data is overwritten. It seems like a "create-drop" setting for it.

The assembler code:
module.addServices(JdbmEntityStoreService.class, UuidIdentityGeneratorService.class).visibleIn(Visibility.application);

The activation:
        public void activate() throws Exception
        {
UnitOfWork uow = uowf.newUnitOfWork(UsecaseBuilder.newUsecase("Service configuration")); String jdbmPath = new File(config.dataDirectory(), "streamflow").getAbsolutePath(); uow.newEntity(JdbmConfiguration.class, "JdbmEntityStoreService").file().set(jdbmPath);
            uow.complete();
        }

So every time you restart the application, you have enter you settings again. Not really user friendly :(


Any suggestions are appreciated,
Regards,
Mads

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

Reply via email to