Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 08-22-2006
C. Neukom C. Neukom is offline
Registered User
 
 
Join Date: Aug 2006
Posts: 4
agent that subscribes to and publishes multiple topics.

We would like to implement a distributed agent architecture for a System Health Management Testbed, using the IceStorm publish-subscribe service. The distributed system would usually involve 6 - 12 agents sharing data over about a dozen topics.

Are there any examples where individual applications publish several topics and subscribe to several topics at the same time? In the IceStorm example (clock)that comes with the ice software download, both the Publisher and the Subscriber classes inherit from Application. The Application class only allows one thread.
__________________
Christian Neukom
QSS Group Inc.
NASA-Ames Research Center
M/S 269-3
Moffett Field, CA 94035-1000
Project: Advanced Diagnostics And Prognostics Testbed
http://ti.arc.nasa.gov/projects/adapt
Reply With Quote
  #2 (permalink)  
Old 08-22-2006
mes's Avatar
mes mes is online now
ZeroC Staff
 
Name: Mark Spruiell
Organization: ZeroC, Inc.
Project: Ice Developer
 
Join Date: Feb 2003
Location: California
Posts: 976
Hi Chris,

The Application class doesn't place any restrictions on the number of threads your program uses. Perhaps you're thinking of the fact that Application is a singleton class and therefore a program can only create one instance of it?

Take care,
- Mark
Reply With Quote
  #3 (permalink)  
Old 08-22-2006
C. Neukom C. Neukom is offline
Registered User
 
 
Join Date: Aug 2006
Posts: 4
agent that subscribes to and publishes multiple topics

Yes, how can I create multiple instances of a publisher or subscriber in a single application. The singleton class seems to prevent that (it causes an error).
__________________
Christian Neukom
QSS Group Inc.
NASA-Ames Research Center
M/S 269-3
Moffett Field, CA 94035-1000
Project: Advanced Diagnostics And Prognostics Testbed
http://ti.arc.nasa.gov/projects/adapt
Reply With Quote
  #4 (permalink)  
Old 08-22-2006
marc's Avatar
marc marc is offline
ZeroC Staff
 
Name: Marc Laukien
Organization: ZeroC, Inc.
Project: The Internet Communications Engine
 
Join Date: Feb 2003
Location: Florida
Posts: 1,781
I don't understand what multiple publishers or subscribers have to do with the Ice::Application singleton class, and why it would prevent you from doing so. What error do you get exactly?

Regardless of whether you use Ice::Application or initialize the communicator by hand, you simply subscribe to multiple topics or publish to different topics. There is no special trick here. Whether you use the main thread or create your own threads does not matter. What problem do you exactly have?

Last edited by marc : 08-22-2006 at 09:12 PM.
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
Multiple IP addresses mwilson Help Center 1 11-13-2006 03:10 PM
Multiple Ice::CommunicatorPtrs in an application? ctennis Help Center 1 03-21-2006 04:15 PM
Multiple Server Implementations? Paul Drummond Help Center 7 03-14-2006 10:10 AM
Subscriber info for IceStorm topics Nis Baggesen Help Center 19 03-31-2005 10:33 AM
Multiple Adapters Jennie Help Center 1 01-25-2005 06:04 PM


All times are GMT -4. The time now is 05:30 PM.


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