The following QAMessage methods can be used to manage message properties.
You can get and set custom properties, but should only get predefined properties.
.NET methods to manage message properties
C++ methods to manage message properties
Java methods to manage message properties
SQL stored procedures to manage message propertiesSee Message properties.
Example// C++ example. QAManagerFactory factory; QAManager * mgr = factory->createQAManager(); mgr->open(AcknowledgementMode::EXPLICIT_ACKNOWLEDGEMENT); QAMessage * msg = mgr->createTextMessage(); msg->setStringProperty( "tm_Subject", "Some message subject." ); mgr->putMessage( "myqueue", msg ); |
// C# example. QAManager mgr = QAManagerFactory.Instance.CreateQAManager(); mgr.Open(AcknowledgementMode.EXPLICIT_ACKNOWLEDGEMENT); QAMessage msg = mgr.CreateTextMessage(); msg.SetStringProperty( "tm_Subject", "Some message subject." ); mgr.PutMessage( "myqueue", msg ); |
// Java example
QAManager mgr = QAManagerFactory.getInstance().createQAManager();
mgr.open(AcknowledgementMode.EXPLICIT_ACKNOWLEDGEMENT);
QAMessage msg = mgr.createTextMessage();
msg.setStringProperty("tm_Subject", "Some message subject.");
mgr.putMessage("myqueue", msg);
|
-- SQL example
begin
DECLARE @msgid VARCHAR(128);
SET @msgid = ml_qa_createmessage();
CALL ml_qa_setfloatproperty( @msgid, 'myfloatproperty1', -1.3e-5 );
CALL ml_qa_setfloatproperty( @msgid, 'myfloatproperty2', 1.3e5 );
CALL ml_qa_putmessage( @msgid, 'clientid\queuename' );
COMMIT;
end |
![]() |
Discuss this page in DocCommentXchange.
|
Copyright © 2012, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.1 |
