• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Bear Bibeault
  • Liutauras Vilda
  • Devaka Cooray
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

Spring- Hibernate - jDk1.4 - Intergration issue with transaction manager.

 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am tryint to integrate Spring 2.5.6 with Hibernate 3.2.x.
I am using jdk 1.4

I am not able to configure it .. and most like the transaction manager.

The error I get is..


Here is my applicationContext.xml



I am trying to get an instance of PortalService and get select all from a table.

Thanks in advance.

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'll need to declare your transaction boundaries in your application context file (I didn't see any in the example above). I'm not sure which style you are using (annotations versus configuration) but in config terms you will need to define a pointcut that says which methods Spring should intercept in order to wrap in a transaction. Here is an example:


You then will need to specify the transactions in the AOP advice. Again, here's an example:


There's some good documentation on the Spring site itself

HTH
 
rahul khanna
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Brett.

I cannot use annotations as I amusing JDK 1.4

Here is the modified version of the code I have. I am trying to use ProxyFactoryBean.
This seems to work atleast for the read operations. I need to test for write though.
I do NOT want to use AOP as I am not using any features of AOP.
There must be another way of doing this.. configuring spring and hibernate for jdk 1.4







Thanks in advance.
 
Destiny's powerful hand has made the bed of my future. And this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!