Implementing event notification

For implementing event notification in BTT Server side, first complete following configuration
  1. Server side configuration:
    1. Define the event format in server side dsefmts.xml. See Event manager definition example for details.
    2. Modify EventMangerServerInvoker.properties. Open bttevent.jar go to src/com/ibm/btt/event/ and find EventMangerServerInvoker.properties. Change IIOP location to match your system settings. For example:
      ......
      location: iiop://yourHostName:yourPortName 
    3. Modify message queue factory and message queue name in bttevnet.properties. Open BTTEvent.jar and find bttevent.properties in root directory. Put your defined queue name and queue factory name. For example:
      event_queue.queue_connection_factory=jms/MyQueueConnectionFactory
      event_queue.send_receive_q=SendandReceiveQ
    4. Defines message queue and connection factory in WAS administration console. For connection factory , in WAS console, go to Resource->WebSphere MQ JMS Provider->WebSphere MQ Connection Queue Factories to define a new connection factory, jndi name of which must be the same as you define in step C. For message queue, in WAS console, go to Resource->WebSphere MQ JMS Provider->WebSphere MQ Queue Destinations to define a new message queue, jndi name of which is the same as you define in step C.
    5. Open bttinvoker.jar. Find BeanInvokerRegistryMapper.properties in com/ibm/btt/invoker/base and adds following line is in it.
      eventManagerServerOperation=com.ibm.btt.event.EventManagerServerInvoker:RB
    Note: For the detailed information of BTT invoker definition, see BTT Invoker chapter.
  2. Client side configuration:
    1. Define event format in client side dsefmts.xml. For the detailed information of format definition, see event manager definition sample.
  3. Event Notification sample:
    1. An example for server event notification to client
    2. An example for server event notification to external
    3. An example for client event notification