I understood that JMS is used to process synch messages, so what is the difference to use JMS or just take something like that?
public void synchronized doSomething(Message message) {
//do something sync
}
Thank you.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I am actually not sure what you mean by “synch messages”. The key concept behind JMS is asynchronous messaging. So a sender/publisher simply calls
send(Message)which is a non-blocking call. It thus does not need to wait for the receiver/consumer to finish processing.