473,382 Members | 1,396 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Help Regarding MessageQueue

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
Nov 17 '05 #1
1 912
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.

"kiran" wrote:
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

Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Chuck Marques | last post by:
I'm trying to implement sending an object through messaging, but I receive an error stating I can't deserialize the object. Any clues as to why. I have the following: <Serializable()> Public...
11
by: Chris | last post by:
Hi, I have MSMQ installed on my domain controller (Win 2003) and on my XP client (developer box). I created a private queue under private queues. I am able to write messages to the queue like ...
2
by: Chris | last post by:
Hi, I needed a way to post a message to MSMQ form SQL Server so I found some info online and created a console app Sub Main(ByVal args() As String) Dim msgQueue As MessageQueue = New...
0
by: Reshma | last post by:
Hello, I have written an application which will post a complex object into MSMQ and read from it. This application works fine as console application but gives error code -1072824176 while...
6
by: James Radke | last post by:
Hello, I have a multithreaded windows NT service application (vb.net 2003) that I am working on (my first one), which reads a message queue and creates multiple threads to perform the processing...
5
by: felecha | last post by:
I have a VB.Net application that runs as a Windows Service and monitors a MessageQueue on another machine. At times that machine will have to be rebooted, so I've been working on how to get my...
2
by: felecha | last post by:
I'm stumped. I'm working on an application in VB.Net that uses System.Messaging.MessageQueue to listen for messages sent to a private queue on a remote machine. Both machines are in the same...
4
by: Risen | last post by:
Hi,All, I read MSDN about MessageQueue,and then I want to write some code to test MessageQueue in Vb.Net 2003. But there are some errors in code,and I don't know which code are incorrect. Who...
5
by: Jason Richmeier | last post by:
I have been unable to locate an answer for this question because (1) it is late in the day and my eyes are tired of looking at code and documentation, (2) I am new to this area of the .NET...
1
by: =?Utf-8?B?RGF2ZSBCb29rZXI=?= | last post by:
Is there any way to create an event that notifies when a message is added to a MessageQueue, without resorting to polling the MessageQueue? I.e., suppose we have a MessageQueue with several...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.