Giter Club home page Giter Club logo

websimplemessage's Introduction

Java EE 7 Tutorial: Java Message Service (JMS) API

Java Platform, Enterprise Edition: The Java EE Tutorial. Oracle - web version

The Java EE Tutorial. Oracle - pdf


- websimplemessage

Web applications can use using managed beans to send messages and to receive messages synchronously

It uses sending and receiving Facelets pages as well as corresponding backing beans. When a user enters a message in the text field of the sending page and clicks a button, the backing bean for the page sends the message to a queue and displays it on the page. When the user goes to the receiving page and clicks another button, the backing bean for that page receives the message synchronously and displays it

  1. To activate the message flow in a aplication server WildFly it is necessary to start a full instance of the application server with the following command:

    <HOME_WILDFLY/bin>$ ./standalone.sh -c standalone-full.xml

  2. JMS Connection Factories and JMS Destinations available on the application server can be viewed, created and modified through the administration interface WildFly (Configuration> Subsystems> Messaging - ActiveMQ> default> Queues / Topics).

    For a correct execution it is necessary to create a new Connection Factory with name "java:/jms/factoriaConexiones" and connector type "in-vm" in your aplication server from the administration console.

    For a correct execution it is necessary to create a new target queue "java:/jms/queue/exampleQueue" in your aplication server from the administration console.

  3. Deploy your aplication on a aplication server and in a web browser enter the following URL: http://localhost:8080/websimplemessage

websimplemessage's People

Contributors

lytves avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.