Discussion:
[openjms-developer] For OpenJMs Developers : OpenJMS Performance with Persistent Messages and Durable subscribers..
Sanjeev Aggarwal
2003-06-27 10:12:02 UTC
Permalink
Hi,

I am using Persistent messages and Durable subscribers on Topics. I looked
into the OpenJMS Code. Found that it is saving the JMSMessage into the
database before publishing it to subscribers.

Can I change it, in a way that message is published to subscribers and then
saved in the database in a seperate thread so that subscribers gets a faster
delivery of messages.

Thanks,
Sanjeev.
Jim Alateras
2003-06-27 11:03:43 UTC
Permalink
You could probably do but you'll have to look beyond the code in
MessageMgr.java. In particular look at Destination and Consumer code, which
is in the same package. Use the following the Open Source compliance test
suite http://jmscts.sourceforge.net/index.html to ensure that your changes
don't break OpenJMS compliance to the JMS specification.

cheers
</jima>
-----Original Message-----
Aggarwal
Sent: Friday, June 27, 2003 8:12 PM
Subject: [openjms-user] For OpenJMs Developers : OpenJMS Performance
with Persistent Messages and Durable subscribers..
Hi,
I am using Persistent messages and Durable subscribers on Topics. I looked
into the OpenJMS Code. Found that it is saving the JMSMessage into the
database before publishing it to subscribers.
Can I change it, in a way that message is published to
subscribers and then
saved in the database in a seperate thread so that subscribers
gets a faster
delivery of messages.
Thanks,
Sanjeev.
-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
openjms-user mailing list
https://lists.sourceforge.net/lists/listinfo/openjms-user
Sanjeev Aggarwal
2003-07-07 09:48:01 UTC
Permalink
Hi,

I want that persistent messages are stored in database only iff there are
some durable subscribers to whom messages can't be delievered due to one or
more reasons.

Storing all messages in database take a lot of time, so I want selective
messages to be stored in database.

Can any body give me some idea where to change in openjms code??

Thanks in Advance!
Sanjeev.

----- Original Message -----
From: "Jim Alateras" <***@comware.com.au>
To: "Sanjeev Aggarwal" <***@ggn.aithent.com>; <***@netspace.net.au>;
<openjms-***@lists.sourceforge.net>
Cc: <openjms-***@lists.sourceforge.net>
Sent: Friday, June 27, 2003 16:33
Subject: [openjms-developer] RE: [openjms-user] For OpenJMs Developers :
OpenJMS Performance with Persistent Messages and Durable subscribers..
Post by Jim Alateras
You could probably do but you'll have to look beyond the code in
MessageMgr.java. In particular look at Destination and Consumer code, which
is in the same package. Use the following the Open Source compliance test
suite http://jmscts.sourceforge.net/index.html to ensure that your changes
don't break OpenJMS compliance to the JMS specification.
cheers
</jima>
-----Original Message-----
Aggarwal
Sent: Friday, June 27, 2003 8:12 PM
Subject: [openjms-user] For OpenJMs Developers : OpenJMS Performance
with Persistent Messages and Durable subscribers..
Hi,
I am using Persistent messages and Durable subscribers on Topics. I looked
into the OpenJMS Code. Found that it is saving the JMSMessage into the
database before publishing it to subscribers.
Can I change it, in a way that message is published to
subscribers and then
saved in the database in a seperate thread so that subscribers
gets a faster
delivery of messages.
Thanks,
Sanjeev.
-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
openjms-user mailing list
https://lists.sourceforge.net/lists/listinfo/openjms-user
-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
openjms-developer mailing list
https://lists.sourceforge.net/lists/listinfo/openjms-developer
Tim Anderson
2003-06-27 13:00:33 UTC
Permalink
Not a good idea. If the server goes down after the message
has been published to active subscribers, but before it is
made persistent, you will end up with inconsistency.
You would also have to add some synchronization to ensure
that acknowledgements for a message don't occur before the
message is made persistent.
-----Original Message-----
Aggarwal
Sent: Friday, 27 June 2003 8:12 PM
Subject: [openjms-user] For OpenJMs Developers : OpenJMS Performance
with Persistent Messages and Durable subscribers..
Hi,
I am using Persistent messages and Durable subscribers on Topics. I looked
into the OpenJMS Code. Found that it is saving the JMSMessage into the
database before publishing it to subscribers.
Can I change it, in a way that message is published to
subscribers and then
saved in the database in a seperate thread so that subscribers
gets a faster
delivery of messages.
Thanks,
Sanjeev.
-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
openjms-user mailing list
https://lists.sourceforge.net/lists/listinfo/openjms-user
Sanjeev Aggarwal
2003-06-30 04:19:00 UTC
Permalink
Any other thing that I can do to increase the performnace of OpenJMS with
Durable subscribers and Persistent messages???

Sanjeev

----- Original Message -----
From: "Tim Anderson" <***@netspace.net.au>
To: <openjms-***@lists.sourceforge.net>
Sent: Friday, June 27, 2003 18:30
Subject: [openjms-developer] RE: [openjms-user] For OpenJMs Developers :
OpenJMS Performance with Persistent Messages and Durable subscribers..
Post by Tim Anderson
Not a good idea. If the server goes down after the message
has been published to active subscribers, but before it is
made persistent, you will end up with inconsistency.
You would also have to add some synchronization to ensure
that acknowledgements for a message don't occur before the
message is made persistent.
-----Original Message-----
Aggarwal
Sent: Friday, 27 June 2003 8:12 PM
Subject: [openjms-user] For OpenJMs Developers : OpenJMS Performance
with Persistent Messages and Durable subscribers..
Hi,
I am using Persistent messages and Durable subscribers on Topics. I looked
into the OpenJMS Code. Found that it is saving the JMSMessage into the
database before publishing it to subscribers.
Can I change it, in a way that message is published to
subscribers and then
saved in the database in a seperate thread so that subscribers
gets a faster
delivery of messages.
Thanks,
Sanjeev.
-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
openjms-user mailing list
https://lists.sourceforge.net/lists/listinfo/openjms-user
-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
openjms-developer mailing list
https://lists.sourceforge.net/lists/listinfo/openjms-developer
Tim Anderson
2003-06-30 04:30:58 UTC
Permalink
Performance is largely determined by:
. the connector you are using
. the database

The rmi and tcp connectors are the fastest.
Try switching between the two to see if one works
better for your setup.

Same goes for the database - try several implementations to
work out which gives the most performance for your platform.
-----Original Message-----
Sent: Monday, 30 June 2003 2:19 PM
Subject: Re: [openjms-developer] RE: [openjms-user] For OpenJMs
Developers : OpenJMS Performance with Persistent Messages and Durable
subscribers..
Any other thing that I can do to increase the performnace of OpenJMS with
Durable subscribers and Persistent messages???
Sanjeev
----- Original Message -----
Sent: Friday, June 27, 2003 18:30
OpenJMS Performance with Persistent Messages and Durable subscribers..
Post by Tim Anderson
Not a good idea. If the server goes down after the message
has been published to active subscribers, but before it is
made persistent, you will end up with inconsistency.
You would also have to add some synchronization to ensure
that acknowledgements for a message don't occur before the
message is made persistent.
-----Original Message-----
Aggarwal
Sent: Friday, 27 June 2003 8:12 PM
Subject: [openjms-user] For OpenJMs Developers : OpenJMS Performance
with Persistent Messages and Durable subscribers..
Hi,
I am using Persistent messages and Durable subscribers on Topics. I
looked
Post by Tim Anderson
into the OpenJMS Code. Found that it is saving the JMSMessage into the
database before publishing it to subscribers.
Can I change it, in a way that message is published to
subscribers and then
saved in the database in a seperate thread so that subscribers
gets a faster
delivery of messages.
Thanks,
Sanjeev.
-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU
Hosting Partner.
Post by Tim Anderson
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly
Commission!
Post by Tim Anderson
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
openjms-user mailing list
https://lists.sourceforge.net/lists/listinfo/openjms-user
-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
openjms-developer mailing list
https://lists.sourceforge.net/lists/listinfo/openjms-developer
Loading...