Skip to Content
0
Former Member
Dec 04, 2008 at 02:39 PM

Job Scheduler

167 Views

A JNDI context look up of scheduler (as shown below) gives a class cast exception at runtime.

try {	
                 InitialContext ctx = new InitialContext();
	         scheduler = (com.sap.scheduler.api.Scheduler) ctx.lookup("scheduler");
	} catch (NamingException ne) {
	    return;
	}

Runtime gives back com.sap.engine.services.scheduler.impl.Scheduler instead of com.sap.scheduler.api.Scheduler. I followed the same steps as detailed out [here|http://help.sap.com/saphelp_nwce10/helpdata/en/44/3e1ed10610376ee10000000a114a6b/content.htm].

Any pointer will be highly appreciated.