February 2002
Beginner to intermediate
544 pages
10h 23m
English
A J2EE application that produces messages or synchronously receives them may use any kind of enterprise bean to perform these operations. The example in Chapter 8 uses a stateless session bean to publish messages to a topic.
Because a blocking synchronous receive ties up server resources, it is not a good programming practice to use such a receive call in an enterprise bean. Instead, use a timed synchronous receive, or use a message-driven bean to receive messages asynchronously. For details about blocking and timed synchronous receives, see Section 4.2.1 on page 29.
Using the JMS API in a J2EE application is in many ways similar to using it in a standalone client. The ...
Read now
Unlock full access