Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

A few doubts about blocking GUI

 
Maciej Kwiecien
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi All,

I am wondering if anyone (who has collected SCJD certiificate) implemented client that is capable of canceling blocking RMI calls. Let me elaborate a bit what I am up to...
Let's assume we call method "book" that consist of blocking "lock" invocation - till record lock is obtained client is blocked (blocked not in terms of suspended/hanged GUI - swing invoker helps you sort this out but you just hang on RMI invocation). There is a good explanation how to do a workaround for RMI blocking calls: http://forums.sun.com/thread.jspa?threadID=569998

However there is no single word about cancel requirement in my assignment so I really don't know if it is worth to make such effort to implement the workaround.
On the other hand client that hangs after calling 'book' action seems to be a little bit non-professional...
Please advise what your approach was.

Regards,
Maciej
 
Roberto Perillo
Bartender
Posts: 2271
3
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Howdy, Maciej!

Champion, I think I got your point, which is, it may look like the client's GUI has frozen since the booking functionality requires the locking mechanism. The answer is, there is absolutely no need to worry about it.


On the other hand client that hangs after calling 'book' action seems to be a little bit non-professional...


That's true. But it'll be soooooo fast that you won't even notice!
 
Maciej Kwiecien
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Roberto for your answer - I wanted to just double check if my approach is right.
Now I am far more confident about 'non-blocking GUI requirement' and my design gets simplified

Regards,
Maciej
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic