You have to add
for each bean in jboss.xml. Or, if it's EJB3 you can add an @org.jboss.annotation.ejb3,Clustered annotation to the bean class.
Thanks for the help. It appears that adding the jboss.xml to the META-INF directory of the jar within the ear with the clustered attribute fixes the problem. I attempted the same with the annotation however failover did not work for this bean.
Any idea what could cause this?
It was an EJB3 bean, right? Trying the annotation with an EJB2 bean is the only reason I know of why it wouldn't work when xml does.
Perhaps you forgot your client should use the HA-jndi to lookup the bean = use port 1100, not 1099 in the Context.PROVIDER_URL property of the jndi context.