For implementing event notification in BTT Server side, first complete
following configuration
- Server side configuration:
- Define the event format in server side dsefmts.xml. See Reference for
details.
- 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.
- 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
- Defines message queue and connection factory in
WAS administration console. For more information about BTT event mechanism
configuration, see Configuring BTT
event mechanism.
- 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.
- Client side configuration:
- Define event format in client side dsefmts.xml. For the detailed
information of format definition, see event manager definition sample.
- Event Notification sample:
- An example for server event notification to client
- An example for server event notification to external
- An example for client event notification