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
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: http://aspose.com/file-tools
subject: restservice - mvc controller and transactional ?
Similar Threads
Spring 3 and Hibernate 4 Configuration Question
Spring Transactions with hibernate
Testing transactions...
dependency injection using concrete classes
spring + hibernate