/** * Called to send messages to a JMS queue regarding new URLs to be crawled. * * @param submission * @throws JMSException */ public void sendMessage(UrlSubmission submission) throws JMSException { UrlMessageCreator creator = new UrlMessageCreator(submission.getJobID(), submission.getUrl(), "user submission"); template.send(destination, creator); log.info("sent submission message to crawler"); } // - sendMessage