2

I want to use MSMQ for my ongoing project. I have not done this ever. According to tutorials I understand that its provided by Microsoft for windows environment. Is is possible this can be done in linux because I have to test it in OpenShift cloud which is linux based. Or there may be other possibility that we can connect to MSMQ in Windows from a client present in linux. For client i have to use java. is it possible to do ?

or MSMQ should be present in both the machines where server and client are located?

Thanks, Yashu

3
  • 1
    You wouldn't use MSMQ - it's a windows only, proprietary technology. If you're wanting to do message passing, probably start your research with Java Message Service Commented Jul 17, 2014 at 7:24
  • Hi, Thanks for the reply. I have already worked on other messaging services like active MQ, rabbit MQ , Hornet Q etc. But this was completely new. So wanted to confirm whether this can be done from java client using ip address of machine where MSMQ is running to pass the message. It would be great if you can clarify things with respect to MSMQ.
    – priyank
    Commented Jul 17, 2014 at 8:27
  • ZeroMQ is also very popular and across all platforms.
    – G Hx
    Commented Jan 28, 2015 at 21:55

1 Answer 1

6

MSMQ is a proprietary Microsoft technology that runs on Windows Server, that being done you cannot talk directly to it unless you go through Microsoft protocols first (like SMB) and properly set up security.

If you ABSOLUTELY want to send MSMQ messages from a Linux box to a Windows box (which will be running MSMQ) then it would be a lot easier for you to create a service (like a REST service in IIS) which would take HTTP/REST calls and forward them to MSMQ for you than to hack the protocol and the security until you can get it to work.

If you have ample time and resources to waste, you could eventually get it to work - I'll even give you a head start and let you know that you'll need to mimick a Microsoft Distributed Transaction Coordinator in order to hack the protocol... Really not worth the whole effort but thank God no, you don't need to run MSMQ on the client per se in order to send messages but that all depends on what you are trying to do.

Personally...

I would use Rabbit MQ if you are already familiar with it, it can work on Windows Server so you could use AMQP to send messages through Rabbit MQ from Linux and have something on the Windows box process them.

To be candid... this sounds like one of these questions where you may be more curious about the "is it possible" curiosity than the "should I even do it" question.

1
  • the problem with an AMQP based solution is that there is no local service managing a local queue allowing for automatic delivery retries in the event of network failure.
    – MetaFight
    Commented Sep 19, 2019 at 14:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.