cat -n cat -n src/org/spec/jappserver/orders/orderauditses/ejb/OrderAuditSesEJB.java
121 /** 122 * Method setSessionContext 123 * 124 * 125 * @param sc 126 * 127 */ 128 public void setSessionContext(SessionContext sc) { 129 130 InitialContext initCtx; 131 try { 132 initCtx = new InitialContext(); 133 dataSource = 134 (javax.sql 135 .DataSource) initCtx 136 .lookup("java:comp/env/OrdersDataSource"); 137 } catch (NamingException e) { 138 debug.printStackTrace(e); 139 140 throw new EJBException("Failure looking up DataSource " + e); 141 } 142 143 try { 144 145 int debugLevel = 146 ((Integer) initCtx.lookup("java:comp/env/debuglevel")) 147 .intValue(); 148 149 if (debugLevel > 0) { 150 debug = new DebugPrint(debugLevel, this); 151 debugging = true; 152 } else { 153 debug = new Debug(); 154 debugging = false; 155 } 156 } catch (NamingException ne) { 157 System.out.println(className + ":debuglevel Property not set. " 158 + "Turning off debug messages"); 159 debug = new Debug(); 160 } 161 162 if (debugging) 163 debug.println(3, "setSessionContext"); 164 } 165 166 View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3849364#3849364 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3849364 ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php _______________________________________________ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development