Search the web
Sign In
New User? Sign Up
msmq · Microsoft MSMQ Discussion List
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
how to store messages permanently!!   Message List  
Reply | Forward Message #4345 of 4356 |
Re: how to store messages permanently!!

hello,,Thanks for your reply.The link which u had told me to refer
shows the following code

Dim msmqMessage As System.Messaging.Message
msmqMessage = New System.Messaging.Message("Hello World")
msmqMessage.Recoverable = True 'default is False
but the code which i have already written is something like shown below
i dnt have a message object which has this property of recoverrable.How
can i modify this now.
Thanks and Regards,

Shahbaz Yousuf




Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim QUEUE_NAME As String = ".\private$\myprivq"
Dim msqQ As System.Messaging.MessageQueue
Dim msgText As String

Dim s As String
s = TextBox1.Text
msgText = s
msqQ = GetQ(QUEUE_NAME)
msqQ.Send(msgText)
TextBox1.Text = ""

End Sub


Private Function GetQ(ByVal queueName As String) As
System.Messaging.MessageQueue
Dim msgQ As System.Messaging.MessageQueue
Dim queue_name As String = ".\private$\myprivq"

If Not System.Messaging.MessageQueue.Exists(queueName) Then
Try

msgQ = System.Messaging.MessageQueue.Create(queueName)
Catch CreateException As Exception

Throw New Exception("Error Creating Queue",
CreateException)
End Try
Else
Try
msgQ = New System.Messaging.MessageQueue(queueName)
Catch GetException As Exception
Throw New Exception("Error Getting Queue", GetException)
End Try
End If
Return msgQ
End Function








Sat Oct 7, 2006 6:39 am

shahbaz_yous...
Offline Offline
Send Email Send Email

Forward
Message #4345 of 4356 |
Expand Messages Author Sort by Date

Hello ppl..i am new to msmq..I am trying to store messages from asp.net into message que.The messages are gettin store in the que.But once i switch off my...
shahbaz_yousuf555
shahbaz_yous...
Offline Send Email
Oct 6, 2006
5:27 pm

You need to set the recoverable message property to true. This will write the message to disk, but will impact performance greatly. (See white paper ...
Michael Ledesma
basket_baller2
Offline Send Email
Oct 6, 2006
7:12 pm

hello,,Thanks for your reply.The link which u had told me to refer shows the following code Dim msmqMessage As System.Messaging.Message msmqMessage = New...
shahbaz_yousuf555
shahbaz_yous...
Offline Send Email
Oct 7, 2006
6:41 am

The sample code in that article is VB6. You need to figure out how the recoverable property is exposed in the language you are using. Try this: ...
Michael Ledesma
basket_baller2
Offline Send Email
Oct 7, 2006
12:27 pm

ITS NT WORKIN,,,ONCE I RESTART THE SYSTEM NONE OF THE QUES ARE THERE .. Michael Ledesma <basket_baller@...> wrote:...
shahbaz yousuf
shahbaz_yous...
Offline Send Email
Oct 7, 2006
1:22 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help