[jboss-user] [JNDI/Naming/Network] - Re: [JBoss 4.0.2] NameNotFoundException: datasource not boun

rufik do-not-reply at jboss.com
Fri Mar 21 10:46:43 EDT 2008


Adding some more info about JobInitializerServlet:
code is within init() method of the servlet (maybe it does matter?), something like that:
public void init(ServletConfig config) throws ServletException {
  |         String lookupName = "java:comp/env/jdbc/cms";
  |         //this code works!
  |         try {
  |             InitialContext ctx = new InitialContext();
  |             ctx.lookup(lookupName);
  |         } catch (Exception e) {
  |             log.error("Error looking up " + lookupName, e);
  |         }
  | 
  |         //this code inside manager doesn't work!
  |         try {
  |             QuartzManager.addAllJobs();
  |         } catch (Exception exc) {
  |             log.error("Error initializing quartz job's manager! ");
  |         }
  | }


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4138302#4138302

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4138302



More information about the jboss-user mailing list