Take the 2-minute tour ×  I'm using a vanilla JBossAS 6 server
with a couple of projects to test the functionality of clustered
JBoss environments. The problem that I have is that if I
transfer an EJB reference from one EJB (of another type) in a
node, to an instance of the same type in another node, upon
method invocation an exception is thrown, stating that the
long_alphanumeric_key key for the specified bean is not
registered in the cache (InfinispanStatefulCache).  The thing is
that when using a Singleton annotation instead of a Stateful
annotation on the object that I need to transfer, the
transferred objects works flawlessly, succesfully invoking
methods of the shared EJB on the server where it was created.
The problem is that this case has the same flaw as the HA-
Singleton. All transferred references where previously obtained
via a lookup on the HA-JNDI tree.  Some insight on what I'm
trying to achieve:  What I currently need is to share a single
instance of a Stateful EJB between nodes, like a HA-Sing