Can you tell me whether TopicPublisher is threadsafe? Can I have 2 threads using the same instance of TopicPublisher at the same time?
In general, is ubermq threadsafe? Thanks.
In general JMS requires that topics, connection factories and connections are thread-safe, but session, publisher & subscriber objects need not be.
So the answer to your question is no, a TopicPublisher cannot be used simultaneously by two different threads. You need to add your own locking. The only thread safe objects in UberMQ are those that are required to be thread-safe by JMS.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.