Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 07-26-2005
jaggu jaggu is offline
Registered User
 
Name: Todd M
Organization: Inc
Project: Testing
 
Join Date: Jul 2005
Posts: 11
Unable to publish messge on IceStorm

I think its about my config, but could not figure out what.

On Subscriber I have
ObjectAdapter adapter = getCommunicator().createObjectAdapter("Subscriber" );

Config:
Subscriber.Endpoints=default

On Icestorm Trace I get:

[ icebox-IceStorm: Topic: Subscribe: a:ca:25:5d:-2d424b91:10553b2c088:-8000 ]
[ icebox-IceStorm: Subscriber: a:ca:25:5d:-2d424b91:10553b2c088:-8000: publish failed: .\Reference.cpp:1103: Ice::NoEndp
ointException:
no suitable endpoint available for proxy `"a:ca:25:5d:-2d424b91:10553b2c088:-8000" -o' ]

Thanks so much
Reply With Quote
  #2 (permalink)  
Old 07-26-2005
mes's Avatar
mes mes is offline
ZeroC Staff
 
Name: Mark Spruiell
Organization: ZeroC, Inc.
Project: Ice Developer
 
Join Date: Feb 2003
Location: California
Posts: 971
Hi,

Are you sure that your subscriber is seeing the configuration you've defined? One way to verify that your configuration file is being loaded is to add the property Ice.PrintAdapterReady=1. When you run the subscriber, the Ice run time should print a line indicating the Subscriber adapter is ready (upon adapter activation). If you don't see this line being printed, that is an indication that your configuration file is not being loaded.

Another alternative is to use createObjectAdapterWithEndpoints:

ObjectAdapter adapter =
getCommunicator().createObjectAdapterWithEndpoints ("Subscriber", "default");

Take care,
- Mark
Reply With Quote
  #3 (permalink)  
Old 07-26-2005
jaggu jaggu is offline
Registered User
 
Name: Todd M
Organization: Inc
Project: Testing
 
Join Date: Jul 2005
Posts: 11
yep my bad. Two set of config files.
Do we have to put in xxx.Endpoints=default for all the adaptors we create ?
I could have a bunch of servers using same Adaptor name is that ok. Or I should have different adaptor names

Thanks
Reply With Quote
  #4 (permalink)  
Old 07-26-2005
mes's Avatar
mes mes is offline
ZeroC Staff
 
Name: Mark Spruiell
Organization: ZeroC, Inc.
Project: Ice Developer
 
Join Date: Feb 2003
Location: California
Posts: 971
Quote:
Do we have to put in xxx.Endpoints=default for all the adaptors we create ?
Yes. It is legal to create an object adapter without endpoints, therefore you must specify an endpoint if you want it to have one.
Quote:
I could have a bunch of servers using same Adaptor name is that ok. Or I should have different adaptor names
Yes, servers can share the same adapter name. You would only need to worry about conflicts among adapters when using IcePack, in which case you would have to ensure that each adapter is registered with a unique id.

Take care,
- Mark
Reply With Quote
  #5 (permalink)  
Old 07-26-2005
bernard's Avatar
bernard bernard is online now
ZeroC Staff
 
Name: Bernard Normier
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Palm Beach Gardens, FL
Posts: 816
Quote:
Originally Posted by jaggu
Do we have to put in xxx.Endpoints=default for all the adaptors we create ?
Also keep in mind what xxx.Endpoints=default means!

Unless you set Ice.Default.Protocol, it's equivalent to
xxx.Endpoints=tcp

i.e. this creates a TCP endpoint: the port is allocated by the OS, and the interface is the one that corresponds to Ice.Default.Host (the local hostname if it's not defined).

Cheers,
Bernard
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
Unable to override LocatorCacheTimeout zhi Help Center 5 12-14-2006 10:14 PM
How to publish the topic dynamicly and automatically in icestorm? Jason Gao Help Center 4 08-24-2006 06:32 AM
For mode publish&subscribe terminate Help Center 1 02-10-2006 12:55 AM
Unable to compile Ice-2.0.0 on RH ES Linux vsonnathi Bug Reports 2 11-23-2004 02:26 PM
does icestorm publish data in multi-cast way? paul_1971 Help Center 1 04-13-2004 01:37 AM


All times are GMT -4. The time now is 10:50 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.