Why have you bound the local and remote homes at the same jndi location?
thank you for your reply.
My EJB has local and remote interfaces.
I do not know how to declare in the jboss.xml file
the jndi-name and the local-jndi-name for
the same EJB.
Do you have any sample of jboss.xml file
that handles this situation?
I have another question.
Could I use the same name as jndi-name and local-jndi-name
for an EJB?
I notice also that instead of getting a reference to the localHome Object
I get a reference to the home (remote) object, using the
standard way that ejb clients inside the server use i.e
default InitialContext and simple Java type casting.
Do you have any idea what could be wrong?
No you cannot bind the remote and local home in the same place.
They are different objects.