Sun Java Communications Suite 5 Event Notification Service Guide

Example 1: For Messaging Server

Set Environment Variables

setenv LD_LIBRARY_PATH msg-svr-base/lib/
stop-ens
setenv SERVICEBUS_DEBUG 1
setenv ENS_DEBUG 1
setenv ENS_LOG_MODULES 1
setenv GAP_DEBUG 1
setenv GAP_LOG_MODULES 1
setenv XENP_TRACE 1
setenv ENS_STATS 1
msg-svr-base/bin/enpd

Sample Trace Output

1  | servbus 3451633705  [26321]: Starting Service Bus
2  | servbus 3451636227  [26321]: Service Bus subscriber created 
successfully
3  | servbus 3451636286  [26321]: Service Bus Ready
4  |         XENP -> len=36  servbus:///monitor/ens|subs|00010000
5  |         XENP -> len=60  servbus:///service/ens&pid=26321
&state=running|ntfy|00000000
6  |         XENP <- len=36  servbus:///monitor/ens|subs|00010000
7  |         XENP <- len=4   PACK
8  |         XENP <- len=60  servbus:///service/ens&pid=26321
&state=running|ntfy|00000000
9  |secs: pub: pub/s: pub/s(i): ntfy: ntfy/s :ntfy/s(i):
10 |  5 :   1:    0  : 0 :   0 :      0 : 0 :
11 |10 :   1:    0  : 0 :   0 :      0 : 0 :
12 |         XENP <-  
len=232enp://127.0.0.1/store?evtType=NewMs&mailboxName=ServiceAdmin&
timestamp=1027623669000&process=2637&hostname=ketu&numMsgs=14&size=621
&uidValidity=1025118712&imapUid=14&hdrLen=547&qUsed=16&qMax=-1&
qMsgUsed=15&qMsgMax=-1|ntfy|00000000
13 | 15 :   2:   0  :       0 :   0 :      0 :       0 :
14 | 20 :   2:   0  :       0 :   0 :      0 :       0 :
15 | 25 :   2:   0  :       0 :   0 :      0 :       0 :
16 | 30 :   2:   0  :       0 :   0 :      0 :       0 :
17 | 35 :   2:   0  :       0 :   0 :      0 :       0 :
18 | 40 :   2:   0  :       0 :   0 :      0 :       0 :
19 | 45 :   2:   0  :       0 :   0 :      0 :       0 :
20 | 51 :   2:   0  : 0 :   0 :      0 :       0 :
21 | 56 :   2:   0  :       0 :   0 :      0 :       0 :
22 | 61 :   2:   0  :       0 :   0 :      0 :       0 :
23 | 66 :   2:   0  :       0 :   0 :      0 :       0 :
24 | 71 :   2:   0  :       0 :   0 :      0 :       0 :
25 | 76 :   2:   0  :       0 :   0 :      0 :       0 :
26 |secs: pub: pub/s: pub/s(i): ntfy: ntfy/s :ntfy/s(i):
27 | 81 :   2:   0  : 0 :   0 :      0 :       0 :
28 | 86 :   2:   0  :       0 :   0 :      0 :       0 :
29 | 91 :   2:   0  :       0 :   0 :      0 :       0 :
30 | 96 :   2:   0  :       0 :   0 :      0 :       0 :
31 |101:   2:   0  :       0 :   0 :      0 :       0 :
32 |106:   2:   0  :       0 :   0 :      0 :       0 :
33 |111:   2:   0  :       0 :   0 :      0 :       0 :
34 |116:   2:   0  :       0 :   0 :      0 :       0 :
35 |121:   2:   0  :       0 :   0 :      0 :       0 :
36 |126:   2:   0  :       0 :   0 :      0 :       0 :
37 |131:   2:   0  :       0 :   0 :      0 :       0 :
38 |136:   2:   0  :       0 :   0 :      0 :       0 :
39 |141:   2:   0  :       0 :   0 :      0 :       0 :
40 |146:   2:   0  :       0 :   0 :      0 :       0 :
41 |151:   2:   0  :       0 :   0 :      0 :       0 :
42 |^C
43 | XENP -> len=60  servbus:///service/ens&pid=26321
&state=stopped|ntfy|00000000
44 |servbus 3466881202  [26321]: Service Bus going away
45 |servbus 3466881542  [26321]: Failed to create subscriber-      error-1

Short Commentary

The following comments apply to the lines of the preceding trace output:

Line Number

Comment

1 - 8 

Printed upon startup 

9 - 11 and 13 - 41 

Periodic statistics print out 

12 

A message is sent 

42 

Control-c stopped operation. This was done to end the sample only. Not recommended for stopping processes normally.