In the C and C++ API, a message producer can be created with a null destination.
In the C API, NULL can be passed into the xmsSessCreateProducer() function, to create a message producer with no associated destination. In this case, the destination must be specified when the message is sent. For further details about creating a message producer in a C API, see Session.
To create a message producer with no associated destination when using the C++ API, a default xms::Destination object created using the default constructor must be passed into the Session::createProducer() method. For further details about creating a message producer in a C++ API, see Session.