On 6/14/06, Joose Vettenranta <[EMAIL PROTECTED]> wrote:

I want to use generic proxy for "lazy loading" 1:n connections.

Say I have class Foo

Do I need to have also Interface for class Foo to make proxy to work?

Say like Interface IntFoo

or does the generic proxy thingie work without that custom Interface?

For standard JDK proxies, yes, you need to have an interface to make
them work. However, recent OJB versions also support cglib proxies
which can be used for classes too, I think.
To use them, you have to change the proxy factory in OJB.properties:

ProxyFactoryClass=org.apache.ojb.broker.core.proxy.ProxyFactoryCGLIBImpl

Tom

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

Reply via email to