Самые популярные вопросы и ответы для интервью и онлайн-тесты
Образовательная платформа для подготовки к интервью, онлайн-тестов, учебных материалов и живой практики

Развивайте навыки с целевыми маршрутами обучения, пробными тестами и контентом для подготовки к интервью.

WithoutBook объединяет вопросы для интервью по предметам, онлайн-практику, учебные материалы и сравнительные руководства в одном удобном учебном пространстве.

Подготовка к интервью

JMS вопросы и ответы для интервью

Test your skills through the online practice test: JMS Quiz Online Practice Test

Вопрос 1. What is JMS?

Java Message Service (JMS): An interface implemented by most J2EE containers to provide point-to-point queueing and topic (publish/subscribe) behavior. JMS is frequently used by EJB's that need to start another process asynchronously

For example, instead of sending an email directly from an Enterprise JavaBean, the bean may choose to put the message onto a JMS queue to be handled by a Message-Driven Bean (MDB) or another system in the enterprise. This technique allows the EJB to return to handling requests immediately instead of waiting for a potentially lengthy process to complete.

Это полезно? Добавить комментарий Посмотреть комментарии
 

Вопрос 2. What type messaging is provided by JMS?

Both synchronous and asynchronous.

Это полезно? Добавить комментарий Посмотреть комментарии
 

Вопрос 3. How may messaging models do JMS provide for and what are they?

JMS provides for two messaging models, publish-and-subscribe and point-to-point queuing.

Это полезно? Добавить комментарий Посмотреть комментарии
 

Вопрос 4. What is the point-to-point model in JMS?

A point-to-point model is based on the concept of a message queue: 

Senders send messages into the queue, and the receiver reads messages from this queue. 
In the point-to-point model, several receivers can exist, attached to the same queue. However, (Message Oriented Middleware) MOM will deliver the message only to one of them. To which depends on the MOM implementation.

Это полезно? Добавить комментарий Посмотреть комментарии
 

Вопрос 5. What is the publish-and-subscribe model in JMS?

publish-subscribe model is based on the message topic concept: Publishers send messages in a topic, and all subscribers of the given topic receive these messages.

For example, if we subscribe to a facebook page, whenever there is a new post in that page, all subscribers who liked the page receives the notification.

Это полезно? Добавить комментарий Посмотреть комментарии
 

Самое полезное по оценкам пользователей:

Авторские права © 2026, WithoutBook.