Вопрос

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