PDA

View Full Version : CMT, Spring, and Hibernate on WebSphere 5.1



ChristophM
Nov 9th, 2005, 09:01 AM
Is it possible, to use CMT without Spring TransactionProxyFactoryBean interception, while retaining the JTA context also over the Hibernate managed objects? I am wondering if I could do without registering a Spring TransactionManager at all, since I have the CMT-context anyway.

The following szenario shows the sequence:

EJB Session Bean with "TX_REQUIRED" -> POJO-Service -> Dao which implements HibernateDaoSupport

Thank you for any hint.
Chris

yuanji
Jan 27th, 2006, 10:52 AM
Of course you can. I did that in my project. Although I was bit by LazyInitializationException yesterday when I deployed SLSB to WS5.1, after applying HibernateInterceptor, it works perfectly. Spring + Hibernate rocks!

mblankestijn
Jun 5th, 2006, 02:10 PM
I would like to know how this workw in WebSphere 5.1, but I will be very glad if you could post part of your configuration.

If you know if this also applies to WebSphere 6.1 you would make me very happy ;-)

yuanji
Jun 5th, 2006, 02:30 PM
Please see my post at http://forum.springframework.org/showthread.php?t=22128

yuan