Thank you for the quick answer Tom,

I looked at the URL you sent me, but I dont know enough the internals of
OJB to understand the message. I went a little further : I tried to get the
Persistence Broker from the transaction and to execute a good old OJB
QueryByCriteria : the late binding works.

Besides that, I am not sure that the problem is only with the collection
proxy. I have also tried with single-object dynamic proxies and the same
result (returns already materialized proxies).

Wish you a happy week-end

Stefano





|---------+--------------------------->
|         |           Thomas Dudziak  |
|         |           <[EMAIL PROTECTED]|
|         |           .de>            |
|         |                           |
|         |           11.06.2004 17:25|
|         |           Veuillez        |
|         |           r�pondre � "OJB |
|         |           Users List"     |
|         |                           |
|---------+--------------------------->
  
>----------------------------------------------------------------------------------------------------------------------|
  |                                                                                    
                                  |
  |        Pour :   OJB Users List <[EMAIL PROTECTED]>                                 
                             |
  |        cc :                                                                        
                                  |
  |        Objet :  Re: My proxies do not make late binding                            
                                  |
  
>----------------------------------------------------------------------------------------------------------------------|




On Fri, 11 Jun 2004 [EMAIL PROTECTED] wrote:

> I have a problem : even if I define proxy for a connection, OJB reads the
> linked objects immediately.
>
> Explanation : I have a class Dossier, wich is the entry point of my
> application. This class is mapped to a DB2 table called TMPDOSSIER. Each
> dossier has a collection of Prestation. Prestation is an abstract class
> with two concrete subclasses called Apg and IJ. Both are mapped to the
same
> table TMPPREST. The collection has proxy="true".
>
> When I read an instance of Dossier and look the result with my debugger,
I
> can see that the collection is of type
> org.apache.ojb.broker.accesslayer.ListProxy, but that all elements are
> alraedy instatiated, even before I access Dossier from the result list of
> the query.
>
> I wonder : what am I doing wrong ?

The problem lies with the collection proxy right ? Well, I think that the
OJB version you're using does not support collection proxies for ODMG. You
should try CVS because I think Brian added a patch for that:

http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]&msgNo=7497


Tom


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