User: jules_gosnell
  Date: 02/01/06 15:54:17

  Modified:    jetty/src/main/org/jboss/jetty/ejb
                        CoarseHttpSessionBean.java
  Log:
  abstract out the pieces that need to plug into Sacha's JMX Session stuff
  fix up javadoc for generated code too
  
  Revision  Changes    Path
  1.3       +23 -2     
contrib/jetty/src/main/org/jboss/jetty/ejb/CoarseHttpSessionBean.java
  
  Index: CoarseHttpSessionBean.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/contrib/jetty/src/main/org/jboss/jetty/ejb/CoarseHttpSessionBean.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- CoarseHttpSessionBean.java        2002/01/04 18:21:15     1.2
  +++ CoarseHttpSessionBean.java        2002/01/06 23:54:17     1.3
  @@ -8,17 +8,21 @@
   import javax.ejb.EntityContext;
   import javax.ejb.RemoveException;
   import org.apache.log4j.Category;
  +import org.jboss.jetty.AbstractHttpSessionData;
   import org.jboss.jetty.interfaces.CoarseHttpSession;
   import org.jboss.jetty.interfaces.CoarseHttpSessionData;
   
  +//----------------------------------------
  +
   /**
    * The Entity bean represents an HttpSession.
    *
    * @author [EMAIL PROTECTED]
  - * @version $Revision: 1.2 $
  + * @version $Revision: 1.3 $
    *
    *   @ejb:bean name="jetty/CoarseHttpSession" type="CMP" 
jndi-name="ejb/jetty/CoarseHttpSession" primkey-field="id"
    *   @ejb:pk class="java.lang.String"
  + *   @ejb:data-object implements="org.jboss.jetty.AbstractHttpSessionData"
    *
    *   @jboss:table-name "Jetty_CoarseHttpSession"
    *   @jboss:create-table "true"
  @@ -28,7 +32,7 @@
    **/
   
   public abstract class CoarseHttpSessionBean
  -   implements EntityBean
  +  implements EntityBean, AbstractHttpSessionData
   {
     Category _log=Category.getInstance(getClass().getName());
   
  @@ -271,6 +275,23 @@
      * @ejb:transaction type="Supports"
      */
     public abstract void setMaxInactiveInterval(int maxInactiveInterval);
  +
  +  //----------------------------------------
  +  // AttributesWerePassivated
  +
  +  /**
  +   * @ejb:interface-method
  +   * @ejb:persistent-field
  +   * @ejb:transaction type="Supports"
  +   */
  +  public abstract boolean getAttributesWerePassivated();
  +
  +  /**
  +   * @ejb:interface-method
  +   * @ejb:persistent-field
  +   * @ejb:transaction type="Supports"
  +   */
  +  public abstract void setAttributesWerePassivated(boolean 
attributesWerePassivated);
   
     //----------------------------------------
     // Bulk accessor
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to