Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Jason Ever
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic