TopicPublisher thread safe

  • anonp

    anonp - 2003-01-06


    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.

    • Jimmy P

      Jimmy P - 2003-01-06

      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.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks