File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes restservice - mvc controller and transactional ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "restservice - mvc controller and transactional ?" Watch "restservice - mvc controller and transactional ?" New topic

restservice - mvc controller and transactional ?

Mike Winkelmann

Joined: Feb 26, 2013
Posts: 2
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 ?

I agree. Here's the link:
subject: restservice - mvc controller and transactional ?
It's not a secret anymore!