-
1. Re: MaxSessionInt on MDBs in durable subscriptions
clebert.suconic Feb 26, 2010 1:58 PM (in response to clebert.suconic)I meant.. a MDB instance... you could have multiple handlers processing the subscription. -
2. Re: MaxSessionInt on MDBs in durable subscriptions
timfox Feb 26, 2010 1:58 PM (in response to clebert.suconic)The check in HornetQMessageHandler seems redundant to me, since the check is already done in HornetQSession -
3. Re: MaxSessionInt on MDBs in durable subscriptions
clebert.suconic Feb 26, 2010 1:58 PM (in response to timfox)I removed it.. then we're good? -
4. Re: MaxSessionInt on MDBs in durable subscriptions
timfox Feb 26, 2010 2:02 PM (in response to clebert.suconic)Well.. surely it will still fail on the HornetQSession check?
Doesn't each handler create it's own consumer?
What's the cardinality between handlers and consumers?
-
5. Re: MaxSessionInt on MDBs in durable subscriptions
clebert.suconic Feb 26, 2010 2:19 PM (in response to timfox)From what I just saw on the implementation, each Handler will have its own consumer, but on the same session.
I'm not really sure how transactions would be handled here though. Each instance should be isolated transactionally... but I'm not sure how this is going to work since they all share the same session.
Maybe Andy would have some idea?
-
6. Re: MaxSessionInt on MDBs in durable subscriptions
timfox Feb 26, 2010 2:22 PM (in response to clebert.suconic)Well, if each handler has it's own consumer, it won't work, since, HornetQ does not allow more than one consumer on a durable subscription.
This is mandated by the JMS spec.
-
7. Re: MaxSessionInt on MDBs in durable subscriptions
clebert.suconic Feb 26, 2010 2:30 PM (in response to timfox)The resource adapter is using core sessions directly. So the check on HornetQSession is not being done.
It seems to me the check on the counters should be done in a different place. It should be possible to have multiple instances of an MDB, but you should only have a single MDB on the subscription.
-
8. Re: MaxSessionInt on MDBs in durable subscriptions
clebert.suconic Feb 26, 2010 2:47 PM (in response to clebert.suconic)That's probably a different subject, but it's not clear to me how the resource adapter is guaranteeing transactions with multiple instances of a MDB (or maxSessionInt). The delivery will happen on a single session over multiple consumers?
-
9. Re: MaxSessionInt on MDBs in durable subscriptions
timfox Feb 26, 2010 2:49 PM (in response to clebert.suconic)There should only be only one consumer per session created by the JCA adaptor.
I.e. it should be a 1-1 mapping.
-
10. Re: MaxSessionInt on MDBs in durable subscriptions
clebert.suconic Feb 26, 2010 2:50 PM (in response to timfox)right, I will debug it and make sure this is not happening.
-
11. Re: MaxSessionInt on MDBs in durable subscriptions
clebert.suconic Feb 26, 2010 3:25 PM (in response to timfox)Duh.. I was reading it wrongly :-) it is opening a new session properly.
I will move the check on the counters for before the activation (or do it only at the first instance). That way I will be able to have multiple instances for the MDB.
-
12. Re: MaxSessionInt on MDBs in durable subscriptions
hitjain_83 Jan 18, 2013 3:56 AM (in response to clebert.suconic)I was curious to understand and setup multiple instances of an MDB - Can you please provide me with some guidance. "That way I will be able to have multiple instances for the MDB."
-
13. Re: MaxSessionInt on MDBs in durable subscriptions
ataylor Jan 18, 2013 5:07 AM (in response to hitjain_83)you have hijcked some one elses thread plus this is the dev forum, if you have questions can you raise them in the user forum