.NETGURU
mmmMessage Queue
Messages   Related Types
This message was discovered on ASPFriends.com 'ngfx-messaging' list.


Ahmed, Salman
-- Moved from [debatejavavsnet] to [ngfx-messaging] by Charles Carroll <Click here to reveal e-mail address> --

Who has expierience with Message Queue?

Please provide me with practical examples of its implementation and
explanations~~~~~~~~~~

Reply to this message...
 
    
Ahmed, Salman
Hello,

I installed MSMQ for Win2k PROfessional. I don't seem to see the MSMQ
administrative tool? I have read that you can create QUEUE labels etc from
it...where can I find it?

Reply to this message...
 
    
Ahmed, Salman
Found it!
Its in computer management if anybody else was curious.

-----Original Message-----
From: Ahmed, Salman [mailto:Click here to reveal e-mail address]
Sent: Thursday, March 07, 2002 9:14 AM
To: ngfx-messaging
Subject: [ngfx-messaging] mmmMessage Queue

Hello,

I installed MSMQ for Win2k PROfessional. I don't seem to see the MSMQ
administrative tool? I have read that you can create QUEUE labels etc from
it...where can I find it?

| [ngfx-messaging] member Click here to reveal e-mail address = YOUR ID
| http://www.aspfriends.com/aspfriends/ngfx-messaging.asp = JOIN/QUIT

Reply to this message...
 
    
Wally McClure
open up an empty copy of the MMC and add the Computer Management component.
MSMQ admin is underneath 'Services and Applications'.

Wally

-----Original Message-----
From: Ahmed, Salman [mailto:Click here to reveal e-mail address]
Sent: Thursday, March 07, 2002 9:14 AM
To: ngfx-messaging
Subject: [ngfx-messaging] mmmMessage Queue

Hello,

I installed MSMQ for Win2k PROfessional. I don't seem to see the MSMQ
administrative tool? I have read that you can create QUEUE labels etc from
it...where can I find it?

| [ngfx-messaging] member Click here to reveal e-mail address = YOUR ID
| http://www.aspfriends.com/aspfriends/ngfx-messaging.asp = JOIN/QUIT

Reply to this message...
 
    
Karell Ste-Marie
Salman,

Hello my Friend,

(On the computer with MSMQ)
Try under Control Panel -> Administrative Tools -> Computer Management

Expand "Services and Applications" and the MSMQ Admin tool will be in
the list.

____________________________________
Karell Ste-Marie
C.I.O. BrainBank Inc. - MCSE, MCP+I
=20
=20

-----Original Message-----
From: Ahmed, Salman [mailto:Click here to reveal e-mail address]=20
Sent: Thursday, March 07, 2002 9:14 AM
To: ngfx-messaging
Subject: [ngfx-messaging] mmmMessage Queue

Hello,

I installed MSMQ for Win2k PROfessional. I don't seem to see the MSMQ
administrative tool? I have read that you can create QUEUE labels etc
from it...where can I find it?

| [ngfx-messaging] member Click here to reveal e-mail address =3D YOUR ID=20
| http://www.aspfriends.com/aspfriends/ngfx-messaging.asp =3D JOIN/QUIT

Reply to this message...
 
    
Ahmed, Salman
I am attempting to recieve a message that I have sent to a Queue, am I
porting a sample I found in VB to C#...I have a problem.

Type[] targetTypes = new Type[1];
targetTypes[0] = GetType(string);

myMessage.Formatter = new XmlMessageFormatter(targetTypes);

The above code doesn't not work at GetType can only be: GetType();

The VB code is setting the type as above: GetType(String)

The type is required for the formatter, anybody have experience with this?

-----Original Message-----
From: Karell Ste-Marie [mailto:Click here to reveal e-mail address]
Sent: Thursday, March 07, 2002 9:59 AM
To: ngfx-messaging
Subject: [ngfx-messaging] RE: mmmMessage Queue

Salman,

Hello my Friend,

(On the computer with MSMQ)
Try under Control Panel -> Administrative Tools -> Computer Management

Expand "Services and Applications" and the MSMQ Admin tool will be in
the list.

____________________________________
Karell Ste-Marie
C.I.O. BrainBank Inc. - MCSE, MCP+I

-----Original Message-----
From: Ahmed, Salman [mailto:Click here to reveal e-mail address]
Sent: Thursday, March 07, 2002 9:14 AM
To: ngfx-messaging
Subject: [ngfx-messaging] mmmMessage Queue

Hello,

I installed MSMQ for Win2k PROfessional. I don't seem to see the MSMQ
administrative tool? I have read that you can create QUEUE labels etc
from it...where can I find it?

| [ngfx-messaging] member Click here to reveal e-mail address = YOUR ID
| http://www.aspfriends.com/aspfriends/ngfx-messaging.asp = JOIN/QUIT

| [ngfx-messaging] member Click here to reveal e-mail address = YOUR ID
| http://www.aspfriends.com/aspfriends/ngfx-messaging.asp = JOIN/QUIT

Reply to this message...
 
    
Ahmed, Salman
One computer sends a XML to a remote server that receives this XML. I want
to gaurantee delivery so I began experimenting with MSMQ.

Computer A sends a XML to the QUEUE.
Computer B has to somehow recieve this message and end the transaction. I
understand how to do this programatically when the MSMQ is setup on my local
system as I am running win2k pro that only allows for private queues. To
move to a public queue is simply setting it up on a server box I presume.

Question: How does ComputerB know when to receive from the Queue? With
Classic ASP and now queuing the ASP on computerB would simply wait for a XML
to be posted and react accordingly....how does this work with MSMQ? I hope
it is not polling the queue on ComputerA?

Reply to this message...
 
    
Alex Lowe
Salman,

Try......

targetTypes[0] = typeof(string);

Hth,

Alex - AspFriends.com Moderation Team
Microsoft MVP - ASP.NET

***********************************************************
Have a question about using client side coding in your ASP.NET pages?
Send your question to [aspngclient]
(http://www.aspfriends.com/aspfriends/aspngclient.asp)
***********************************************************

[Original message clipped]

Reply to this message...
 
    
Alex Lowe
Salman,

Yes, you need to write code that polls the message queue. Generally
speaking, there are two scenarios you will face:

1) A user will sit on Computer B and launch a application that shows
them some information. In this case, you will poll the queue in your
windows client application.
2) Computer B does not have a end user and just does some processing
(inserts records in a database for example). In this case, you would
write a windows service that would poll the queue and then act
accordingly.

Hth,

Alex - AspFriends.com Moderation Team
Microsoft MVP - ASP.NET

***********************************************************
Have a question about using client side coding in your ASP.NET pages?
Send your question to [aspngclient]
(http://www.aspfriends.com/aspfriends/aspngclient.asp)
***********************************************************

[Original message clipped]

Reply to this message...
 
    
Ahmed, Salman
I figured it out.

It is:

targetTypes[0] = Type.GetType("string");

Apparently GetType is from some other library.

-----Original Message-----
From: Alex Lowe [mailto:Click here to reveal e-mail address]
Sent: Thursday, March 07, 2002 5:57 PM
To: ngfx-messaging
Subject: [ngfx-messaging] RE: mmmMessage Queue

Salman,

Try......

targetTypes[0] = typeof(string);

Hth,

Alex - AspFriends.com Moderation Team
Microsoft MVP - ASP.NET

***********************************************************
Have a question about using client side coding in your ASP.NET pages?
Send your question to [aspngclient]
(http://www.aspfriends.com/aspfriends/aspngclient.asp)
***********************************************************

[Original message clipped]

| [ngfx-messaging] member Click here to reveal e-mail address = YOUR ID
| http://www.aspfriends.com/aspfriends/ngfx-messaging.asp = JOIN/QUIT

Reply to this message...
 
    
Ahmed, Salman
Alex,

are you 100% sure these are the only options?
There is NO way of making the MSMQ service notify another registered server
that a message has arrived? (ie. some sort of PUSH mechanism?)

If there is nothing, a better way than polling would be to:

Send the Message
ASPTear over to another ASP(x) page that would make a call to the queue
(.recieve).
(it would also be nice if the .receieve would reference a ID to ensure you
are grabbing the correct thing of the stack!).

Comments?

-----Original Message-----
From: Alex Lowe [mailto:Click here to reveal e-mail address]
Sent: Thursday, March 07, 2002 6:07 PM
To: ngfx-messaging
Subject: [ngfx-messaging] RE: mmmMessage Queue

Salman,

Yes, you need to write code that polls the message queue. Generally
speaking, there are two scenarios you will face:

1) A user will sit on Computer B and launch a application that shows
them some information. In this case, you will poll the queue in your
windows client application.
2) Computer B does not have a end user and just does some processing
(inserts records in a database for example). In this case, you would
write a windows service that would poll the queue and then act
accordingly.

Hth,

Alex - AspFriends.com Moderation Team
Microsoft MVP - ASP.NET

***********************************************************
Have a question about using client side coding in your ASP.NET pages?
Send your question to [aspngclient]
(http://www.aspfriends.com/aspfriends/aspngclient.asp)
***********************************************************

[Original message clipped]

| [ngfx-messaging] member Click here to reveal e-mail address = YOUR ID
| http://www.aspfriends.com/aspfriends/ngfx-messaging.asp = JOIN/QUIT

Reply to this message...
 
    
Alex Lowe
Salman,

Yes, there is no built-in push mechanism.

You could hook into the Arrive event of MSMQ and have something (i.e.
make a call to some page using something like ASPTear - not related but
I would use the Webclient class instead of ASPTear) happen everytime a
message is received.

The MessageQueue class has a RecieveById method that will grab a message
off the queue based on a ID. The Message class has a ID property that is
used by RecieveById.

Hth,

Alex - AspFriends.com Moderation Team
Microsoft MVP - ASP.NET

***********************************************************
Have a question about using client side coding in your ASP.NET pages?
Send your question to [aspngclient]
(http://www.aspfriends.com/aspfriends/aspngclient.asp)
***********************************************************

[Original message clipped]

Reply to this message...
 
    
Ahmed, Salman
Alex (sorry for keeping coming back at you),

there is no 'arrive' event for MSMQ that I can find, I have searched msdn
and found nothing. There is a peek_completed_event &
recieved_complelelte_event...but nothing in regards to arriving in the
queue? If u can find a link or know of the event that would be great!

-----Original Message-----
From: Alex Lowe [mailto:Click here to reveal e-mail address]
Sent: Thursday, March 07, 2002 6:50 PM
To: ngfx-messaging
Subject: [ngfx-messaging] RE: mmmMessage Queue

Salman,

Yes, there is no built-in push mechanism.

You could hook into the Arrive event of MSMQ and have something (i.e.
make a call to some page using something like ASPTear - not related but
I would use the Webclient class instead of ASPTear) happen everytime a
message is received.

The MessageQueue class has a RecieveById method that will grab a message
off the queue based on a ID. The Message class has a ID property that is
used by RecieveById.

Hth,

Alex - AspFriends.com Moderation Team
Microsoft MVP - ASP.NET

***********************************************************
Have a question about using client side coding in your ASP.NET pages?
Send your question to [aspngclient]
(http://www.aspfriends.com/aspfriends/aspngclient.asp)
***********************************************************

[Original message clipped]

| [ngfx-messaging] member Click here to reveal e-mail address = YOUR ID
| http://www.aspfriends.com/aspfriends/ngfx-messaging.asp = JOIN/QUIT

Reply to this message...
 
    
Ahmed, Salman
You can recieveByID, but while sending you would have to know the ID of the
message so you can tell the receiving side which ID to look for. Does
anyone know the method that will give me the ID of the message I am sending
so I can tell the receiving method to pick-up the message with the ID.

-----Original Message-----
From: Alex Lowe [mailto:Click here to reveal e-mail address]
Sent: Thursday, March 07, 2002 6:50 PM
To: ngfx-messaging
Subject: [ngfx-messaging] RE: mmmMessage Queue

Salman,

Yes, there is no built-in push mechanism.

You could hook into the Arrive event of MSMQ and have something (i.e.
make a call to some page using something like ASPTear - not related but
I would use the Webclient class instead of ASPTear) happen everytime a
message is received.

The MessageQueue class has a RecieveById method that will grab a message
off the queue based on a ID. The Message class has a ID property that is
used by RecieveById.

Hth,

Alex - AspFriends.com Moderation Team
Microsoft MVP - ASP.NET

***********************************************************
Have a question about using client side coding in your ASP.NET pages?
Send your question to [aspngclient]
(http://www.aspfriends.com/aspfriends/aspngclient.asp)
***********************************************************

[Original message clipped]

| [ngfx-messaging] member Click here to reveal e-mail address = YOUR ID
| http://www.aspfriends.com/aspfriends/ngfx-messaging.asp = JOIN/QUIT

Reply to this message...
 
    
Damien McCartney
Hi Salman,
I am experiencing the same design issue but I think that i may have an alternative if you are using MSMQ 2.0 or 3.0 you may be able to employ the new trigger funcionality avaiable.

Cheers D

--------------------------------
From: Damien McCartney
Reply to this message...
 
 
System.Messaging.MessageQueue
System.Messaging.XmlMessageFormatter
System.Type




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification