Document Information Preface Part I Introduction 1. Overview 2. Using the Tutorial Examples Part II The Web Tier 3. Getting Started with Web Applications 4. Java Servlet Technology 5. JavaServer Pages Technology 6. JavaServer Pages Documents 7. JavaServer Pages Standard Tag Library 8. Custom Tags in JSP Pages 9. Scripting in JSP Pages 10. JavaServer Faces Technology 11. Using JavaServer Faces Technology in JSP Pages 12. Developing with JavaServer Faces Technology 13. Creating Custom UI Components 14. Configuring JavaServer Faces Applications 15. Internationalizing and Localizing Web Applications Part III Web Services 16. Building Web Services with JAX-WS 17. Binding between XML Schema and Java Classes 18. Streaming API for XML 19. SOAP with Attachments API for Java Part IV Enterprise Beans 20. Enterprise Beans 21. Getting Started with Enterprise Beans 22. Session Bean Examples 23. A Message-Driven Bean Example Part V Persistence 24. Introduction to the Java Persistence API 25. Persistence in the Web Tier 26. Persistence in the EJB Tier 27. The Java Persistence Query Language Part VI Services 28. Introduction to Security in the Java EE Platform 29. Securing Java EE Applications 30. Securing Web Applications 31. The Java Message Service API A Java EE Application That Uses the JMS API with a Session Bean Writing the Application Components for theclientsessionmdb Example Coding the Application Client:MyAppClient.java Coding the Publisher Session Bean Coding the Message-Driven Bean:MessageBean.java Creating Resources for theclientsessionmdb Example Building, Deploying, and Running theclientsessionmdb Example Using NetBeans IDE Building, Deploying, and Running theclientsessionmdb Example Using Ant A Java EE Application That Uses the JMS API with an Entity Overview of theclientmdbentity Example Application Writing the Application Components for theclientmdbentity Example Coding the Application Client:HumanResourceClient.java Coding the Message-Driven Beans for theclientmdbentity Example Coding the Entity Class for theclientmdbentity Example Creating Resources for theclientmdbentity Example Building, Deploying, and Running theclientmdbentity Example Using NetBeans IDE Building, Deploying, and Running theclientmdbentity Example Using Ant An Application Example That Consumes Messages from a Remote Server Overview of theconsumeremote Example Modules Writing the Module Components for theconsumeremote Example Creating Resources for theconsumeremote Example Using Two Application Servers for theconsumeremote Example Building, Deploying, and Running theconsumeremoteModules Using NetBeans IDE Building, Deploying, and Running theconsumeremote Modules Using Ant An Application Example That Deploys a Message-Driven Bean on Two Servers Overview of thesendremote Example Modules Writing the Module Components for thesendremote Example Coding the Application Client:MultiAppServerClient.java Coding the Message-Driven Bean:ReplyMsgBean.java Creating Resources for thesendremote Example Using Two Application Servers for thesendremote Example Building, Deploying, and Running thesendremote Modules Using NetBeans IDE Building, Deploying, and Running thesendremote Modules Using Ant 33. Transactions 34. Resource Connections 35. Connector Architecture Part VII Case Studies 36. The Coffee Break Application 37. The Duke's Bank Application Part VIII Appendixes A. Java Encoding Schemes B. About the Authors Index | | The Java EE 5 Tutorial |  |
Chapter 32Java EE Examples Using the JMS APIThis chapter provides examples that show how to use the JMS APIwithin a Java EE application in the following ways: Using a session bean to send messages that are consumed by a message-driven bean using a message selector and a durable subscription Using an application client to send messages that are consumed by two message-driven beans; the information from them is stored in a Java Persistence API entity Using an application client to send messages that are consumed by a message-driven bean on a remote server Using an application client to send messages that are consumed by message-driven beans on two different servers
The examples are in the following directory: tut-install/javaeetutorial5/examples/jms/ To build and run the examples, you will do the following: Use NetBeans IDE or the Ant tool to compile and package the example. Use the Ant tool to create resources. Use NetBeans IDE or the Ant tool to deploy the example. Use NetBeans IDE or the Ant tool to run the client.
Each example has abuild.xml file that refers to files in the followingdirectory: tut-install/javaeetutorial5/examples/bp-project/ SeeChapter 23, A Message-Driven Bean Example for a simpler example of a Java EE application thatuses the JMS API. Copyright © 2010, Oracle and/or its affiliates. All rights reserved.Legal Notices |