Re: Multi-Threaded Producer
Monday, March 15, 2004 11:44 PM
You have to ensure that the session is used by a single thread at a time. A message producer object (e.g. QueueSender) is created from the session and depends on it. For example, you cannot use 2 message producers from a single session in 2 different threads. The best is to create a distinct session per thread and create your message producer out of that session and only use it from that thread.