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...
Message search is now enhanced, find messages faster. Take it for a spin.

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 #4348 of 4356 |
RE: [msmq] Re: how to store messages permanently!!

ITS NT WORKIN,,,ONCE I RESTART THE SYSTEM NONE OF THE QUES ARE THERE ..



Michael Ledesma <basket_baller@...> wrote:
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:
http://msdn2.microsoft.com/en-us/library/system.messaging.defaultpropertiestosend.aspx

>From: "shahbaz_yousuf555" <shahbaz_yousuf555@yahoo.com>
>Reply-To: msmq@yahoogroups.com
>To: msmq@yahoogroups.com
>Subject: [msmq] Re: how to store messages permanently!!
>Date: Sat, 07 Oct 2006 06:39:06 -0000
>
>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
>
>
>
>
>



How low will we go? Check out Yahoo! Messenger’s low PC-to-Phone call rates.

Sat Oct 7, 2006 1:16 pm

shahbaz_yous...
Offline Offline
Send Email Send Email

Forward
Message #4348 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