wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

JMS Fundamentals

Total questions: 11

Worksheet time: 6mins

Name
Class
Date
1.

Apache ActiveMQ is a_______

a)

JMS Provider

b)

MOM

c)

Broker

d)

All of these

2.

Which of the following file is used to specify configurations?

a)

jndi

b)

jndi-properties.xml

c)

jndi.properties

d)

jndi.json

3.

JMS API is provided in which of the following package?

a)

java.lang.jms

b)

java.jms

c)

javax.jms

d)

java.api.jms

4.

We can have only one consumer in _____

a)

Parent-Student model

b)

P2P model

c)

Publish subscribe model

d)

None of these

5.

Which of the following is a destination in JMS?

a)

queue

b)

topic

c)

stack

d)

LinkedList

6.

How to access the expired message?

a)

Using msgQueue

b)

Using expiryQueue of a JMS provider

c)

Can't access

d)

None of these

7.

Which of the following method is used to received a body of message?

a)

receiveMsg()

b)

receiveBody()

c)

receiveText

d)

receiveUTF

8.

What is a default priority of a Message ?

a)

1

b)

2

c)

4

d)

9

9.

Which of the following method is used to delay the message delivery?

a)

SetDeliveryDelay(int n);

b)

SetDelay(int n);

c)

SetDelivery(int n);

d)

Thread.sleed(int n);

10.

Which of the following is not a valid Message type?

a)

TextMessage

b)

BytesMessage

c)

StreamMessage

d)

DefaultMessage

11.

Did you enjoy the session? Write a one-liner feedback.

4 lines