I currently have a seperate sar file that configures to schedule some tasks. Problem is everytime I add new scheduling tasks, I need to add additional supporting classes to sar file. There are also other issues with classcastexception which I won't go into.
Is it possible to deploy my sar file as part of my webapp so that they use the same classloader... If thats not possible how can I configure Scheduler within my webapp?
You can ... using a .ear deployment. There are tricks to having classes shared by using classloading settings in jboss-web.xml and your jboss-service.xml . Check the Wiki on this.