Use this sample to add subscriptions for a user to a document category. A subscribed user receives e-mail notifications on a document whenever it changes. The user needs administrator privileges to create the artifacts.
user pwd host port subscribed_user path [subscribed_user_email]
A subscribed user receives a notification e-mail whenever the document changes. Log on to the servlet as the user who ran this sample program. Navigate to the artifact and look at its subscriptions. The corresponding check box should be selected.
java -classpath %CLASSPATH% AddSubscription administrator administrator localhost 6800 TESTSUBS1 D:\Test1.txt email@some_address.com
java -classpath %CLASSPATH% AddSubscription administrator administrator localhost 6800 TESTSUBS1 /TestDir1/TestObj email@some_address.com