Hi guys,

Just bumping in here to tell the "whole" story about the needed dependencies.

Here are the reasons for ever neededing any hibernate specific stuff on a "client" side:

1. Managing persistent collections
To track how a collection mutates so when the object comes back to the server
   hibernate can be more efficient when detecting and executing changes.

2. Handle lazy loaded objects
If lazy="true" on a class (it is by default) the object can be a simple proxied shell only containing the id. This allows us to use the object in associations without loading it (e.g. child.setParent(proxiedParent);) and to throw an exception if it is accessed without being previously loaded or in a session (e.g. proxiedParent.getName() goes boom)

#1 does not require proxy libraries AFAIK but I have not tested it.

#2 requires the proxy libraries (in 3.2 either javaassist or cglib), I don't know if it is feasible to generate something that is not dependent on the proxy library and still be able to reassociate it
   when it comes back to the server.

These are important issues that should be handled in Hibernate 3.2 if at all possible. (cc'ed steve)

/max

For the remote proxies and associated aspects yes, but I don't want
proxy stuff leaking for no good reason. A proxy that can only be used to
cause an exception to be thrown is not a good reason to introduce a new
library dependency on the client. If this was already javassist I would
not have a problem since we likely want an aop container on the client.
Leaking asm/cglib is not something I want to have to do.


________________________________

        From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Clebert Suconic
        Sent: Wednesday, February 15, 2006 5:41 PM
        To: jboss-development@lists.sourceforge.net;
jboss-development@lists.sourceforge.net
        Subject: RE: [JBoss-dev] client libraries on EJB3
        
        
        we will need a proxy framework anyways, right?
        
        if we replace cglib by something else (aop, javassist maybe) I
guess it would be the same on that point, and besides it would require
some work.
        
        




--
--
Max Rydahl Andersen
callto://max.rydahl.andersen

Hibernate
[EMAIL PROTECTED]
http://hibernate.org

JBoss Inc
[EMAIL PROTECTED]


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-Development mailing list
JBoss-Development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to