users@glassfish.java.net

How to have only one EJB Stateful instance

From: Miroslav Nachev <miro_at_space-comm.com>
Date: Mon, 19 May 2008 13:37:08 +0200

Hi,

I need to have only one EJB Stateful instance of one class in my session.
For example:
@Stateful
public class StatefulBean ...

Everythime when I take instance of that StatefulBean I have different
instance, not the previous one:
@Stateless
public class StatelessBean
{
   @EJB
   private StatefulBean bean;
}

Can you help me?


Regards,
Miro.