Author: mwringe
Date: 2010-09-23 11:10:21 -0400 (Thu, 23 Sep 2010)
New Revision: 4361
Modified:
components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/handlers/RegistrationHandler.java
Log:
GTNWSRP-73: another issues with non-registered consumers, the awful hack need to the set
the registrationStatus for non-registered consumers to work properly. Next step, implement
this correctly and remove hack.
Modified:
components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/handlers/RegistrationHandler.java
===================================================================
---
components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/handlers/RegistrationHandler.java 2010-09-23
15:05:31 UTC (rev 4360)
+++
components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/handlers/RegistrationHandler.java 2010-09-23
15:10:21 UTC (rev 4361)
@@ -369,7 +369,9 @@
}
else
{
- return consumer.getRegistrations().iterator().next();
+ Registration registration =
consumer.getRegistrations().iterator().next();
+ registration.setStatus(RegistrationStatus.VALID);
+ return registration;
}
}
catch (RegistrationException e)