Lotus Notes, Sametime and Java working together

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


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.

'--------- 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:

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

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