ObjectDB ObjectDB

Programatic configuration or configuration file loaded from classpath or file

#1

Hi!

I found information about the configuration of ObjectDB: https://www.objectdb.com/java/jpa/setting. However, I have a dynamic environment and don't want to place the configuration file in the filesystem. I would like to enable the level2 cache for all entities: https://www.objectdb.com/java/jpa/setting/entities#The_cache_element

a) Is it possible to configure this programmatically?

b) Is it possible to place the configuration file in my own jar and have it loaded by classloader?

If one or both are possible, could you please give some examples?

Thanks a lot!

edit
delete
#2

a) Is it possible to configure this programmatically?

Unfortunately not, it must be read from the configuration file.

b) ) Is it possible to place the configuration file in my own jar and have it loaded by classloader?

You may replace the embedded default objectdb.conf in the objectdb.jar, which is loaded as a resource and used when no external objectdb.conf is found, with your own objectdb.conf.

ObjectDB Support
edit
delete

Reply

To post on this website please sign in.