I am trying to get a list of jobs that were stored in Spring tables related to a package in a database using:
List<JobExecution> jobExecutions = jobExplorer.getJobExecutions(jobInstance);
The above method call calls the ExecutionContextRowMapper.mapRow method in the JdbcExecutionContextDao class.
ExecutionContextRowMapper uses the com.thoughtworks.xstream.Xstream.fromXML method to deserialize the JSON string of the JobExecutionContext object stored in the DB.
It seems that the incorrect xml deserializer is used by default to unleash the JSONified JobExecutionContext. Is there any configuration to use the JSON deserializer in this scenario.
source share