Web Service Messaging

Written by Senthil Krishnamurthy from Aspire Systems (India) Pvt. Ltd.

Continued from page 1

What's different about JMS compared with, say, low-level TCP/IP packets and Java Remote Method Invocation (RMI) is that whilerepparttar other methods normally require real-time connectivity and messages that are sent synchronously, JMS systems are more flexible. In asynchronous mode, which isrepparttar 134869 default mode for JMS, clients don't have to be connected allrepparttar 134870 time.

MSMQ MSMQ is Microsoft’s implementation of Messaging. It supports both Point-to-Point and Publisher-Subscriber models for messaging. Messages are typically kept in queues that are managed by Queue managers and applications access MSMQ via a simple client API.

Messages can be prioritized and delivered depending on their position inrepparttar 134871 queue,repparttar 134872 first on queue havingrepparttar 134873 highest priority. Queues can be implemented both in memory as well as on secondary storage such as disk. While express messages are stored in memory, recoverable messages are stored on disk.

There are two types of queues in MSMQ.

Public queues: These are queues published inrepparttar 134874 MQIS (Message Queue Information Store) and replicated throughoutrepparttar 134875 Enterprise. Any computer onrepparttar 134876 Enterprise can hence locate them.

Private queues: These are queues that are not published inrepparttar 134877 MQIS and can only be

accessed by systems that have access torepparttar 134878 full path name or format name ofrepparttar 134879 queue.

Combining Messaging with Web Services A first-generation Web-services-enabled application contains or directly interfaces with a client that communicates with Web services as following image shows

This architecture enablesrepparttar 134880 application to find and communicate with remote systems, but does not implement data reliability, scalability. The addition of Messaging creates a second generation for architecting Web services systems, as shown in following Figure.

The inclusion of messaging servers decouplesrepparttar 134881 application fromrepparttar 134882 tasks of handling messages and web service clients. Applications communicate through an adapter torepparttar 134883 messaging server.

In this new architecture, hybrid Messaging and Web services clients handlerepparttar 134884 bulk ofrepparttar 134885 messaging duties. Information is passed throughrepparttar 134886 Messaging server, which natively handles issues like fail over, load balancing, and guaranteed message delivery. By decouplingrepparttar 134887 Web services client fromrepparttar 134888 application, several applications can effortlessly reuse a single Web services client. Decoupling makes it a simpler process to upgraderepparttar 134889 Web service as inevitable software changes occur. Additionally, an application that becomes busy will have its Web services data automatically queued inrepparttar 134890 Messaging server until it is able to processrepparttar 134891 messages.

Conclusion This decoupled architecture of Messaging and Web service clients is obviously more complex than an application that makesrepparttar 134892 Web service call directly. However, asrepparttar 134893 number of applications and Web services grow,repparttar 134894 importance ofrepparttar 134895 loosely coupled architecture becomes more evident. Messaging formsrepparttar 134896 backbone of many integration projects for good reason: it simplifies and enhancesrepparttar 134897 handling of data. Since Web services are simply another way to integrate information and functionality, it makes sense that Messaging should also be a part of it.

See Also: Coding Tips for Messaging

Related Article: Web Services Interoperability

K.Senthil B.E., is working in Aspire Systems (India) Pvt. Ltd.

Live support from your website? Can you do it for free?

Written by Ed Charkow

Continued from page 1
My business is exploding. I have gotten 15 small copy writing jobs in a matter of days just because they can contact me instantly. In dollar signs this free script has paid for itself quite a few thousand times over. Because ofrepparttar types of service my website provides, there really isn't a way for my clients to just "checkout," most of them need to speak with me and I need to speak with them to give them an accurate quote. They expect someone providing a service like mine to be professional and a live help desk is really helping me do that for my clients.

I'm surerepparttar 134849 fact that my "presence" on-line is now much more professional I will get even more clients on a regular basis because they can contact me easily and my competition might take 3 days to get back to them.

Will it work for your site? Probably, if your selling anything it's nice to be able to talk withrepparttar 134850 folks who are your customers. It leads to more referrals and additional work. If your not putting customer service atrepparttar 134851 top of your priorities your missing out onrepparttar 134852 best part of being a webmaster. Security.

Ed Charkow is the lead programmer at http://www.stmadeveloper.com . Stmadeveloper provides services for webmasters, freelancers, and newsletter publishers.

    <Back to Page 1
ImproveHomeLife.com © 2005
Terms of Use