Reputation: 11
I want to create a C# console application in which my other Java console apps in other machines can query how much messages are in MSMQ.
I'm wondering, how do can I implement that? In what way will they be able to communicate? What's the standard way that most people do this?
Upvotes: 1
Views: 136
Reputation: 2674
Well, actually you already have half the job done with your queue, it all depends on your scenario, but if you want to send messages from one application to another (regardless of the language on which it was built):
it could be by means of a queue, so having a client for the same queue platform will get you going,
another approach is to use wcf services that provide you with more interoperability than tipical web services,
finally there are new technologies out there (in .net is OData), that let you build a RESTful approach, so you can query information in the same way you navigate in a website, so for example: (http://myapplication/users/?id=4) , then any client application (java or c#) can consume it with their own implementation of REST clients.
I'm quite sure there are are many other ways, but this are the ones I have tried already.
Hope it helps.
Upvotes: 1