Click here to Skip to main content
16,012,843 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,
I have recently started learning MSMQ . Can someone suggest some online book or link to get started.

I have basic knowledge of installing and create a queue on local machine.

thanks
Vishal
Posted

I've made several solutions using MSMQ, and for c# I've found the
System.Messaging[^] documentation very useful.

Just spend some time browsing through the documentation - and this might be of particular interest: MessageQueue.ReceiveCompleted[^] - as it suggest a pattern of design I've found very useful.

Regards
Espen Harlinn
 
Share this answer
 
Comments
Nish Nishant 20-Feb-11 18:38pm    
Good suggestion, voted 5.
Henry Minute 20-Feb-11 22:28pm    
From the OP - posted as a question:
Thanks Guys! ok here is the problem.. i am trying to understand a senario explained below

I have created a private queue on my local machine "Myqueue"

Then i created a Customer class having some basic properties of FirstName, LastName, ID, Zipcode etc

and then I created a Customers class which is a clooection of Customer type created earlier

now when i am trying to send the Customers object after populating the data it works fine

I have posted the code in a separate post, here is the link

http://www.codeproject.com/Questions/159907/trying-to-write-and-read-Customer-collection-to-MS.aspx


now when i am trying to retrieve the Customers from the queue it fails with the error message given below and on the line of code "Customers myCustomers = (Customers)recievedMessage.Body;"

Error Message :

"Target type array is missing. The target type array must be set in order to deserialize the XML-formatted message."

Please let me know if more information required.

Thanks once again appreciated your help!

- Vishal
Adding to what Espen said, here are two articles on CodeProject on the topic:

Programming MSMQ in .NET - Part 1[^]

Programming MSMQ in .NET - Part 2: Transactional Messaging[^]
 
Share this answer
 
Comments
Espen Harlinn 20-Feb-11 19:07pm    
Good articles, a 5
Nish Nishant 20-Feb-11 19:08pm    
Thanks.
Henry Minute 20-Feb-11 22:28pm    
From the OP - posted as a question:
Thanks Guys! ok here is the problem.. i am trying to understand a senario explained below

I have created a private queue on my local machine "Myqueue"

Then i created a Customer class having some basic properties of FirstName, LastName, ID, Zipcode etc

and then I created a Customers class which is a clooection of Customer type created earlier

now when i am trying to send the Customers object after populating the data it works fine

I have posted the code in a separate post, here is the link

http://www.codeproject.com/Questions/159907/trying-to-write-and-read-Customer-collection-to-MS.aspx


now when i am trying to retrieve the Customers from the queue it fails with the error message given below and on the line of code "Customers myCustomers = (Customers)recievedMessage.Body;"

Error Message :

"Target type array is missing. The target type array must be set in order to deserialize the XML-formatted message."

Please let me know if more information required.

Thanks once again appreciated your help!

- Vishal

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900