Splash › Forums › PrettyFaces Users › Can PrettyFaces be used in Quartz job? › Reply To: Can PrettyFaces be used in Quartz job?
I think the PrettyConfig is available as a servlet context attribute. So something like this could also work:
ServletContext context = ...;
PrettyConfig config = context.getAttribute(PrettyContext.CONFIG_KEY);
UrlMapping mapping = config.getMappingById(mappingId);
PrettyURLBuilder builder = new PrettyURLBuilder();
String targetURL = builder.build(mapping, false, params);
Perhaps a bit simpler. But I’m not sure if this also works. 🙂
If you find our tools useful, please consider making a donation to help us stay online and building software!