Friday, June 24, 2005 08:37 AM
The Events of different Event Type are arriving at the Client in different sequence.
We have 2 types of events (MessageEvent and CommandResponseEvent). The Client TopicSubscriber is of
Normal type (and not a Durable Subscriber).
We find that the eventHandler is receiving the 2 types of events is getting them in different sequence than that sent by the sender.
Code snippet of the Client
- the handleEvent calls processEvent
- processEvent is synchronized to make sure different thread would not result in order garble
public void handleEvent(java.io.Serializable evt,String eventName)
synchronized public void processEvent(java.io.Serializable evt, String eventName)
if (evt instanceof NEOSCommandResponseEvent)
else if (evt instanceof NEOSMessageEvent)
catch (Exception ee)
Actually two message are coming with-in same milisecond. But order is different from what was published.
Do we need to use TransactedConnection while publishing these messages ?
Re: Message sequence
Monday, June 27, 2005 04:46 AM