This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

restservice - mvc controller and transactional ?

Mike Winkelmann
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

is it possible to use a hibernate dao in the top layer - controller - of an restful webservice ?

So I want to do the following:

So I want to open the transaction for hibernate directly in the spring mvc controller!
If I run the webservice and call the method an exception is thrown with "IllegalArgumentException: object is not an instance of declaring class".

Do someone knows something about this error ?

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic