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 ?