I have a problem with a CDI Event fired from an EJB Timer.
Point is, that the save event can be fired via manual user action (e.g. fired from a CDI SessionScoped bean method). In this case, all registered observers should catch it. But if the the CDI Event fired from the Timer is caught by a SessionScoped bean (which is anyway not required), an exception is thrown that no active Context could be found.
So... how can I tell the CDI eventing mechanism that only ApplicationScoped beans should catch the event, in case it was fired by the EJB Timer ?