Re: cancel proxying for custom request

Armin Waibel <[email protected]> Fri, 27 Jul 2007 02:25:55 +0200
Newsgroups gmane.comp.jakarta.ojb.user
Message-ID <[email protected]>
Hi,

Maxim Kuleshov wrote:
> Hello!
> 
> Most of the times I prefer to use proxying of collections, but in 
> contrast, for certain requests I need no proxying at all.
> 
> Is there any method to create such custom query?

Sorry no. The proxy setting are global and changes will affect all other 
threads/user too.
The thing that comes to my mind is to use different repository mapping 
profiles (one with proxy enabled, other with proxy settings disabled). 
Then load the none proxy mapping profile, lookup the PB instance, 
perform the query, close the PB, reset the default mapping profile.

http://db.apache.org/ojb/docu/guides/metadata.html#Per+thread+metadata+changes
http://db.apache.org/ojb/docu/guides/metadata.html#Object+metadata+profiles


regards,
Armin

> 
> Thanks in advance.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
>