advertisement
Login | Register   
  Include Code  Search Tips
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   TIP BANK
Browse DevX
Download the code for this article
Sidebar 1. Java Naming and Directory Interface (JNDI)
Sidebar 2. The Java Message Service (JMS)
What steps—besides using a Facade similar to the one described in this article—should Sun take to make JMS easier?
Partners & Affiliates
advertisement
advertisement
advertisement
advertisement
 

Simplify JMS with the Facade Design Pattern

JMS provides a multitude of classes, but you need to extend or instantiate them before they're of any use. Although the complexity of this process can be daunting, applying the Facade design pattern makes JMS much simpler to use. 


advertisement
he Java Messaging Service (JMS) API, a Sun Microsystems interface for connecting Java programs to enterprise messaging middleware, is composed of multiple object interfaces with a hierarchy of relationships. The JMS class hierarchy in particular is extensive and can seem confusing at first glance. (Figure 1 illustrates the relationships among the classes within JMS.) However, this complexity is necessary for JMS to:
  • Abstract the implementation details of the underlying messaging software
  • Interface with existing messaging systems such as IBM's MQSeries, using familiar JavaBean paradigms
  • Provide and enforce thread-safe code practices
  • Figure 1: The JMS Class Hierarchy (UML)

    It's quick, easy and you get access to all the articles on DevX.
    This registration/login is to allow you to read articles on devx.com.
    Already a member?



    advertisement