How to inject a Session Bean into a Message Driven Bean?

前端 未结 4 913
鱼传尺愫
鱼传尺愫 2021-01-19 00:43

I\'m reasonably new to Java EE, so this might be stupid.. bear with me pls :D

I would like to inject a stateless session bean into a message-driven bean. Basically,

4条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-19 01:36

    Ok, I found out that if I add the annotation @LocalBean to the session bean, it works. What the ...?

提交回复
热议问题