I use OJB proxy to leverage lazy loading. I use OJB for O/R data binding. I did use Castor JDO for that, but had memory problems and switched to OJB a month ago. Sorry.


Bruce Snyder wrote:

This one time, at band camp, g r i t s e n k o said:

gritse>I tried, cast gives CastException. But conceptually, this is the right
gritse>ide, to convert proxy to real class and then marshall. Only conversion
gritse>may be not necessarily casting. It can be copying property by property
gritse>with getters and setters, from proxy properties, to real class properties.

If the proxy is a true proxy, casting it to Resume should be
completely legal. The fact that you recevied this error tells me
that the proxy class is not a true proxy (ala java.lang.reflect.Proxy).
And while we're on the topic, I'm also still curious as to why
you're using the OJB proxy. Why not just make use of
java.lang.reflect.Proxy on your own?

Bruce
--
perl -e 'print unpack("u30","<0G)[EMAIL PROTECTED]&5R\"F9E<G)E=\$\!F<FEI+F-O;0\`\`");'

The Castor Project
http://www.castor.org/

Apache Geronimo
http://incubator.apache.org/projects/geronimo.html

----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev




----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev




Reply via email to