Author: chris.laprun(a)jboss.com
Date: 2012-03-12 15:37:32 -0400 (Mon, 12 Mar 2012)
New Revision: 8572
Modified:
components/wsrp/trunk/jcr-impl/src/main/java/org/gatein/wsrp/consumer/registry/JCRConsumerRegistry.java
Log:
- GTNWSRP-279: Avoid updating ProducerInfo when not needed and added changes detection.
Modified:
components/wsrp/trunk/jcr-impl/src/main/java/org/gatein/wsrp/consumer/registry/JCRConsumerRegistry.java
===================================================================
---
components/wsrp/trunk/jcr-impl/src/main/java/org/gatein/wsrp/consumer/registry/JCRConsumerRegistry.java 2012-03-12
19:35:45 UTC (rev 8571)
+++
components/wsrp/trunk/jcr-impl/src/main/java/org/gatein/wsrp/consumer/registry/JCRConsumerRegistry.java 2012-03-12
19:37:32 UTC (rev 8572)
@@ -1,6 +1,6 @@
/*
* JBoss, a division of Red Hat
- * Copyright 2011, Red Hat Middleware, LLC, and individual
+ * Copyright 2012, Red Hat Middleware, LLC, and individual
* contributors as indicated by the @authors tag. See the
* copyright.txt in the distribution for a full listing of
* individual contributors.
@@ -254,7 +254,8 @@
}
else
{
- throw new IllegalArgumentException("There is no ProducerInfo with id
'" + id + "'");
+ log.debug("There is no ProducerInfo with id '" + id +
"'. Return Long.MIN_VALUE for last modified time.");
+ return Long.MIN_VALUE;
}
}
finally