Help Regarding MessageQueue

  • Thread starter Thread starter kiran
  • Start date Start date
K

kiran

Hi,
I am able to sending and recieving the message in text(string) format. I
wnat send the a class or structure to the message queue and recieve the same
class or structure.
How can I do this..?
Please give me a example..?
Which formatter I have to use..?

Regards
kiran kumar
 
You could just serialize to XML and then place the entire XML as a string
into the queue. Alternatively, serialize to binary (i.e. a byte[]) and
convert that to a string using something like Encoding.UTF8.ToString() and
then place that on the queue... at the other end you just do the reverse and
deserialize it.
 
Back
Top