Q
Problem solve Get help with specific problems with your technologies, process and projects.

Which of the following objects are safe to cache and are thread safe?

We're using JMS to send out e-mail alerts. Can you tell me which of the following objects are safe to cache and are thread safe...
Context
QueueConnectionFactory
Queue
Connection
QueueSender

All of them are thread-safe, except QueueSender. In summary, only the following JMS classes (and their subclasses) are thread-safe:

- ConnectionFactory
- Connection
- Destination

These are explicitly *not* thread safe:

- Session
- MessageProducer
- MessageConsumer


Dig Deeper on Topics Archive

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchSoftwareQuality

SearchAWS

SearchCloudComputing

TheServerSide.com

Close