Question: How do I communicate between two clients that are on different machines on a network using JMS?
Answer: I want to use a standalone application for communicating between the machine and I want to pass the message using JMS. You can make two JMS client applications, say AppA and AppB. Make AppA listen to topic ‘forA’. Make AppB listen to topic ‘forB’. If AppA sends a message to topic ‘forB’, AppB will receive it. If AppB sends a message to topic ‘forA’, AppA will receive it.
Question:
How do I communicate between two clients that are on different machines on a network using JMS? Answer:
I want to use a standalone application for communicating between the machine and I want to pass the message using JMS. You can make two JMS client applications, say AppA and AppB. Make AppA listen to topic ‘forA’. Make AppB listen to topic ‘forB’. If AppA sends a message to topic ‘forB’, AppB will receive it. If AppB sends a message to topic ‘forA’, AppA will receive it. 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
Is it possible to acknowledge individual messages on a queue without affecting previously received, but as yet unacknowledged, messages?