1 22 package org.jboss.test.webservice.jbws251; 23 24 import org.jboss.logging.Logger; 25 26 public class HelloJavaBean implements Hello 27 { 28 private Logger log = Logger.getLogger(HelloJavaBean.class); 29 30 public String hello(String inStr) throws BaseException 31 { 32 log.info("hello:" + inStr); 33 34 if (inStr.equals("UserExceptionOne")) 35 throw new UserExceptionOne("just a test"); 36 37 if (inStr.equals("UserExceptionTwo")) 38 throw new UserExceptionTwo("just another test"); 39 40 return inStr; 41 } 42 } 43 | Popular Tags |