• Post Reply Bookmark Topic Watch Topic
  • New Topic

tough question, need quick help  RSS feed

 
xingxing Wang
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi:

I have a swing based client. All data displayed in the client side are pushed via JMS from server side (PSUH mode). My question is that I want to prevent different users to invoke the same business method at the same time. If this happens, the client should display a warning message.
Can anyone provide a better solution to solve this design issue?
Highly appreciate you in advance.

xingxing Wang.
 
Sivaraman Lakshmanan
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Did you tried Synchronizing the method.
 
Shaan Shar
Ranch Hand
Posts: 1249
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or more you can try to make all server side classes as singleton and also the reqesthandler which is generating the multipls request .. singleton...

This might help you a lot..

In our project we are also doing the same.. and we are sucessfully running those applications...


 
Jeff Albertson
Ranch Hand
Posts: 1780
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try giving your posts a more informative subject line. One can assume that all posts to the advanced forum are "tough questions" in the eyes of the poster, and wouldn't we all like quick help?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!