September 2010
Intermediate to advanced
766 pages
18h 35m
English
Following is a full listing of all source code used in this runnable example.
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 ...