.NETGURU
designing with com+ and MS Queue
Messages   Related Types
This message was discovered on ASPFriends.com 'ngfx-messaging' list.


David Winslow
Hey,

I want to write and application that can do the following:

Tools avaible :
MessageQueue
MS components server (com+)
Dotnet

Scenario:

Message1 is added to a MS queue
A instance of appgetmessage (app1) is created
App1 gets the message in the queue

Message1 is added to a MS queue (while app1 is still busy)
A instance of appgetmessage (app2) is created
App2 gets the message in the queue

Message3 is added to a MS queue (while app2 is still busy)
Now app1 is ready and handles this message

Questions:

1. Can I use com+ to achieve this?
2. Is there a better way of doing load balancing for this scenario?
3. Can Com+ subscribe to and event like "messagequeue file added"?

Thank you for reading this!

I would really appricate any feedback, thought etc on this subject.

Thank you

David
Reply to this message...
 
    
Dot Net Guruhew Arnheiter
I would try to build the solution differently. I would create one thread
for retrieving messages off of the message queue and then pass the message
along to worker threads to do the work with those messages. You can then
use a thread pool to manage the worker threads and use which ever thread is
currently not doing any work. Your scenarios would look more like:

The Listen thread receives message1 from the queue and asks the thread pool
for a thread. The pool returns thread1 and thread1 processes message1.
The Listen thread receives message2 from the queue and asks the thread pool
for a thread. The pool knows that thread1 is still busy so it returns
thread2 and thread2 processes message2.
etc.

Dot Net Guruhew Arnheiter
Chief Software Architect
GoAmerica Communications Corp.
-----Original Message-----
From: David Winslow [mailto:Click here to reveal e-mail address]
Sent: Saturday, December 29, 2001 3:02 PM

I want to write and application that can do the following:

Scenario:

Message1 is added to a MS queue
A instance of appgetmessage (app1) is created
App1 gets the message in the queue

Message1 is added to a MS queue (while app1 is still busy)
A instance of appgetmessage (app2) is created
App2 gets the message in the queue

Message3 is added to a MS queue (while app2 is still busy)
Now app1 is ready and handles this message

Questions:

1. Can I use com+ to achieve this?
2. Is there a better way of doing load balancing for this scenario?
3. Can Com+ subscribe to and event like "messagequeue file added"?
Reply to this message...
 
 
System.Messaging.MessageQueue




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