I use the scheduler service as described at
I use the simplest solution with xxx-scheduler-service.xml.
I want to work with an EJB in my Schedulable class but when I redeploy my application, including the scheduler-service.xml (the scheduler restarts) the Schedulable class can't find the EJB reference anymore. More precisely, the casting before "context.lookup" throws a ClassCastException.
What should I do with the scheduler to find the redeployed EJB-s without stopping the server?