I have a question regarding correct use of stateful beans.
In my design, a Stateful Bean is used only by stateless session beans, and therefore it seems like it makes sense to equip that stateful bean with a local interface.
On the other hand, the handle to that stateful bean must be stored on the (potentially remote) servlet controller, which means that it needs a remote interface, at least remote home interface, which, according to J2EE tutorial, comes with a remote business interface.
Again, if I store a handle to that stateful bean on the servlet, it will be a handle to a remote interface, and it's not clear how to get a reference to local interface from it.
In short, what is the correct way to use local interfaces with a Stateful bean, if any?
Thanx in advance,