473,785 Members | 2,446 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

MSMQ - confused about COM - Invoke COM component (trigger rule)

Okay,

I got confused here.
In order to get the messages out the MSMQ 3, on windows 2003, I need to
invoke a COM component (ProgID).
However, if I compile a class of .NET, and get a DLL, is this considered a
COM component?
If this is the case, should I register it? (against all .NET logic?). Or
because I call it through the ProgID it knows how to locate the DLL by
itself?

Could it be that I have to stick to my component from VB6?

Does anyone have an example of how to get messages from an MSMQ through .NET
code, invoked by the trigger on windows2003?

Thanks to anyone who can deconfuse me.

Leo

Nov 20 '05 #1
1 2818
Hi Leo,
From my reading (and not practical experience.)
You can create a .net component which is then registered with regASM
It is then available to the application that is expecting to see your
original Com component.
As a quick test, you could prototype a .Net component that references
your existing DLL and exposes its public interface.

Re: The MSMQ, System.messagin g name space provides the necessary classes
to create, read, write from queues.

I have just managed to get my first use of this going.

The only trap I found was not paying attention to the formatter used to
write and read the messages.
It was very easy to write messages to the queue but my reader would not
deserialise them.
FWIW.
Bob


Leo Muller wrote:
Okay,

I got confused here.
In order to get the messages out the MSMQ 3, on windows 2003, I need to
invoke a COM component (ProgID).
However, if I compile a class of .NET, and get a DLL, is this considered a
COM component?
If this is the case, should I register it? (against all .NET logic?). Or
because I call it through the ProgID it knows how to locate the DLL by
itself?

Could it be that I have to stick to my component from VB6?

Does anyone have an example of how to get messages from an MSMQ through .NET
code, invoked by the trigger on windows2003?

Thanks to anyone who can deconfuse me.

Leo


Nov 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
2511
by: SunshineGirl | last post by:
I'm trying to trigger an app with the following code from a message queue. It works with only the message box voilà! enabled. But it causes the exception below when it is triggered with the rest of the code. This application works fine when executed by double-clicking on the filename in Explorer. Any ideas? public MonitorForm() { InitializeComponent(); try { SHDocVw.ShellWindows shellWindows = new SHDocVw.ShellWindowsClass();...
1
4646
by: tommy | last post by:
Apart from designing a timer to examine the queue, I know that the new version of MSMQ over XP/2003 platform provides a way called 'MSMQ trigger', anyone had some experience of using it from programmer's point of view? thanks in advance
5
2830
by: Girish G | last post by:
I am trying to invoke a queued component and to my surprise the call succeeds locally but fails when the component resides on a separate box. Both the machines (client and server) in use have MSMQ installed in workgroup mode. I dont seem to get any exceptions or event messages. The outgoing queue on the client shows that messages were sent but no acknowledgements were received. Heres the client code
5
11668
by: Alex Nitulescu | last post by:
Hi. I'm trying to make MSMQ work, so I go to Control Panel, Windows Components, I select MSMQ (Message Queuing Client Setup, actually) and about half-way through I get a nice message box saying The MSMQ service cannot be started. Error code: 0x42C The Dependency service or group failed to start. If I acknowledge, the "installation" continues as if nothing happened, but in the end nothing has been installed.
0
1132
by: Leo Muller | last post by:
Hi, I have a windows 2000 server, and a trigger service with a rule that calls a COM. I want to upgrade this to .NET, but how can I write a COM with .NET? should I just install the DLL? Is there a better way of doing this? Thanks,
11
3583
by: Jon Davis | last post by:
Can a solution built in C# utilize MSMQ and/or MTS? If so, does this make the training material I already have on MSMQ and MTS in the context of VB6 an appropriate prerequisite foundation before learning how to build C# solutions on MSMQ / MTS, if I already know VB6 as well as C#? Jon
7
3092
by: eric | last post by:
hello i'm confused by an example in the book "Effective C++ Third Edition" and would be grateful for some help. here's the code: class Person { public: Person(); virtual ~Person(); // see item 7 for why this is virtual ...
1
4417
jackb
by: jackb | last post by:
Structure of my application is: 1. Message is dispatched to an application 2. That application puts the message in a private queue 3. Another application reads messages from this queue and then calculates the receivers (pager) for this message and then puts single message to different private queues based on receiver types (pager carriers) 4. In the end different receiver console applications are set using MSMQ Triggers such that...
0
2968
jackb
by: jackb | last post by:
Hello there. I have setup triggers on MSMQ private queues I wanted to trace MSMQ Trigger activities for the whole day I tried using trigmon.exe but it shows trace log from the time trigmon.exe is opened But I want to have trace log for the whole day
0
9491
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10357
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10163
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9959
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8988
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6744
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5397
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4063
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3668
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.