Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 01-12-2007
nbasu33 nbasu33 is offline
Registered User
 
Name: Neil Basu
Organization: Bombay University
Project: Software Engineering
 
Join Date: Jan 2007
Posts: 5
Exception handling in IceStorm

Hello All,

I am a professor in Bombay University and came across Ice. I would like to use this application/architecture for educational project for students of final year of Computer Engineering course.

I am a newbie to Ice and would appreciate your help in understanding/resolving an issue I am currently facing with IceStorm.

From what I understand, IceStorm behaves as a standard JMS within Java world (please correct me if I am wrong). Having said that, JMS has a feature to trap an onException() when the JMS provider such as ActiveMQ is turned off while Subscriber (durable or non-durable) are still connected.

Is there such a feature in IceStorm whereby client/subscriber gets a message/exception when IceStorm is turned off when clients are still connected.

Any suggestions would be beneficial.

Thank you.
Reply With Quote
  #2 (permalink)  
Old 01-12-2007
michi's Avatar
michi michi is offline
ZeroC Staff
 
Name: Michi Henning
Organization: ZeroC
Project: Ice
 
Join Date: Feb 2003
Location: Brisbane, Australia
Posts: 912
No, there is currently no such feature. It would be possible to provide this, but I'm not sure how useful it would be: it assumes an orderly shutdown of IceStorm. However, IceStorm would be just as likely to disappear due to a network or machine failure, in which case no notification could be sent to clients.

An Icestorm server that has been switched off, crashed, or is disconnected due to network failure simply looks like a very slow Icestorm server to subscribers: no new messages arrive. However, subscribers and publishers can easily discover whether IceStorm is running by calling ice_ping on one of the IceStorm objects.

Cheers,

Michi.
Reply With Quote
  #3 (permalink)  
Old 01-12-2007
nbasu33 nbasu33 is offline
Registered User
 
Name: Neil Basu
Organization: Bombay University
Project: Software Engineering
 
Join Date: Jan 2007
Posts: 5
Thank you for a prompt reply.

Do you have any example of how I can use ice_ping?
Reply With Quote
  #4 (permalink)  
Old 01-15-2007
michi's Avatar
michi michi is offline
ZeroC Staff
 
Name: Michi Henning
Organization: ZeroC
Project: Ice
 
Join Date: Feb 2003
Location: Brisbane, Australia
Posts: 912
Have a look at any of the Ice run time tests. Every Ice object supports an operation called ice_ping(). If that operation completes without an exception, the object is reachable and, therefore, its server is running and the object exists.

A search for ice_ping in the documentation will quickly tell you everything you need to know.

Cheers,

Michi.
Reply With Quote
  #5 (permalink)  
Old 01-16-2007
nbasu33 nbasu33 is offline
Registered User
 
Name: Neil Basu
Organization: Bombay University
Project: Software Engineering
 
Join Date: Jan 2007
Posts: 5
Thank You.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ice.Application exception handling henrik Help Center 1 02-11-2007 10:56 AM
Have IceUtil::Exception inherit from std::exception? bpolivka Comments 2 12-13-2006 11:52 AM
signal handling and ice::Application fitzharrys Help Center 11 10-18-2005 06:51 PM
strange exception using IceStorm istvan Bug Reports 5 12-16-2004 12:10 PM
Unknown property "IceBox.DBEnvName.IceStorm" for IceStorm wwwtiger Help Center 1 11-05-2004 03:23 PM


All times are GMT -4. The time now is 01:43 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.