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]



Reply via email to