[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[xmlblaster-devel] subscription bug with 2 objects and same key - Part 2



Hi

I've some more information about my problems with 2 subsribers on one
connection:

The ConnectionAdapter registers on this key:
  SubscribeKeyWrapper key = new
SubscribeKeyWrapper("//key/location[ at dest='agent-192.168.10.218']",
"XPATH");
  SubscribeQosWrapper qos = new SubscribeQosWrapper();
  String subscriptionId = connection.subscribe(key.toXml(), qos.toXml(),
this);

The ProxyServiceDriver registers on this key:
  SubscribeKeyWrapper key = new
SubscribeKeyWrapper("//key[ at contentMimeExtended='action']/location[ at dest='ag
ent-192.168.10.218' and  at driver='PSD1']", "XPATH");
  SubscribeQosWrapper qos = new SubscribeQosWrapper();
  String subscriptionId = ca.getConnection().subscribe(key.toXml(),
qos.toXml(), this);

When publishing this key:
<key oid='' contentMime='text/xml' contentMimeExtended='action'>
  <location dest='agent-192.168.10.218' driver='PSD1'></location>
</key>

The xmlBlaster gives the following output:
28.01.2002 14:25:00:INFO :XmlKey:XPath subscription
'//key[ at contentMimeExtended='action']/location[ at dest='agent-192.168.10.218'
and  at driver='PSD1']' matches message '192.168.10.218-7609-1012224300908-40'
28.01.2002 14:25:00:INFO :XmlKey:XPath subscription
'//key/location[ at dest='agent-192.168.10.218']' matches message
'192.168.10.218-7609-1012224300908-40'

This shows, that both registrations does exist. But only the update method
of one of the registered objects is called, in this case allways the object
which has registered at last.

Is there any shortcut implemented, which does suppress the delivery of the
same message to multiple objects?

Thanks for any help.

best regards,
Juergen Freidling