1 23 package org.hammurapi.inspectors.testcases.violations; 24 25 import javax.ejb.SessionBean ; 26 import javax.ejb.SessionContext ; 27 28 33 public class LoadNativeLibrariesInEjbRuleViolationTestCase 34 implements SessionBean { 35 36 private static final org.apache.log4j.Logger logger = 37 org.apache.log4j.Logger.getRootLogger(); 38 39 private SessionContext context; 40 41 42 public void ejbCreate() { 43 } 44 45 46 public void ejbPostCreate() { 47 } 48 49 50 public void setSessionContext(final SessionContext pContext){ 51 this.context = pContext; 52 } 53 54 55 public void ejbActivate() { 56 } 57 58 59 public void ejbPassivate() { 60 } 61 62 63 public void ejbRemove() { 64 } 65 66 private static final String MODULE_NAME = "anymodule.so"; 67 68 public void businessMethod() { 69 Runtime runtime = Runtime.getRuntime(); 70 runtime.load(MODULE_NAME); 72 } 73 } 74 75 | Popular Tags |