public class VrpWebAction {
private static ExecutorService solvingExecutor = Executors.newFixedThreadPool(4);
public void setup(HttpSession session) {
SolverFactory solverFactory = new XmlSolverFactory(
"/org/drools/planner/examples/vehiclerouting/solver/vehicleRoutingSolverConfig.xml");
Solver solver = solverFactory.buildSolver();
session.setAttribute(VrpSessionAttributeName.SOLVER, solver);
URL unsolvedSolutionURL = getClass().getResource("/org/drools/planner/webexamples/vehiclerouting/A-n33-k6.vrp");
VrpSchedule unsolvedSolution = (VrpSchedule) new VehicleRoutingSolutionImporter()
.readSolution(unsolvedSolutionURL);