문제

I have got two Beans. One Stateful and one Stateless. Now I want to call a method, which is in the stateless bean, from the stateful bean. How can I do this? The stateless bean has also got an interface.

도움이 되었습니까?

해결책

I assume you are using EJB3.0. So, put in your Stateful bean:

@EJB private YourStatelessBeanInterface statelessBean;

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top