Just a note on p6spy which may, or may not, be relevant : I've often had
problems with processes finding the p6spy.properties file - it always seems
to work for me if the file is in the "current" directory when the process
starts.

So, for tomcat, for example, it seems to read the file from
jakarta-tomcat-blah\bin

It *doesn't* seem to be read from the classpath.

This is not definitive, just something I recall from the dusty dank archives
of my brain. Please treat with the appropriate amount of disdain.

Cheers,

Charles.


-----Original Message-----
From: Bobby Lawrence [mailto:[EMAIL PROTECTED]
Sent: 16 May 2005 15:21
To: OJB Users List
Subject: Re: P6Spy config


I have only used one appender at a time, and I assume that the 
spy.properties file is used because OBJ does go to the correct database, 
even when I tell it to use the P6Spy driver.
I just see no logging...


Armin Waibel wrote:

> Hi,
>
> is the spy.properties file used (you have access to your DB)?
> Did you only enable *one* appender at a time? Did your appServer show 
> logging to stdout?
>
> regards,
> Armin
>
> [EMAIL PROTECTED] wrote:
>
>> Ok -
>> Still no P6Spy logging...
>> I have used both appenders (File and StdOut), but nothing.
>> I have the spy.properties file in my EJB Jar, which is deployed 
>> inside an
>> EAR.  The OJB lib is in my EAR along with the EJBs.
>> Any ideas?
>>
>>
>>
>>> Bobby Lawrence wrote:
>>>
>>>> Damn -
>>>> Thanks Armin.  I have been ripping out my hair trying to figure 
>>>> this one
>>>> out.
>>>> I appreciate it.
>>>> I guess I will have to change my implementation.
>>>> Also - for some reason, I can't get the P6Spy stuff to work either...
>>>> I have that listed as my driver, and I have the spy.properties file
>>>> containing my realdriver class, but I get no debugging statements...
>>>> Any idea?
>>>
>>>
>>> If you use the spy.properties file shipped with OJB all sql will be
>>> logged in a file call "spy.log". You can change the 'appender' in
>>> spy.properties file.
>>> Recommend to use the patched version p6spy shipped with OJB (this
>>> version only log the sql queries without result sets).
>>>
>>> regards,
>>> Armin
>>>
>>>
>>>
>>>> --Bobby
>>>>
>>>> Armin Waibel wrote:
>>>>
>>>>
>>>>> Hi Bobby,
>>>>>
>>>>> Bobby Lawrence wrote:
>>>>>
>>>>>
>>>>>> OK - This is frustrating...
>>>>>> OJB will NOT delete objects in the database that are no longer in my
>>>>>> collection.
>>>>>> I have an object that stores an array of other objects as a
>>>>>> collection-reference.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Using an Array as collection reference is completely different from
>>>>> using a java-Collection. In the second case OJB can take care of
>>>>> removed objects when using e.g. RemovalAwareCollection/List for
>>>>> Collection/List fields. When using arrays this is not possible.
>>>>> (in contrast to the odmg-api, the PB-api doesn't track object
>>>>> modifications, so to notice removed objects a specific collection
>>>>> implementation is needed for collection-reference fields).
>>>>> Sorry I didn't notice that you are using an array before this post.
>>>>>
>>>>> regards,
>>>>> Armin
>>>>>
>>>>>
>>>>>
>>>>>> The collection-descirptor has attributes auto-update="object",
>>>>>> auto-delete="object".
>>>>>> Now, when I remove objects from the array in the parent and call
>>>>>> PersistenceBroker.store(parent), the objects that were in my array%0
>>>>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

-- 
----------------------------
Bobby Lawrence
MIS Application Developer

Jefferson Lab (www.jlab.org)

 Email: [EMAIL PROTECTED]
Office: (757) 269-5818
 Pager: (757) 584-5818
----------------------------





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



___________________________________________________________
HPD Software Ltd. - Helping Business Finance Business
Email terms and conditions: www.hpdsoftware.com/disclaimer 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to