Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

When to use JMS?!  RSS feed

 
Dayanand Kangala
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,
When do we use JMS?!
My understanding is that whenever we need to connect/integrate multiple applications which may or may not be running in differente platforms (or) whenever the core application need to perform tasks like logging we can use JMS. Please tell me if the above is wrong and if there are many other places where JMS can be used?!
I am developing a small search-engine based application for a site and thinking of using JMS.
The spec. is as follows:
(a) the user will be able to search either by typing a question (or) some words
(b) the engine will take the words typed by the user and match it against a set of keywords. If a keyword matches the typed text, the corresponding paragraph (present against the keyword) will be displayed.
(c) the system will also track the no.of times a keyword is searched
I thought of using JMS for (c). My reasoning is that this operation (logging) will slow down the response time of the search engine. So, if we push all data searched by users to a JMS, another java application running as a deamon thread may read the data from JMS and update the database. What do you think?
Regards,
Dayanand.
 
kettle
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In addition to your understanding, JMS is used when you want to continue processing without worrying about the result of the last command/message you issued/sent.
Yes, for option C JMS is good solution, and it satisfies the above condition.
Kettle
 
Simon Brown
sharp shooter, and author
Ranch Hand
Posts: 1913
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Kettle",
Thanks for joining JavaRanch, but could you just take a quick look at the naming policy and edit your profile accordingly.
Also, only members with valid names will be eligible for the book giveaways.
Thanks,
Simon
Bartender (moderator) of "J2EE and EJB" forum
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!