Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は2つの豆を持っています。1 つのステートフルと 1 つのステートレス。ここで、ステートフル Bean からステートレス Bean にあるメソッドを呼び出したいと思います。これどうやってするの?ステートレス Bean にはインターフェースもあります。
EJB3.0 を使用していると仮定します。したがって、Stateful Bean を入れます。
@EJB プライベート YourStatelessBeanInterface ステートレス Bean;