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 Reference for details.
    2. Modify EventMangerServerInvoker.properties. Open bttevent.jar, and 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 

      By default, there is no need to change the IIOP location, because the EventManagerServerInvoker won't invoke any EJB.

    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 more information about BTT event mechanism configuration, see Configuring BTT event mechanism.
    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