VMware Cloud Community
esstokes1
Enthusiast
Enthusiast

AMQP correlationId property

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

0 Kudos
4 Replies
cdecanini_
VMware Employee
VMware Employee

This is a bug that is in the process of being fixed.

Please contact GSS to get an update or wait they contact you back.

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you! Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator for vCenter Orchestrator tips and tutorials - @vCOTeam on Twitter
esstokes1
Enthusiast
Enthusiast

Thanks Christophe, I opened a SR last week and just waiting to hear back that it has been fixed.

0 Kudos
cdecanini_
VMware Employee
VMware Employee

It is coming your way. It just need to go through the complete process.

Christophe.

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you! Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator for vCenter Orchestrator tips and tutorials - @vCOTeam on Twitter
0 Kudos
picg
Contributor
Contributor

Question related to the above context in VCO

I can receive the properties, from the queue message subscription in VCO  , but
when I try to send them through AmqpMessage , the receiving queue
is not just receiving the properties info. for eg appid, correlation id , timestamp , type etc.

var msg = new AMQPMessage(); 
var prop = new Properties(); 
prop.put("type", "someid"); 
msg.bodyAsText = "hello world";
msg.properties = prop; 

Is this a problem with correlation id  or with properties in general?

thank you,

Gayatri

0 Kudos