const cms::Destination *d =
DestinationManager.Manage(jmsmsg->getCMSReplyTo());
from .h file
vector<const cms::Destination *> destinations;
from .cpp file
const cms::Destination *DestinationManager::Manage(
const cms::Destination *inDestination)
{
ActiveMQDestination *newmqdest = (ActiveMQDestination*)inDestination;
for (size_t x=0;x<destinations.size();x++)
{
ActiveMQDestination *oldmqdest =
(ActiveMQDestination*)destinations[x];
if (newmqdest->equals(oldmqdest))
return destinations[x];
}
const cms::Destination *clone = inDestination->clone(); // clone it
destinations.push_back(clone); // and save the clone
return clone;
}
--
View this message in context:
http://activemq.2283324.n4.nabble.com/CMS-get-name-of-destination-how-to-tp2552032p2718019.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.