I have same ejb component (with the same JNDI name) deployed on two hosts.
When within jboss I perform a call from host1 to some method of this component located on host2, the method gets executed on host1 !
I resolve remote component by looking up it through InitialContext on host2 (by setting up provider url, and so on withing Properties for the initial context), and JNDI returns an stub object from host2 no problem. But it looks like narrowing of that object and conscequent create() of it, results in homeInterface object pointing to the component located on host1.
Is there anyone experiencing similar problem ?
jboss4.0.3sp1 fixes the issue immediately.
there was a bug in 4.0.1 which results in the behaiour described in my previous post