Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 08-04-2007
delloby delloby is offline
Registered User
 
Name: delloby
Organization: Baosteel
Project: Hotmill3
 
Join Date: Jul 2005
Posts: 3
Can subscriber be activated by publisher on demand?

hi,
I have a program that subscribe a topic "Demo/Hello" and configure with activation = "on-demand" in IceGrid , can it be activated by publisher?

And how can i detect the connection broken between the IceStorm and the Subscriber ? with periodic calls to ice_ping may be a solution , but I don't think that is a good idea
Reply With Quote
  #2 (permalink)  
Old 08-05-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
Yes. Any remote procedure call will activate the server if the server is registered for on-demand activation, no matter where the call originates from.

Detecting connection loss always requries some form of polling. This is because, in general, TCP/IP does not inform the reader/writer of connection loss unless there is some activity for the connection, that is, someone is trying to read or write to/from the connection. For example, if the wire is physically broken at some point along the chain, you don't find out until you try to read from or write to the connection.

Cheers,

Michi.

Last edited by michi : 08-06-2007 at 11:02 AM.
Reply With Quote
  #3 (permalink)  
Old 08-06-2007
dwayne's Avatar
dwayne dwayne is online now
ZeroC Staff
 
Name: Dwayne Boone
Organization: ZeroC, Inc.
Project: Internet Communications Engine
 
Join Date: Jan 2005
Location: St. John's, Newfoundland
Posts: 209
Quote:
Originally Posted by michi View Post
Yes. Any remote procedure call will activate the server if the server is registered for on-demand activation, no matter where the call originates from.
Note that this will only work for an IceStorm subscriber if the subscriber had previously subscribed to the topic and then exited without unsubscribing. Any further published events will then cause the subscriber to restart and receive the message. If the subsciber unsubscribes when it exits or has never subscribed then it will not get activated by subsequent events since IceStorm will have no knowledge of the subscriber.
Reply With Quote
  #4 (permalink)  
Old 08-08-2007
delloby delloby is offline
Registered User
 
Name: delloby
Organization: Baosteel
Project: Hotmill3
 
Join Date: Jul 2005
Posts: 3
thanks

Quote:
Originally Posted by dwayne View Post
Note that this will only work for an IceStorm subscriber if the subscriber had previously subscribed to the topic and then exited without unsubscribing.

It is hard to meet above requirements!

ps . Persistent subscribers is a solution?
Reply With Quote
  #5 (permalink)  
Old 08-08-2007
matthew's Avatar
matthew matthew is offline
ZeroC Staff
 
Name: Matthew Newhook
Organization: ZeroC, Inc.
Project: Internet Communications Engine
 
Join Date: Feb 2003
Location: NL, Canada
Posts: 1,061
The best solution is persistent subscribers, yes. Another solution would be to send heartbeat messages through IceStorm... if you don't get the heartbeat message then you know something has gone wrong.
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
about Subscriber and Publisher terminate Help Center 1 04-27-2007 01:44 PM
about publisher/subscriber rellik78 Help Center 1 09-15-2006 04:34 AM
IceStorm publisher and subscriber in the same process istvan Help Center 2 05-25-2005 05:26 AM
having issue with on-demand activation BobDeAnna Help Center 12 12-29-2004 12:42 PM
minimal subscriber/publisher demo zhaiyl Help Center 1 03-29-2004 06:32 AM


All times are GMT -4. The time now is 11:37 AM.


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.