-
1. Re: Proposal: Distributed Destinations
adrian.brock Aug 18, 2004 7:20 AM (in response to mredeker)It is certainly possible using something similar to this:
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=46193
which is a TODO.
My point with transactions is that if you send a message to ServerA inside a
transaction it will be persisted there.
Then you need a further JTA transaction that uses two phase commit to
move it to serverB and remove it from serverA.
client -> Topic -> ProxyTopicSubscription (transaction 1 - might not be JTA)
ProxyTopicSubscription -> RealTopicSubscription (transaction 2 - must be JTA)
If you tried to do:
client -> Topic -> ProxyTopicSubscription -> RealTopicSubscription
in one transaction. JBossMQ's local transaction would have to be made into a real DTM
implementation, which is not a correct abstraction. -
2. Re: Proposal: Distributed Destinations
mredeker Aug 25, 2004 4:42 AM (in response to mredeker)Adrian,
thanks for the reply, but I do not understand the point about transactions. What I would like to do is just call a method on my DitributedTopicMBean on every cluster member which then gives the message to the local topic.
The scenario I am looking for does not need transactions. Once the message is send to the distributed topic it is handled by the machine, the message was sent to, as a normal message and the "distribution" is just a side effect.
Is this possible or am I on the wrong track?
--Marcus -
3. Re: Proposal: Distributed Destinations
adrian.brock Aug 25, 2004 10:07 AM (in response to mredeker)It is certainly possible using something similar to this:
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=46193
which is a TODO.
My point with transactions is that if you send a message to ServerA inside a
transaction it will be persisted there.
Then you need a further JTA transaction that uses two phase commit to
move it to serverB and remove it from serverA.
client -> Topic -> ProxyTopicSubscription (transaction 1 - might not be JTA)
ProxyTopicSubscription -> RealTopicSubscription (transaction 2 - must be JTA)
If you tried to do:
client -> Topic -> ProxyTopicSubscription -> RealTopicSubscription
in one transaction. JBossMQ's local transaction would have to be made into a real DTM
implementation, which is not a correct abstraction.