Hi guys,
I've just change the ejb-jar.xml as
<jboss>
<enterprise-beans>
<message-driven>
<ejb-name>ServiceHandler</ejb-name>
<destination-jndi-name>queue/ServiceHandler</destination-jndi-name>
<resource-ref>
<res-ref-name>queue/ServiceHandler</res-ref-name>
<jndi-name>jnp://${jboss.bind.address}:1100/queue/ServiceHandler</jndi-name>
</resource-ref>
</message-driven>
</enterprise-beans>
<resource-managers>
</resource-managers>
</jboss>
and added in jndi.properties those two lines:
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
java.naming.provier.url=host1:1100,host2:1100
jnp.disableDiscovery=true
and now the queues seems to work perfectly.
This configurasion work for JBoss Application Server 4.2.3 on Windows 2008 and two servers with different network subnet.
Thanks you anyway.