-
1. Re: Jboss Messaging 1.4.0 SP3 and Message Redistribution / P
daniel.gaiottino Aug 11, 2008 5:59 AM (in response to daniel.gaiottino)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? -
2. Re: Jboss Messaging 1.4.0 SP3 and Message Redistribution / P
timfox Aug 11, 2008 6:03 AM (in response to daniel.gaiottino)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. -
3. Re: Jboss Messaging 1.4.0 SP3 and Message Redistribution / P
daniel.gaiottino Aug 11, 2008 9:53 AM (in response to daniel.gaiottino)I ran the tests and they passed.
Decided to look at the code and as i read the linecf = (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.