On Fri, 2003-12-05 at 09:27, Stephane Nicoll wrote:
> Dear all,
> 
> Part of our application has the following pattern: during the day, messages
> are put in the a queue for specific client. The clientID is set in a JMS
> Message header (clientId = 'Something'). One or two times per day, the client
> synch from a remote location and pick up its messages. For this we start a
> QueueReceiver with the selector "clientId = 'TheClientId'"
> 

Why don't you use durable topic subscriptions?
This will effectively create multiple queues, one for each clientId.
The selector is run during the publish() for each subscription.
When you come to do the receive, the subscriber's queue will only
have messages relevent to them.

Of course, this assumes you know all the clientIds in advance.

If you wanted to be clever, you could write a jbossmq 
server interceptor to dynamically create a durable subscriptions
as new client ids are seen during message addition.

> How can we improve the situation / tune performence. Let's say message cache
> is not used, it means that JBossMQ will first read ALL messages in this queue
> and then read the Blob to see if the selector matches. Is it correct?
> 

Correct.

> We have a Bi-proc 2GB memory machine dedicated to JBoss (DB - Postgres runs
> on a separate machine, same hardware).
> 
> What settings should be set for the message cache. I guess that if it's high
> enough, all messages are both in memory and in the DB right?
> 

JBossMQ will keep a copy of the message in memory unless you are running
out. You want to increase the high memory mark and max memory mark.
When the high memory mark is exceeded it starts throwing things out
of the memory to keep memory below the maximum. Of course it might
not be able to do this if something else is using all the memory.
The messages to kick out are chosen based on least recently used.

> Any precision, let me know. I hope I am not asking too weird questions. My
> last two questions remains without any answer :p
> 
> We will be in the next Bootcamp in Paris. Hope to see some of you there!
> 

I thought the Paris bootcamp had been cancelled?
We are doing CEBIT instead.
http://www.jbossgroup.com/index.html?module=html&op=userdisplay&id=services/training/bootcamp#cebit

Regards,
Adrian

> Cheers,
> 
> Stephane
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: IBM Linux Tutorials.
> Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
> Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
> Click now! http://ads.osdn.com/?ad_id78&alloc_id371&op=click
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
-- 
xxxxxxxxxxxxxxxxxxxxxxxx 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
xxxxxxxxxxxxxxxxxxxxxxxx 



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to