Still looking for help with this issue. I've run another test where I set maxSession to 1 in my MDB and added a Thread.sleep at the end of the code. When I run it I can see that only 1 MDB handles the messages and does so once per second because of the sleep. I'm still not seeing any message redistribution though.
All the messages are handled by one server even though I'd expect the second server pick some off the queue since.
I even tried setting PrefetchSize to 1 again but that had no effect.
Anyone able to shed some light here?
Did you run the examples after installing to validate the installation?
There's a message redistribution example. If it doesn't work it means your installation is messed up. If it does work, see how it differs from your program to work out what is wrong.
I ran the tests and they passed.
Decided to look at the code and as i read the line
cf = (ConnectionFactory)ic.lookup("/ClusteredConnectionFactory");
it dawned on me... I was still using the XAConnectionFactory in my code.
It was SBS ("Skit Bakom Sparkarna" as we say in Sweden) or PEBKAC after all.
Works as expected now.