This content has been marked as final. Show 1 reply
You can't get those values, if you don't have a real request. There are several solutions:
- get the requestpath, from the first user who logs in and put the value in the Application scope and prevent the job to run until you have a useful value.
- Set an application variable (for instance in your DB, in a Jboss managed property ..) and add functionality to manage it.
I prefer the second method, because it gets saved and even if your server goes down it can retrieve the value after startup.