1 25 package org.objectweb.easybeans.tests.common.ejbs.stateless.containermanaged.ejb2view; 26 27 import java.rmi.RemoteException ; 28 29 import javax.ejb.CreateException ; 30 import javax.ejb.Init ; 31 import javax.ejb.Local ; 32 import javax.ejb.LocalHome ; 33 import javax.ejb.Remote ; 34 import javax.ejb.RemoteHome ; 35 import javax.ejb.Stateless ; 36 import javax.ejb.TransactionAttribute ; 37 import javax.ejb.TransactionAttributeType ; 38 39 45 @Stateless 46 @Remote (CMTEjb2View.class) 47 @Local (CMTEjb2LocalView.class) 48 @RemoteHome (CMTEjb2ViewHome.class) 49 @LocalHome (CMTEjb2ViewLocalHome.class) 50 public class CMTEjb2ViewBean{ 51 52 56 @Init 57 public void initLocal() throws CreateException { 58 59 } 60 61 66 @Init 67 public void initRemote() throws CreateException , RemoteException { 68 69 } 70 71 75 @TransactionAttribute (TransactionAttributeType.MANDATORY) 76 public void attributeMandatory() throws RemoteException { 77 78 } 79 80 84 @TransactionAttribute (TransactionAttributeType.NEVER) 85 public void attributeNever() throws RemoteException { 86 87 } 88 89 92 @TransactionAttribute (TransactionAttributeType.MANDATORY) 93 public void attributeMandatoryLocal(){ 94 95 } 96 97 101 @TransactionAttribute (TransactionAttributeType.NEVER) 102 public void attributeNeverLocal(){ 103 104 } 105 106 } 107 | Popular Tags |