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.