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

Re: [xmlblaster] Ptp/Subscribe (Bug ?)



Hallo Xavier,
this is not a bug. It is a new feature. It is now possible to subscribe to a PtP message: that's why the KGB is allowed to read a love letter ;)


If you want to be sure it is not visible to subscribers you can add

<subscribeable>false</subscribeable>

in the PublishQos (see the following requirement)

http://www.xmlBlaster.org/xmlBlaster/doc/requirements/interface.publish.html



Saluti
Michele


Xavier Roques wrote:

Hello,

I changed the file "testPtd.java" (See attached file)

Now this test does the following step :
	1) Creates Receiver1 (a default cb is provided during the connect:
login="Ulrike")
		Ulrike subscribes to the oid "Request" (a specialized cb is
provided to the method "Subscribe" (Class myListener))
	2) Creates Receiver2 (A default cb is provided during the connect:
login="Kgb")
		Receiver2 subscribes to the oid "Request" (A specialized cb
is provided to the method  "Subscribe" (Class myListener))
	3) Creates Sender
	4) The sender sends a Ptp message to the "Ulrike" (Oid = "Request")

The result is really Strange:
	The default cb of each receiver is called ? (It is a PTP message).
	The specialized cb of "KGB" is called ??? (The message was sent to
Ulrike).

I expected that only the specialized cb of Ulrike would be called..

So is it possible to do that ? If yes how ?

Thanks,

Xavier.



--
Michele Laghi
mailto:laghi at swissinfo.org
tel. +46 8 7492952 / mob. +46 70 4103964
http://www.geocities.com/laghi2000
http://www.xmlBlaster.org