Messages by web10/13/2023 1.8.5 Java Architecture for XML Binding.1.8.2 Java Naming and Directory Interface API.1.8 Java EE 7 APIs in the Java Platform, Standard Edition 7.1.7.21 Batch Applications for the Java Platform.1.7.20 Concurrency Utilities for Java EE.1.7.17 Java Authentication Service Provider Interface for Containers.1.7.16 Java Authorization Contract for Containers.1.7.10 Contexts and Dependency Injection for Java EE.1.7.8 Java API for RESTful Web Services.1.7.5 JavaServer Pages Standard Tag Library.1.6 Java EE Application Assembly and Deployment.1.3.6 Enterprise Information System Tier.1.3.3.4 The JavaBeans Component Architecture.1.3 Distributed Multitiered Applications.Table of Contents Java Platform, Enterprise Edition: The Java EE Tutorial Expand | Collapse New FacesMessage("Sent message: " + text) įacesContext.getCurrentInstance().addMessage(null, facesMessage) String text = "Message from producer: " + messageText Ĭontext.createProducer().send(queue, text) The sendMessage method injects a JMSContext (using the default connection factory) and the queue, creates a producer, sends the message the user typed on the Facelets page, and creates a FacesMessage to display on the Facelets page: JMSContext = "java:comp/jms/webappQueue") The class is annotated with to create a component-private queue: = "java:comp/jms/webappQueue", SenderBean.java, a CDI managed bean with one property, messageText, and one business method, sendMessage. The two managed beans for the example are as follows. 46.5.2 The websimplemessage Managed Beans
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |