Refresh="true" tells OJB to refresh the reference (or collection) from
the database.  So if you have a cyclical object graph and you make all
your reference and collection descriptors refresh=true, you have
configured OJB to create an infinite loop.

Remove the refresh attribute on at least one node of the object graph
cycle.

Wally

-----Original Message-----
From: Nadir Timanga [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 05, 2004 10:32 AM
To: [EMAIL PROTECTED]
Subject: RE: Possible circular reference BUG


Hye,

    Thanks for your quick reply. I'm using default cache implementation
and 
I always map references and collections using the following syntax:

<....>

<reference-descriptor name="group"
                               class-ref="domain.Group"
                               proxy="true"
                       refresh="true" >
          <foreignkey field-ref="keyGroup"/> </reference-descriptor>

<collection-descriptor name="simpleCars"
                              auto-retrieve="true"
                              refresh="true"
                              proxy="true"
                              element-class-ref="domain.SimpleCar" >
       <inverse-foreignkey field-ref="keyUser"/>
</collection-descriptor>


<...>




Thanks,
Nadir


>From: Mahler Thomas <[EMAIL PROTECTED]>
>Reply-To: "OJB Users List" <[EMAIL PROTECTED]>
>To: "'OJB Users List'" <[EMAIL PROTECTED]>
>Subject: RE: Possible circular reference BUG
>Date: Fri, 5 Mar 2004 16:29:27 +0100
>
>Which cache implementation are you using?
>how are your reference- and collection-descriptors defined?
>
>Thomas
>
> > -----Original Message-----
> > From: Nadir Timanga [mailto:[EMAIL PROTECTED]
> > Sent: Friday, March 05, 2004 3:56 PM
> > To: [EMAIL PROTECTED]
> > Subject: Possible circular reference BUG
> >
> >
> > Hye,
> >     I'm using PB API and I'm getting stack overflow when I have the 
> > following
> > associations:
> >
> >     A -> B -> C -> A
> >
> > P.S.: "X -> Y" means X has one or more references to Y
> >
> > Thanks,
> > Nadir
> >
> > _________________________________________________________________
> > Help STOP SPAM with the new MSN 8 and get 2 months FREE* 
> > http://join.msn.com/?page=features/junkmail
> >
> >
> > --------------------------------------------------------------------
> > -
> > 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]
>

_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail


---------------------------------------------------------------------
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