blob: ea07ea0b845542b4e6628cf7556fdcece3d41b7f [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<meta name="copyright" content="Copyright (c) 2000, 2008 IBM Corporation and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at https://www.eclipse.org/legal/epl-2.0/. Contributors: IBM Corporation - initial API and implementation" />
<meta name="DC.rights.owner" content="(C) Copyright 2000, 2008" />
<meta content="public" name="security" />
<meta content="index,follow" name="Robots" />
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<meta content="concept" name="DC.Type" />
<meta name="DC.Title" content="Message-driven Beans" />
<meta name="abstract" content="" />
<meta name="description" content="" />
<meta content="message-driven beans, overview" name="DC.subject" />
<meta content="message-driven beans, overview" name="keywords" />
<meta scheme="URI" name="DC.Relation" content="../topics/messbwiz.html" />
<meta content="XHTML" name="DC.Format" />
<meta content="messb" name="DC.Identifier" />
<meta content="en-us" name="DC.Language" />
<link href="../../../org.eclipse.wst.doc.user/common.css" type="text/css" rel="stylesheet" />
<title>Message-driven Beans</title>
</head>
<body id="messb"><a name="messb"><!-- --></a>
<h1 class="topictitle1">Message-driven Beans</h1>
<div><p />
<p>A <strong>message-driven bean</strong> is an enterprise bean that allows Java™ EE
applications to process messages asynchronously. It acts as a Java Message
Service (JMS) message listener, which is similar to an event listener except
that it receives messages instead of events. The messages may be sent by any Java EE
component - an application client, another enterprise bean, or a Web component
- or by a JMS application or system that does not use Java EE
technology.</p>
<p>In JMS, a message is a Java object with two parts: a <strong>header</strong> and
a <strong>body</strong>. The header is composed of delivery information and metadata.
The message body carries the application data, which can take several forms:
text, serializable objects, byte streams, etc. The JMS API defines several
message types (<strong>TextMessage, MapMessage, ObjectMessage</strong>, and others)
and provides methods for delivering messages to and receiving messages from
other applications.</p>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="../topics/messbwiz.html" title="You can use a wizard to create a message-driven bean and add it to your project.">Creating Message-driven Beans</a></div>
</div>
</div>
</body>
</html>