Source Listing

Following is a full listing of all source code used in this runnable example.

Implementation Resources

StatusUpdate.java

package org.jboss.ejb3.examples.ch08.statusupdate.api; import java.io.Serializable; /** * Encapsulates a single generic status update. * * As this implementation is only used to show an example of * JMS and EJB MDB processing, we don't follow * strict contracts for {@link Serializable} and accept * the default serialized form. * * @author <a href="mailto:andrew.rubinger@jboss.org">ALR</a> */ public class StatusUpdate implements Serializable { //--------------------------------------------------------------------------|| // Class Members -----------------------------------------------------------|| //--------------------------------------------------------------------------|| /** * serialVersionUID */ private static final long serialVersionUID = 1L; //--------------------------------------------------------------------------|| // Instance Members --------------------------------------------------------|| //--------------------------------------------------------------------------|| /** * Internal status */ private final String status; //--------------------------------------------------------------------------|| // Constructor -------------------------------------------------------------|| //--------------------------------------------------------------------------|| /** * Creates a new status update with the specified new status * * @throws IllegalArgumentException ...

Get Enterprise JavaBeans 3.1, 6th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.