It would indeed. This is working on JBoss 3.0.3 here...
Excuse me I am not a JNDI expert.
Do JBoss do this because JNDI will return different references when the lookup is repeated. Or will the JNDI actually return multiple references?
Do you use JNDI the same way whether using cluster or not?
Can you explain in detail how it actually works. I have a running app on one note, and the client( from seperate machine) can access the Queue through lookup, the initContext was initiated using url: host:1099
Then I add another note with same JBoss config, hope to get load balance between two queues with the same name.
I thought I need switch the url to host:1100 for initContext, but the client program got timeout exception in the first lookup for ConnectionFactory. both nodes running in "all" config.
Also, I like to know can I archieve such kind load balance on single machine with multiple jboss instances? Multiple VMS can maximize the CPU usage.
> Do JBoss do this because JNDI will return different
> references when the lookup is repeated.
I believe that it returns different references based on the load-balancing rule you have set. You'll have to check the docs about this the algorithm used.