According to H2 specifications, the database is automatically created if not exists. Unfortunately jbosscache manages the db and apparently I have no additional control e.g. on commands to launch on creation. I can set H2 options only trough url parameters.
To overcome this, if not possible in other ways, it would be great to have an url parameter like jdbc:h2:~/test;LOB_IN_DATABASE=FALSE in addition to the system property. On Wednesday, September 18, 2013 1:19:07 PM UTC+2, Kartweel wrote: > > I am guessing a bit here. But I think you would have to set it when you > first create the database? > > On 18/09/2013 4:05 PM, Federico Dal Castello wrote: > > Sorry for insisting, but can someone answer to my questions, please? > > Thank you > Federico > > On Friday, September 13, 2013 3:42:57 PM UTC+2, Federico Dal Castello > wrote: >> >> Hello, >> >> I'm trying to configure the database to store LOB objects outside the >> database file. I read the documentation about the h2.lobInDatabase >> property but I haven't been able to disable it in any way (by setting the >> property h2.lobInDatabase=false). So, first of all, is this feature >> still supported? >> >> If the answer is positive, I use H2 as part of jbosscache and therefore >> I do not connect to H2 directly or through its APIs. Connections are >> managed by jbosscache which acts as interface and I think the only way to >> set the property is to specify it in an H2 configuration file or in the >> database URL. To my knowledge this is not possible. Am I correct? Is there >> another way to set that property in my configuration? >> >> Thank you >> Federico >> >> >> -- > You received this message because you are subscribed to the Google Groups > "H2 Database" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] <javascript:>. > To post to this group, send email to [email protected]<javascript:> > . > Visit this group at http://groups.google.com/group/h2-database. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/h2-database. For more options, visit https://groups.google.com/groups/opt_out.
