• Post Reply Bookmark Topic Watch Topic
  • New Topic

JMS example

 
George Chang
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Is there a good example(other than the "Chat " example) where JMS can be used in a web based application?I kind of hazy about its use.

Thanks
George Chang
 
Rahul Juneja
Ranch Hand
Posts: 425
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
George,

Even I was looking for this answer but you know what, I encountered one very good example for this that infact we implemented in our application.

Take an example of a Audit Log's in financial terms. I mean there is an application which allocates various Stocks or Growth plans to its employees and administrator wants to log these granting along with quantity, date and user in the database, so that whenever administrator wants he could see the audit log which is generated from the Database.
So in this scenario there may be thousands of transactions done in minutes and to log those transaction in the DB the best technique we could use was JMS Queues.

What we were doing was logging all the transaction activity through JMS queues and making call to entity from there and entering it into the Database.

Can you think of any other option for this logging ?

Cheers,
Rahul
 
George Chang
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Rahul for the reply.I will go thru this example you have supplied in detail.
 
George Chang
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rahul,
Is there a way to use JMS during a user registration process when using a web application?What I mean to say is Suppose you a user trying to sign up.Now there could be multiple steps involved in this sign up process.So assuming that the application has a large user base is it appropriate to use JMS to prevent resources from being tied up during the sign up process.This is just a thought.

Thanks in advance.

GC
 
Rahul Juneja
Ranch Hand
Posts: 425
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
George,

U know what, may be u clicked the rite nerve. and we can surely think on this if we can.

What I think is yes we can use JMS to prevent resources from being tied up during the sign up process, but i think that won't be a good choice to go with because JMS is mostly preferred where the acknowledgment if of least importance but here in the case of signup user should be displayed the message that his user is created and will be activated in sometime or through some error if we find any problem with database insertions.

okay think of scenario where user fills up the sign up form and you pass the request to JMS and at the same time displays message to user that his id will be activated in say 24 hrs. but while creation of the record you find some problem with the system and system crashes and his record is not created. but in this case user is expecting that his id will be ready in another 24 hrs, which is not the case.

So, I think not a good choice.

What do you say on that.

Cheers,
Rahul
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!