|
INTERVIEW QUESTIONS
J2EE
JMS
DETAILS
Question: How to create a durable subsriber ?
Answer: Having performed the normal setup, an application can create a durable subscriber to a destination. To do this, the client program creates a durable TopicSubscriber, using session.createDurableSubscriber. The name subName is used as an identifier of the durable subscription. session.createDurableSubscriber( Topic topic, java.lang.String subName, java.lang.String messageSelector, boolean noLocal); Alternatively, you can use the two-argument form of this operation, which takes only a topic and name (subName) as parameters. This alternative form invokes the four-argument operation with null as the messageSelector and false as the noLocal parameters.A JMS durable subscription is created with a unique identifier of the form clientID+"##"+subName. The characters ## should not be used in the clientID or subName if the JMS connection is to use a durable
|
|
|
Category |
JMS Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.3) By 9193 users |
Added on |
7/14/2011 |
Views |
73039 |
Rate it! |
|
|
Question:
How to create a durable subsriber ?
Answer:
Having performed the normal setup, an application can create a durable subscriber to a destination. To do this, the client program creates a durable TopicSubscriber, using session.createDurableSubscriber. The name subName is used as an identifier of the durable subscription. session.createDurableSubscriber( Topic topic, java.lang.String subName, java.lang.String messageSelector, boolean noLocal); Alternatively, you can use the two-argument form of this operation, which takes only a topic and name (subName) as parameters. This alternative form invokes the four-argument operation with null as the messageSelector and false as the noLocal parameters.A JMS durable subscription is created with a unique identifier of the form clientID+"##"+subName. The characters ## should not be used in the clientID or subName if the JMS connection is to use a durable Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
|
Related Questions |
View Answer |
|
what is the use of JMS?In which situations we are using JMS?Can we send message from one server to another
|
View Answer
|
|
What are the three components of a Message ?
|
View Answer
|
|
What kind of information found in the header of a Message ?
|
View Answer
|
|
What is the diffrence between JAVA Mail and JMS Queue
|
View Answer
|
|
What is JMS?
|
View Answer
|
|
What is the difference between queue and topic?
|
View Answer
|
|
What is the difference between Point to Point and Publish/Su
|
View Answer
|
|
What is Producer, Consumer?
|
View Answer
|
|
What is the difference between Message producer and Message consumer?
|
View Answer
|
Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.
View All JMS Interview Questions & Answers - Exam Mode /
Learning Mode
|