?
Solved

MSMQ and ASP

Posted on 2003-03-27
6
Medium Priority
?
437 Views
Last Modified: 2012-05-04
Hi experts,

I'm in need of using MSMQ with ASP.  Did a search on the net but couldn't really found the information that I'm looking for.  I'm a sort of new to ASP and MSMQ.  I'd like to know how to access to MSMQ from ASP, available methods/functions, (if possible) sample codes, etc...  If you can point me to right directions, I'd greatly appreciate it.

Thanks in advance,
gibb
0
Comment
Question by:gibberish3ll3
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 4

Accepted Solution

by:
anderson22 earned 150 total points
ID: 8222297
I can help you with code if you present a synopsis of what you are trying to do.  Below are a couple of references:

Describing the MSMQ Functionality:
http://msdn.microsoft.com/library/en-us/dnproasp2/html/workingwithqueuesmessages.asp

Example using MSMQ from ASP:
http://msdn.microsoft.com/library/en-us/dnproasp2/html/creditpayment.asp

-rca
0
 

Author Comment

by:gibberish3ll3
ID: 8225952
Hi anderson22,

Thanks for the URLs.

What I'm trying to do with MSMQ is that we have a huge amount of SQL query job that needs to be executed from time to time.  Depending on the server workload at that time of execution, this ASP script times out.  To solve this problem, I'd like to send a SQL query job to MSMQ asynchronously and to have MSMQ handle job executions in the background while ASP pages keep moving forward.  I know that this can be done with ASP and MSMQ but just don't know how yet.  Doing more research...

Thanks,
gibb
0
 

Author Comment

by:gibberish3ll3
ID: 8226020
BTW, are there any limitations on MSMQ, such as maximum character length or size which a message can consist, the number of message which MSMQ can hold, etc...?

Thanks in advance,
gibb
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 4

Expert Comment

by:anderson22
ID: 8247680
Sorry I haven't responded sooner.  I have been doing a little research.  It appears that there are not too many limitations on MSMQ as far as string lengths etc.  I guess it is important to know that this will have a direct effect on system resources.

I don't see any reason why you would have problems doing what you have described.

-rca
0
 

Author Comment

by:gibberish3ll3
ID: 8247746
Hi anderson22,

thanks for your post.

Do you happen to know why "Set query = Server.CreateObject("MSMQ.MSMQQuery")" fails on my server?  I get the following error message.

Server object error 'ASP 0177 : 800401f3'
Server.CreateObject Failed
/testplan/msmq.asp, line 7
Invalid ProgID. For additional information specific to this message please visit the Microsoft Online Support site located at: http://www.microsoft.com/contentredirect.asp.

Thanks in advance,
gibb
0
 
LVL 4

Expert Comment

by:anderson22
ID: 8250699
You need to install MSMQ from the Windows Add/Remove Components (under Add/Remove Programs).

On Windows 2000 or XP it should be labeled Message Queueing Services.

Add this and you should be set.

-rca
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:   The Exchange of informatio…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question