I have a very simple SLSB written in EJB3. The packaged EAR file is copied to "all/deploy" directory in two JBoss 4.0.4GA instances on two machines, n1 and n2. These two JBoss instances form a cluster within one subnet with same out-of-box configurations. The SLSB has annotation @Clustered. When looking up the SLSB, according to the JBoss clustering manual, the application client uses HA-JNDI:
props.put(Context.PROVIDER_URL, "n1:1100,n2:1100")The app client worked fine.
props.put(Context.PROVIDER_URL, "n2:1100")the app client works.
props.put(Context.PROVIDER_URL, "n1:1100,n2:1100")
You might try looking at the JNDIView mbean on both servers to see if your SLSB is still defined on each of them. If it is, then the problem may be occurring because the SLSB is still registered in JNDI.