activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Woolf <ysg...@163.com>
Subject Re: problem in sending messages from CMS to a JMS client.
Date Tue, 04 Nov 2008 01:45:59 GMT

the cpp look like:

session = connection->createSession( Session::AUTO_ACKNOWLEDGE );
destination = session->createQueue( destURI );

producer = session->createProducer( destination );			
producer->setDeliveryMode( DeliveryMode::NON_PERSISTENT );

string filename(file); //no ASCII  char filename

TextMessage* fileMessage = session->createTextMessage( filename );
producer->send( fileMessage );

if (fileMessage != NULL)
	{
	delete fileMessage;
	}






-- 
View this message in context: http://www.nabble.com/problem-in-sending-messages-from-CMS-to-a-JMS-client.-tp20288565p20314687.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message