Listing 5 shows an excerpt from the event consumer implementation.
清单5显示事件消费者的实现摘录。
For more information on developing an event consumer, see Resources.
要了解更多关于开发事件消费者的信息,请参见参考资料。
An event consumer can implement a message-driven bean (MDB) and associate it with the appropriate JMS destination to receive events.
事件消费者可以实现消息驱动的bean (MDB)并将其关联到适当的JMS目标以接收事件。
In other words, an event consumer doesn't care where or why an event occurs; rather, it's concerned that it will be invoked when the event has occurred.
也就是说,事件消费者不关心事件发生的地点或原因;而是关注事件发生后它(消费者)将被调用。
The actuator in this case is acting as a proxy or agent on behalf of the event consumer to consume, transform, and send the event object to the consumer.
在此情况下,执行者充当代理或中介,代表事件使用者使用、转换事件对象并将其发送给使用者。
The other method, allocate (XMLStreamReader, XMLEventConsumer), should use the supplied stream reader to create one or more event objects and pass them on to the supplied event consumer.
另一个方法allocate (XMLStreamReader,XMLEventConsumer)应使用所提供的streamreader来创建一个或更多事件对象并将它们传递给所提供的事件消费者。
The other method, allocate (XMLStreamReader, XMLEventConsumer), should use the supplied stream reader to create one or more event objects and pass them on to the supplied event consumer.
另一个方法allocate (XMLStreamReader,XMLEventConsumer)应使用所提供的streamreader来创建一个或更多事件对象并将它们传递给所提供的事件消费者。
应用推荐