adplus-dvertising
frame-decoration

Question

When you need access to the JMS template.

a.

setJmsTemplate

b.

getJmsTemplate

c.

getJms

d.

none of the mentioned

Posted under Java Spring Framework

Answer: (b).getJmsTemplate

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. When you need access to the JMS template.

Similar Questions

Discover Related MCQs

Q. Spring provides an implementation of SimpleMessageConvertor to handle the translation of a JMS message received.

Q. By default, the JMS template uses SimpleMessageConverter for converting TextMessage to or from a string.

Q. For your front desk and back office classes, you can send and receive a map using the:-

Q. When you call the receive() method on a JMS message consumer to receive a message.

Q. EJB component which was introduced for asynchronous reception of JMS messages.

Q. MDB must implements interfaces:-

Q. In EJB 3.0, an MDB can be a POJO that implements the MessageListener interface and is annotated with the:-

Q. You create a message listener to listen for JMS messages. This negates the need for the approach taken in BackOfficeImpl in previous recipes.

Q. A message listener must implement the:-

Q. When a JMS message arrives, the onMessage() method will be called with the message as the method argument.

Q. Method to convert MapMessage Object into Spring runtime exception JmsException.

Q. Spring provides several types of message listener containers:-

Q. If you have a transaction requirement in receiving messages, you have to use:-

Q. You have to set the delegate property of MessageListenerAdapter to your target bean.

Q. Using Spring JMS support with a very simple instance of:-

Q. ActiveMQ, provides only one pooled connection factory class alternative.

Q. It caches consumers correctly, or use Spring ConnectionFactory implementations.

Q. Implementation which returns the same underlying JMS connection each time (which is thread-safe according to the JMS API) and ignores calls to the close() method.

Q. Integration of Spring which has each application produce files of shared data for others to consume.

Q. Integration of Spring which has the applications store the data they want to share in a common database.