User: d_jencks
  Date: 02/03/08 13:02:05

  Added:       src/main/org/jboss/test/jmx/ejb EntityABean.java
                        EntityBBean.java
  Log:
  testcase for bug 526465, make sure failed deploys cleans up after itself
  
  Revision  Changes    Path
  1.1                  jbosstest/src/main/org/jboss/test/jmx/ejb/EntityABean.java
  
  Index: EntityABean.java
  ===================================================================
  
  /*
   * JBoss, the OpenSource J2EE webOS
   *
   * Distributable under LGPL license.
   * See terms of license at gnu.org.
   *
   */
  
  package org.jboss.test.jmx.ejb;
  
  
  import java.rmi.RemoteException;
  import javax.ejb.EntityBean;
  import javax.ejb.EntityContext;
  import javax.ejb.RemoveException;
  /**
   * EntityA.java
   *
   *
   * Created: Wed Mar  6 20:08:11 2002
   *
   * @author <a href="mailto:[EMAIL PROTECTED]";>David Jencks</a>
   * @version
   *
   *
   * @ejb:bean   name="EntityA"
   *             jndi-name="EntityA"
   *             view-type="remote"
   *             type="CMP"
   *             cmp-version="2.x"
   *             primkey-field="id"
   * @ejb:pk class="java.lang.Integer"
   * @ejb:finder signature="java.util.Collection findAll()"
   *             unchecked="yes"
   */
  
  public abstract class EntityABean implements EntityBean  
  {
     public EntityABean ()
     {
        
     }
  
     
     
     /**
      * Abstract cmp2 field get-set pair for field id
      * Get the value of id
      * @return value of id
      *
      * @ejb:interface-method
      * @ejb:persistent-field
      */
     public abstract Integer getId();
     
     /**
      * Set the value of id
      * @param id  Value to assign to id
      *
      * @ejb:interface-method view-type="remote"
      */
     public abstract void setId(Integer id);
     
     
     
     /**
      * Abstract cmp2 field get-set pair for field value
      * Get the value of value
      * @return value of value
      *
      * @ejb:interface-method
      * @ejb:persistent-field
      */
     public abstract String getValue();
     
     /**
      * Set the value of value
      * @param value  Value to assign to value
      *
      * @ejb:interface-method view-type="remote"
      */
     public abstract void setValue(String value);
     
  
     
     public void ejbActivate() throws RemoteException 
     {
     }
     
     public void ejbPassivate() throws RemoteException 
     {
     }
     
     public void ejbLoad() throws RemoteException 
     {
     }
     
     public void ejbStore() throws RemoteException 
     {
     }
     
     public void ejbRemove() throws RemoteException, RemoveException 
     {
     }
     
     public void setEntityContext(EntityContext ctx) throws RemoteException 
     {
     }
     
     public void unsetEntityContext() throws RemoteException 
     {
     }
     
  }// EntityA
  
  
  
  1.1                  jbosstest/src/main/org/jboss/test/jmx/ejb/EntityBBean.java
  
  Index: EntityBBean.java
  ===================================================================
  
  /*
   * JBoss, the OpenSource J2EE webOS
   *
   * Distributable under LGPL license.
   * See terms of license at gnu.org.
   *
   */
  
  package org.jboss.test.jmx.ejb;
  
  
  import java.rmi.RemoteException;
  import javax.ejb.EntityBean;
  import javax.ejb.EntityContext;
  import javax.ejb.RemoveException;
  /**
   * EntityB.java
   *
   *
   * Created: Wed Mar  6 20:08:11 2002
   *
   * @author <a href="mailto:[EMAIL PROTECTED]";>David Jencks</a>
   * @version
   *
   *
   * @ejb:bean   name="EntityB"
   *             jndi-name="EntityB"
   *             view-type="remote"
   *             type="CMP"
   *             cmp-version="2.x"
   *             primkey-field="id"
   * @ejb:finder signature="java.util.Collection findAll()"
   *             unchecked="yes"
   * @ejb:pk class="java.lang.Integer"
   * @ejb:resource-ref res-name="datasource"
   *                   res-type="javax.sql.DataSource"
   *                   res-auth="Container"
   * @jboss:resource-ref res-ref-name="datasource"
   *                   resource-name="TestDS" 
   * @jboss:resource-manager res-man-name="TestDS"
   *                   res-man-jndi-name="java:/DeployTestDS" 
   * @jboss:datasource name="java:/DeployTestDS"
   *                   mapping=""
   */
  
  public abstract class EntityBBean implements EntityBean  
  {
     public EntityBBean ()
     {
        
     }
  
     
     
     /**
      * Abstract cmp2 field get-set pair for field id
      * Get the value of id
      * @return value of id
      *
      * @ejb:interface-method
      * @ejb:persistent-field
      */
     public abstract Integer getId();
     
     /**
      * Set the value of id
      * @param id  Value to assign to id
      *
      * @ejb:interface-method view-type="remote"
      */
     public abstract void setId(Integer id);
     
     
     
     /**
      * Abstract cmp2 field get-set pair for field value
      * Get the value of value
      * @return value of value
      *
      * @ejb:interface-method
      * @ejb:persistent-field
      */
     public abstract String getValue();
     
     /**
      * Set the value of value
      * @param value  Value to assign to value
      *
      * @ejb:interface-method view-type="remote"
      */
     public abstract void setValue(String value);
     
  
     
     public void ejbActivate() throws RemoteException 
     {
     }
     
     public void ejbPassivate() throws RemoteException 
     {
     }
     
     public void ejbLoad() throws RemoteException 
     {
     }
     
     public void ejbStore() throws RemoteException 
     {
     }
     
     public void ejbRemove() throws RemoteException, RemoveException 
     {
     }
     
     public void setEntityContext(EntityContext ctx) throws RemoteException 
     {
     }
     
     public void unsetEntityContext() throws RemoteException 
     {
     }
     
  }// EntityB
  
  
  

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

Reply via email to