Register Login
Internet / AI Technology University (ITU/AITU)
Created by info@itofthefuture.com
Welcome Anonimous.User to this quiz related to Jms.

Read the question and choose the best answer. Time is limited to 40 seconds!

Important! Do not forget to rank the quality of the question (from bad to excellent).
An initiator of the quiz will get royalty score for QnAs created by her/him and can win the Top Creativity Prize.
Question:
Suppose you had opened a transacted session in a JMS client and execute the following code. What is the result produced by the code?
  
  outMsg.setJMSReplyTo(replyQueue);
  producer.send(outQueue, outMsg);
  consumer = session.createConsumer(replyQueue);
  inMsg = consumer.receive();
  session.commit();

It will work correctly if DIRTY_READ transaction isolation mode is set.



It will throw an exception, because sends and receives are not allowed in a single transaction.



It sends a message and receives a reply.



This code will not work because you are not allowed to call setJMSReplyTo before the message is sent.



It sends a message, but there is no warranty that consumer will receive a reply within the same transaction.



No message is actually sent until
the transaction is committed and the consumer will not receive any reply message.



Rank the Quality of the Question from "-10" (bad) or "0" (not clear) to 10 (correct) or even 20 (very good!)
-10 (bad/wrong) 0 (not clear) 10 (correct) 20 (very good!)
Your summary report will be available to you and your instructor. Thank you for your work!!!