View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3821614#3821614
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3821614 not exactly a bug but I found that you must implement directly the interface org.jboss.varia.scheduler.Schedulable to use the scheduler service. http://cvs.sourceforge.net/viewcvs.py/jboss/contrib/varia/src/main/org/jboss/varia/scheduler/ in Scheduler.java I created an abstract class that implements Schedulable and then tried to extend that class (for portability) but it doesn't work: "Given class " + pSchedulableClass + " is not instance of Schedulable"; that's because the method getInterfaces only returns the Interfaces declared in the given class (not in its superclasses): public void setSchedulableClass(String pSchedulableClass) ... Class[] lInterfaces = mSchedulableClass.getInterfaces(); ... wouldn't it be better to search in the superclasses to make sure the class really implements (or not) the interface Schedulable? something like this: Class mSchedulableClass = null; Class lSuperClass = null; lSuperClass = mSchedulableClass; while (true) { Class[] lInterfaces = lSuperClass.getInterfaces(); //check Interfaces lSuperClass = mSchedulableClass.getSuperclass(); if (lSuperClass == null) break; } ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
