In the C and C++ API, a message producer can be created with a null destination.
The C API allows NULL to 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, see Session for C.
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, see Session for C++.