What is EJB alternative in Spring Framework

前端 未结 3 1168
孤独总比滥情好
孤独总比滥情好 2021-02-10 02:53

I am trying to learn Spring Framework, before that I used to create application with EJBs

[Web services]->[Business Layer]->[DAO Layer] | [Database]

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-10 03:52

    This explains Spring and Java EE (which is what you would have used EJBs in) side by side: http://www.slideshare.net/reza_rahman/java-ee-and-spring-sidebyside-34320697

    1. Jersey offers Spring solutions too - see their website
    2. Spring does support remote calls through, e.g., RMI; It also supports transactions; AFAIK, no explicit stateful/stateless Spring Components - it depends on how you use it
    3. AFAIK nothing as awesome as TimerService, however, you could use Quartz
    4. Spring offers MDPs (Message-Driven POJOs)
    5. Spring does support JPA - see first link.

    Another cool comparison slideshare: http://www.slideshare.net/kelapure/java-e-evsspringshootout

提交回复
热议问题