Hi

I am using jboss-4.0.4.GA with jboss-messaging-1.0.0.GA on linux/x86 platform 
and using JMS API. Java is Standard Edition (build 1.5.0_04-b05). The setup is 
run with default configuration (no changes made). The JBoss messaging server 
runs on a different machine from the test machine.

I am using the topic messaging domain for communication. I describe the program 
scenario below, which is actually a simulation of a real application scenario -

I have 3 threads executing in the same JVM - Producer, Relayer and Consumer. 
The Producer sends messages to the Relayer and the Relayer reads and resends 
the message to the Consumer. All the threads share the same topic but use 
selector to filter the Producer->Relayer and Relayer->Consumer communication. 
The threads use separate sessions for each of the communication path. That is, 
Producer has a session for its MessageProducer; Relayer has one session for its 
MessageConsumer and another for its MessageProducer; Consumer has its own 
session for its MessageConsumer (all the sessions are not transacted and use 
AUTO_ACKNOWLEDGEMENT). The messages sent are TextMessage type and carry a 
payload of 25 characters and the threads run continously.  In the Relayer, once 
a message is received, it is created again before being relayed.

What I am noticing is, Producer is able to sent large amount of messages 
(around 10000, it is the set limit now) while the Relayer is not able to send 
more 10 messages and the Consumer is not able to consume more than 10 messages. 
The Relayer hangs while doing 'publish' and the Consumer is hanging in 
'receive'. Also, 
* If the Consumer is disabled, then the Relayer is able to consume all the 
messages without hanging.
* If the Producer is throttled, say, at one message per sec, still the same 
behaviour is seen - the Relayer and Consumer hang.

I want to know if I am using the JMS API correctly and using the JBoss setup 
correctly. Has anyone faced this problem before or anyone can help out?

I can send the test code - it is small and can be tried standalone on a JBoss 
with Messaging setup.

Thanks
Raghu

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3951290#3951290

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3951290


_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to