db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gabriele Kahlout <gabri...@mysimpatico.com>
Subject Re: Hanging around derby.log, how to center it?
Date Sun, 14 Mar 2010 15:46:35 GMT
I've added the following lines of code in my db init, but they still
didn't make a difference:

System.setProperty("derby.stream.error.filederby.stream.error.file",
dir.getPath() + File.separator + "derby.log");
System.setProperty("derby.system.home", dir.getPath() );


2010/3/13, Bernt M. Johnsen <Bernt.Johnsen@sun.com>:
> Hi again,
>
> FYYI: The logDevice is not the derby.log file, but the database log
> where the database transactions are logged wrt e.g. database recovery
> (which is something completely different than the textual derby.log)
>
>>>>>>>>>>>>> Gabriele Kahlout wrote (2010-03-13 12:23:37):
>> Hello,
>>
>> I've developed an application with Java DB, and in the setup i let the
>> user choose where to save the db folder. However i've noticed that the
>> derby.log will hang around, at the user desktop.
>>
>> I've came across this: logDevice=logDirectoryPath
>> So I thought of editing the creating string to:
>>
>> DriverManager.getConnection("jdbc:derby:"+parentPath + File.separator
>> +"db.sqlwrapper;create="+ create + ";logDevice="+parentPath);
>> However, this only made things worse. The derby.log file still hanged
>> around, and now an extra log folder is added outside db.sqlwrapper.
>> So how can I get rid of this derby.log being created, or at most (and
>> perhaps at best) be located in the same directory as db.sqlwrapper is?
>>
>>
>> --
>> Regards,
>> K. Gabriele
>>
>> --- unchanged since 25/1/10 ---
>> P.S. Unless a notification (LON), please reply either with an answer
>> OR with " ACK" appended to this subject within 48 hours. Otherwise, I
>> might resend.
>> In(LON, this) ∨ In(48h, TimeNow) ∨ ∃x. In(x, MyInbox) ∧ IsAnswerTo(x,
>> this) ∨ (In(subject(this), subject(x)) ∧ In(ACK, subject(x)) ∧
>> ¬IsAnswerTo(x,this)) ⇒ ¬IResend(this).
>>
>> Also note that correspondence may be received only from specified a
>> priori senders, or if the subject of this email ends with a code, eg.
>> -LICHT01X, then also from senders whose reply contains it.
>> ∀x. In(x, MyInbox) ⇒ In(senderAddress(x), MySafeSenderList) ∨ (∃y.
>> In(y, subject(this) ) ∧ In(y,x) ∧ isCodeLike(y, -LICHT01X) ).
>


-- 
Regards,
K. Gabriele

--- unchanged since 25/1/10 ---
P.S. Unless a notification (LON), please reply either with an answer
OR with " ACK" appended to this subject within 48 hours. Otherwise, I
might resend.
In(LON, this) ∨ In(48h, TimeNow) ∨ ∃x. In(x, MyInbox) ∧ IsAnswerTo(x,
this) ∨ (In(subject(this), subject(x)) ∧ In(ACK, subject(x)) ∧
¬IsAnswerTo(x,this)) ⇒ ¬IResend(this).

Also note that correspondence may be received only from specified a
priori senders, or if the subject of this email ends with a code, eg.
-LICHT01X, then also from senders whose reply contains it.
∀x. In(x, MyInbox) ⇒ In(senderAddress(x), MySafeSenderList) ∨ (∃y.
In(y, subject(this) ) ∧ In(y,x) ∧ isCodeLike(y, -LICHT01X) ).

Mime
View raw message