* {@link JobQueue}s.
* @return A new implementation of a {@link JobQueue}.
*/
public static JobQueue getJobQueueServiceFromFactory(String serviceFactory) {
Class clazz = null;
JobQueueFactory factory = null;
try {
clazz = Class.forName(serviceFactory);
factory = (JobQueueFactory) clazz.newInstance();
return factory.createQueue();
} catch (ClassNotFoundException e) {
e.printStackTrace();
LOG.log(Level.WARNING,
"ClassNotFoundException when loading jobqueue factory class "
+ serviceFactory + " Message: " + e.getMessage());