To do a simple chat without routing the messages through an appserver procedure do the following;

You can group messages together in transactions as follows:

Upon the sending of a message by the publisher you can route the message to an appserver procedure that looks like a CGI wrapper. You can also route the message to this appserver procedure just before it is received by the subscriber. You can use this appserver procedure to persist the message and the message event (Send/Receive) in the databaxse. You can also use it to apply a transformation to the message. You can embed any number of attributes in the form of name/value pairs in the message. The appserver procedure will be able to access these attributes.

To route messages to an appserver procedure take the following steps: