Bug #608

Default configuration is unusable without user configuration

Added by J. Moringen over 12 years ago. Updated over 12 years ago.

Status:ResolvedStart date:10/05/2011
Priority:HighDue date:
Assignee:J. Moringen% Done:

100%

Category:C++
Target version:0.5

Description

When no user configuration (config file, environment variables) is present, the default configuration only contains the Spread transport. It is not possible to programatically use other transports like this:

ParticipantConfig::Transport inprocess = config.getTransport("inprocess");
inprocess.setEnabled(local);
config.addTransport(inprocess);

In the above code, config.getTransport("inprocess") throws an exception unless the inprocess transport has been mentioned in some user configuration.

Associated revisions

Revision 6496340c
Added by J. Moringen over 12 years ago

Some preparatory changes in src/rsb/ParticipantConfig.{h,cpp}
refs #608
  • src/rsb/ParticipantConfig.{h,cpp}: added enabled parameter to
    ParticipantConfig::Transport constructor; allow retrieving a mutable
    reference to ParticipantConfig::eventReceivingStrategy; use
    rsc::runtime::Printable for printing of ParticipantConfig

Revision 2915694d
Added by J. Moringen over 12 years ago

Fixed default transport selection in src/rsb/Factory.cpp
fixes #608
  • src/rsb/Factory.cpp: when constructing the default participant
    configuration, add (disabled) entries for all registered transports
    in the connector factories instead of relying on the presence of
    user configuration; enable the spread

Revision 841fb0c8
Added by J. Moringen over 12 years ago

Added getConnectorInfos in src/rsb/transport/Factory.h
refs #608
  • src/rsb/transport/Factory.h: added getConnectorInfos method to
    ConnectorFactory class

History

#1 Updated by J. Moringen over 12 years ago

  • Status changed from New to In Progress

#2 Updated by J. Moringen over 12 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 0 to 100

Applied in changeset r2803.

Also available in: Atom PDF