Basic Case, Publication Java
Proxy Initialization
Notification
Content publication
Basic Case, Publication code Java
 |
 |
Content publication
posting notifications to the channel
Publishing the notification is the final step in creating content for a channel.
The method for publishing content is:
proxy.publish(notification);
To publish our proxy's notification, we invoke the publish method:
p.publish(n);
All authorized subscribers who have initialized proxies ready to receive content for Channel 7's subject, Sample, will receive the message "Hello World."
|