initSingleParam("logFilePerLaunch", "true", em);
initSingleParam("internalPollingPeriodMs", "10000", em);
initSingleParam("aliveSignalMs", "60000", em);
// Deployment parameters
DeploymentParameter dp = null;
i = (Long) em.createQuery("SELECT COUNT(dp) FROM DeploymentParameter dp WHERE dp.node = :localnode").setParameter("localnode", n)
.getSingleResult();
if (i == 0)
{
dp = new DeploymentParameter();
dp.setNbThread(5);
dp.setNode(n);
dp.setPollingInterval(1000);
dp.setQueue(q);
em.persist(dp);
jqmlogger.info("This node will poll from the default queue with default parameters");
}
else
{