EJB 3 injection into spring beans

前端 未结 2 1890
无人共我
无人共我 2020-12-10 18:41

I\'ve made a mavenized web application with spring, spring security... Now, I want to add ejb module for database access, I was looking on the internet but I didn\'t find

2条回答
  •  轮回少年
    2020-12-10 19:26

    Have a look here: http://docs.spring.io/spring/docs/4.1.0.BUILD-SNAPSHOT/spring-framework-reference/htmlsingle/#ejb-access-local

    You can inject EJB using setter injection. Configure your bean this way:

    
        
        
    
    
    
        
    
    

    You can also use tag to be able to inject your EJB:

    
    
    
        
    
    

提交回复
热议问题