Lotus Notes, Sametime and Java working together

Sametime and Domino solutions
Lotus Notes/Domino and Sametime software made easy
 

download

Runs on Windows   Runs on Linux   Runs on Mac


Other Sametime software

STAgent Examples

Free 30-day evaluation

STAgent trial


 
See below for example of sending messages from LotusScript agent.
These functions are available from all LotusScript R5/R6 and Java agents and stand-alone Java applications.
examples


'--------- code example start --------------
Sub SendMessages()

result = STAgent.login("stserver.company.com", "Notification Agent", "password")

result = STAgent.getOnlineStatus("John Doe")
'check if user is online
result = STAgent.sendAnnouncement("John Doe", "test announcement")
result = STAgent.sendMessage("John Doe", "test message")

result= STAgent.logout()

End Sub
'--------- code example end --------------
More examples for developers
Examples for Domino admins




Message Announcement
Sametime Message example Sametime Announcement example


Example of calling the STAgent-enabled servlet from a HTML page:

<HTML>
<HEAD>
<TITLE>HTML form interface for Sametime messaging via STAgent servlet</TITLE>
</HEAD>
<BODY>
<form name="form1" method="post"
action="http://stserver.company.com/servlet/stagent_servlet">
<table width="469" border="0" cellpadding="5">
<tr>
<td width="57">Send to: </td>
<td width="386"><input name="username" type="text" id="messageto" value="John Doe"
width="300"></td>
</tr>
<tr>
<td>Message: </td>
<td><input name="message" type="text" id="messagetext" value="Hello there" width="300"></td>
</tr>
</table>
<input type="hidden" name="type" value="send">
<br>
<input type="Submit" name="SendMessage" value="Send message">
<br>
</form>
</BODY>
</HTML>

Sametime Agent servlet call from HTML


Using STAgent as a notification method in Statistics & Events:


click to enlarge

Sending Sametime message from Domino console:


click to enlarge



© Copyright 2004. Botstation