File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Spring and the fly likes Does i need to use session bean with Spring Restful web service API? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Does i need to use session bean with Spring Restful web service API?" Watch "Does i need to use session bean with Spring Restful web service API?" New topic
Author

Does i need to use session bean with Spring Restful web service API?

Jason Ever
Greenhorn

Joined: Oct 06, 2013
Posts: 6
i am newer in EJB3 World and in Spring .

i builds an API Using RESTFul web services USING @Controller and @Entity (Entity Beans) , but i am in confusion between take advantages of Session Beans and Using it inside Spring MVC Controller(Which Represent the Restful web services)

to explain more about my theory :
1- Client Connect to API Restful (Spring Controller)
2- Spring Controller Connect Locally to Session Bean
3- Session bean Connect with Entity bean , then process the request and return the result

Does i need to do these steps with Spring Restful API ? or i don't need to use Session Beans and Use only Restful web services(Spring Controller) and connect directly from it with the EJB Entity Beans ? Does Spring Restful web services Give me Identical advantages such as Session Beans ?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Does i need to use session bean with Spring Restful web service API?