Skip to main content

doubt regarding publish and subscibe

2 replies [Last post]
msreekanth
Offline
Joined: 2006-01-31

Hi,

I have a small question regarding publish and subscribe model in jmaki.

If i have 2 tables A and B and table A publishes to a topic T1 and B subscribes to topic T2.If A doesn't subscribe to any topic explicitly, does it mean A subscribes to default topic /table?

Thanks in Advance!
Sreekanth

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
gmurray71
Offline
Joined: 2003-07-31

Generally widgets subscribe to there name:

The dojo.table for example will subscribe to :

/dojo/table

The yahoo dataTable will subscribe to:

/yahoo/dataTable

In the case of widgets that are generic like trees / tables / tabddedviews etc those widgets by default will *also* subscribe to those topics if a subscribe topic is not provided.

/tree

or

/table

If you provide a subscribe attribute to a widget it will override both subscribers with whatever you choose.

You can set a widget to subscribe to no topics by leaving the topic as blank or []

Hope that clears things up.

-Greg

msreekanth
Offline
Joined: 2006-01-31

Thanks Glen