1 7 8 package org.enhydra.pim; 9 10 import org.enhydra.pim.spec.SpecUtil; 11 12 import com.lutris.appserver.server.ApplicationException; 13 import com.lutris.appserver.server.StandardApplication; 14 import com.lutris.appserver.server.httpPresentation.HttpPresentationComms; 15 import com.lutris.util.Config; 16 import com.lutris.util.ConfigException; 17 18 23 public class Enhydrapim extends StandardApplication { 24 25 29 public void startup(Config appConfig) throws ApplicationException { 30 super.startup(appConfig); 31 boolean useEjb=false; 34 try { 35 useEjb = appConfig.getBoolean("Enhydrapim.UseEjb",false); 36 }catch(ConfigException cex) { 37 cex.printStackTrace(); 38 } 39 SpecUtil.useEjb(useEjb); 40 } 41 public boolean requestPreprocessor(HttpPresentationComms comms) 42 throws Exception { 43 return super.requestPreprocessor(comms); 44 } 45 46 54 public String toHtml() { 55 return "This is <I>EnhydraPim</I>"; 56 } 57 } 58 59 | Popular Tags |