PreCache NetInjector Documentation Center : PreCache NetInjector Application Development

Basic Case, Publication — 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."