Author: chris.laprun(a)jboss.com
Date: 2010-04-22 19:33:56 -0400 (Thu, 22 Apr 2010)
New Revision: 2747
Modified:
components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/consumer/ProducerInfo.java
Log:
- GTNWSRP-30: Added possibility to force registration modification when we might need it.
Modified:
components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/consumer/ProducerInfo.java
===================================================================
---
components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/consumer/ProducerInfo.java 2010-04-22
22:23:54 UTC (rev 2746)
+++
components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/consumer/ProducerInfo.java 2010-04-22
23:33:56 UTC (rev 2747)
@@ -427,7 +427,7 @@
// we might be in a situation where the producer changed the
registration back to the initial state
// which is, granted, pretty rare... attempt modifyRegistration
log.debug("modifyRegistration was called after
OperationFailedFault when a check of registration data didn't reveal any
issue...");
- modifyRegistration();
+ modifyRegistration(true);
}
result.setRegistrationResult(registrationResult);
@@ -1062,11 +1062,16 @@
public void modifyRegistration() throws PortletInvokerException
{
+ modifyRegistration(false);
+ }
+
+ private void modifyRegistration(boolean force) throws PortletInvokerException
+ {
if (persistentRegistrationInfo.getRegistrationHandle() != null)
{
persistentEndpointInfo.refresh();
- if (isModifyRegistrationRequired())
+ if (force || isModifyRegistrationRequired())
{
try
{