How to get server path without starting FacesContext - running JOB?

0

I have a JOB where I need to download files in order to use them.

My project is Java + JSF + CDI.

It happens that at the time of the execution of JOB I have no user logged in and the return of FacesContext is null because I am not logged in.

I've read in several places that I could inject ContextListener (by using CDI), but I'm not succeeding.

How do I get the web server address?

    
asked by anonymous 07.04.2018 / 21:44

0 answers