1 22 package org.jboss.test.jmsra.bean; 23 24 import java.rmi.RemoteException ; 25 import javax.ejb.CreateException ; 26 import javax.ejb.EJBException ; 27 28 import org.jboss.test.util.ejb.EntitySupport; 29 30 39 public class PublisherCMPBean 40 extends EntitySupport 41 { 42 public Integer nr; 43 44 public PublisherCMPBean() { 45 } 47 48 public Integer getNr() { 49 return nr; 50 } 51 52 public void setNr(Integer nr) { 53 this.nr = nr; 54 } 55 56 public void ok(int nr) { 57 } 59 60 public void error(int nr) { 61 throw new EJBException ("Roll back!"); 63 } 64 65 67 public Integer ejbCreate(Integer nr) 68 throws CreateException 69 { 70 this.nr = nr; 71 return null; 72 } 73 74 public void ejbPostCreate(Integer nr) 75 throws CreateException 76 { 77 } 78 79 public void ejbLoad() 80 { 81 } 82 83 } | Popular Tags |