• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

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

 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
a wee bit from the empire
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic