• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic