rutherford wrote:
This may be more of a j2ee question than a Hibernate question, but I have a method (listed below) that returns a very large object that has hundreds of child objects creating a large object of 10-15 mb that is returned of the network through a ejb remote call. Unfortunately, Lazy initialization is not an option for me. Could anyone help me figure out how to compress this object prior to returning it over the network.
Thanks,
Rutherford
Hibernate version: 2.1.3
Code between sessionFactory.openSession() and session.close():
public Trial openTrial(Long trial_id) throws HibernateException {
Trial trial = null;
Session session = sessionFactory.openSession();
try {
trial = (Trial)session.load(Trial.class, trial_id);
} catch (HibernateException he) {
throw he;
} finally {
session.close();
}
return trial;
}
Database: Oracle 8i
try to create a new implementation of the serializable method. I don't know how exactly, try to look around marshalling/demarshalling api, compression algorithms , etc...