[jboss-dev-forums] [Design of EJB 3.0] - Move *HibernateSession to a Proxy implementation

epbernard do-not-reply at jboss.com
Thu Mar 22 02:04:15 EDT 2007


I am trying to implement http://jira.jboss.com/jira/browse/EJBTHREE-714 and avoid too tight dependency between the container and Hibernate.

I would like to use a proxy based implementation for TransactionScopedHibernateSession, ExtendedHibernateSession rather than a tradtional implementation approach. It will avoid breakage when a method is added to either 
org.hibernate.classic.Session.class
org.hibernate.engine.SessionImplementor.class
org.hibernate.jdbc.JDBCContext.Context.class
org.hibernate.event.EventSource.class

I am looking for something similar to http://fisheye.jboss.org/browse/Hibernate/branches/Branch_3_2/Hibernate3/src/org/hibernate/context/ThreadLocalSessionContext.java?r=10125
method #wrap()

Does anyone see something bad in this strategy?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030473#4030473

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030473



More information about the jboss-dev-forums mailing list