theLink 10.0
Loading...
Searching...
No Matches
Internal - atlmqmsgque::MqFactoryC Add

The context is a instance from a subclass of MqContextC

+ Collaboration diagram for Internal - atlmqmsgque::MqFactoryC Add:

The context is a instance from a subclass of MqContextC

The constructor require a tmpl argument with default "MK_NULL"

Example from example_code.atl setup a server called MyServer with one service MYTO

myooX::ClassN ::MyServer {
  SuperI ::MqContextC
  ...
  proc MyServer {myNs {tmpl ""}} {
    MqContextC $myNs $tmpl
    ConfigSetServerSetup $myNs serverSetup
    ...
  }
  proc $myNs serverSetup {} {
    ServiceCreate $myNs "MYTO" myService
    ...
  }
  ...
}

# package-main
MqMsgque::Main {
  ...
  # create "MyServer" factory... and make it to the default.
  set fct   [MqFactoryC::Default [MqFactoryC::Add ::MyServer]]
  ...
}