1 22 package org.jboss.test.webservice.exception; 23 24 import org.jboss.logging.Logger; 25 26 import javax.ejb.SessionBean ; 27 import javax.ejb.SessionContext ; 28 import java.rmi.RemoteException ; 29 30 32 public class ExceptionBeanImpl implements SessionBean 33 { 34 public void throwException() throws UserException 35 { 36 throw new UserException(); 37 } 38 39 public void throwExceptionWithMessage(String message) throws UserMessageException 40 { 41 throw new UserMessageException(message); 42 } 43 44 public void throwComplexUserException(String message, int code) throws ComplexUserException 45 { 46 throw new ComplexUserException(message, code); 47 } 48 49 public void throwComplexUserArrayException(String message, int[] codes) throws ComplexUserArrayException 50 { 51 ComplexUserArrayException arrEx = new ComplexUserArrayException(message, codes); 52 throw arrEx; 53 } 54 55 57 public void ejbCreate() 58 { 59 } 60 61 public void ejbRemove() 62 { 63 } 64 65 public void ejbActivate() 66 { 67 } 68 69 public void ejbPassivate() 70 { 71 } 72 73 public void setSessionContext(SessionContext sc) 74 { 75 } 76 } 77 | Popular Tags |