Quantcast
Channel: VMware Communities : Discussion List - vRealize Orchestrator
Viewing all articles
Browse latest Browse all 6251

AMQP correlationId property

$
0
0

I'm trying to set the correlationId (a.k.a. correlation_id on the RabbitMQ server) property on an AMQPMessage and then send the message our RabbitMQ server.  The message is making it to the correct queue on the server but the correlation_id is not in the properties.  Here's the code I'm trying:

 

// broker & exchange are attributes on the workflow

// corrID - i've tried type string and type Any

var props = new Properties();
props.put("correlation_id",corrID);  // i've also tried correlationId
var msg = new AMQPMessage();
msg.bodyAsText = body;
msg.properties = props;
routingKey = "vco.vlc";
broker.send(exchange, routingKey, msg);

 

Is it possible to set this property?  I can get the correlationId from the properties of a message - it does come off as a comma-separated "object" of ascii-code characters (i.e. 123456 is returned as 49,50,51,52,53,54).  I have to do props.get("correlationId").toString() to convert it to string.

 

Thanks


Viewing all articles
Browse latest Browse all 6251

Trending Articles