Sidebar

how can I connect to MSMQ on Windows VM?

0 votes
264 views
asked Mar 8, 2021 by andrei-g-4348 (210 points)

1 Answer

0 votes
I'm not seeing a lot of resources for MSMQ.  In my research, I see three possible approaches.  I also don't know if you plan to send to the queue or read from the queue.

1. Send / Receive via webservices.  It appears that MSMQ has some support for this interactions via webservice.  This option would allow you to send without adding any external libraries or external dependencies.

2. Import Java Libraries.  I found some old open source libraries for connecting to MSMQ. MSMQJava is what I would try first.  It looks like it requires a special DLL to be added to the Java path.

3. If you can access MSMQ via a commandline on the system, you could consider running an external command as described here: https://www.qvera.com/kb/index.php/299/is-there-way-to-have-qie-run-an-external-executable-batch-file?show=299#q299

Hope it helps.
answered Mar 9, 2021 by mike-r-7535 (13,830 points)
...