-
1. Re: How Durable MDBs work ?
adrian.brock Dec 30, 2003 11:23 AM (in response to kevin101)You are using topics with durable subscriptions? e.g. in jboss.xml
<mdb-client-id>JBossDallas</mdb-client-id>
<mdb-subscription-id>whatever</mdb-subscription-id>
Any message published to the topic will be stored on the server
until the subscriber asks for it (pretty standard stuff).
NOTE: You must make the initial subscription for this to work,
either by the mdb connecting once or by configuring the durable subscription
in conf/jbossmq-state.xml
If you don't use durable subscriptions, any messages published when the
subscriber is not connected will be lost.
Regards,
Adrian -
2. Re: How Durable MDBs work ?
kevin101 Dec 30, 2003 12:01 PM (in response to kevin101)Thank you Adrian, for response.
I am using using durable subscriptions.
You said
Any message published to the topic will be stored on the server
until the subscriber asks for it (pretty standard stuff).
If the subscriber asks for the message from two instances of JBoss (JBossLA, JBossSF) with the same <mdb-subscription-id>whatever</mdb-subscription-id>,
does both the subscribers receive message ? How does the server know what message to give to what subscriber ?
Thanks for your help. -
3. Re: How Durable MDBs work ?
adrian.brock Dec 31, 2003 4:40 AM (in response to kevin101)A durable subscription is a product of the client id and the subscription id.
The client id has to be unique (only one client can be active with a given client id).
Inside the client id, you can choose your own subscription ids.
Regards,
Adrian