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 Event manager definition example for
details.
- 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
- 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 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.
- 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