c# - EasyNetQ not reading messages from queue published with RabbitMQ Java Client API -


we using coldfusion utilising java rabbitmq client api publish messages queue, , using easynetq read messages queue using c#.

the message string.

the java client publishing messages unseralized bytearray content-type of text/plain.

when try , read message queue easynetq.easynetqinvalidmessagetypeexception thrown, no matter type of message defined on easynetq side. have tried byte array , basic object. think easynetq expecting serialized object every time?

the exception getting is

message: 2344462 basicproperties: (content-type=text/plain, content-encoding=, headers=, delivery-mode=1, priori ty=0, correlation-id=, reply-to=, expiration=, message-id=, timestamp=, typ e=, user-id=, app-id=, cluster-id=_)

exception: easynetq.easynetqinvalidmessagetypeexception: message type incorrect. expecte d 'system_byte[]:mscorlib', ''

can please?

easynetq expects json serialized utf-8 body representing .net type given in subscription method , 'type' field of basic properties populated easynetq style type description.

you should use advanced api if want own de-serialization.


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -