Google


ADBRITE ads links
You are here: CodeIdol.com > Java > The Java EE 5 Tutorial, Third Edition: For Sun Java System Application Server Platform > A Message Driven Bean Example

SAVE
Digg
Shown on del.icio.us del.icio.us
See Whos Talking About This on Technorati Technorati
I've Reddit reddit

The Java EE 5 Tutorial, Third Edition: For Sun Java System Application Server Platform



23. A Message-Driven Bean Example Message-driven beans can implement any messaging type. Most commonly, they implement the Java Message Service (JMS) technology. The example in this chapter uses JMS technology, so you should be familiar with...



Example Application Overview The SimpleMessageApp application has the following components: SimpleMessageClient: An application client that sends several messages to a queueSimpleMessageEJB: A message-driven bean that asynchronously receives and ...



The Application Client The SimpleMessageClient sends messages to the queue that the SimpleMessageBean listens to. The client starts by injecting the the connection factory and queue resources: @Resource(mappedName="jms/ConnectionFactory") ...



The Message-Driven Bean Class The code for the SimpleMessageBean class illustrates the requirements of a message-driven bean class: It must be annotated with the @MessageDriven annotation if it does not use a deployment descriptor.The class must ...



Packaging, Deploying, and Running the SimpleMessage Example To package, deploy and run this example, go to the <INSTALL>/javaeetutorial5/examples/ejb/simplemessage/ directory. Creating the Administered Objects This example requires the f...



Creating Deployment Descriptors for Message-Driven Beans By using resource injection and annotations, you avoid having to create a standard ejb-jar.xml deployment descriptor file for a message-driven bean. However, in certain situations you still ...


SAVE
Digg
Shown on del.icio.us del.icio.us
See Whos Talking About This on Technorati Technorati
I've Reddit reddit

You are here: CodeIdol.com > Java > The Java EE 5 Tutorial, Third Edition: For Sun Java System Application Server Platform > A Message Driven Bean Example
   
Related tags







Popular Categories
Unix books and guides
AJAX popular information
C# language guides
Windows books and cookbooks
.......






© CodeIdol Labs, 2007