Author: chris.laprun(a)jboss.com
Date: 2010-02-27 09:20:24 -0500 (Sat, 27 Feb 2010)
New Revision: 1894
Modified:
components/wsrp/trunk/pom.xml
components/wsrp/trunk/producer/src/main/java/org/gatein/registration/impl/RegistrationManagerImpl.java
Log:
- GTNWSRP-5: properly save changes to consumer when reacting to registration properties
changes on the producer.
- Updated to PC 2.1.0-CR05.
Modified: components/wsrp/trunk/pom.xml
===================================================================
--- components/wsrp/trunk/pom.xml 2010-02-26 23:13:26 UTC (rev 1893)
+++ components/wsrp/trunk/pom.xml 2010-02-27 14:20:24 UTC (rev 1894)
@@ -21,7 +21,8 @@
~ 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-->
-<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
+<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
@@ -46,7 +47,7 @@
</scm>
<properties>
- <version.gatein.pc>2.1.0-CR04</version.gatein.pc>
+ <version.gatein.pc>2.1.0-CR05</version.gatein.pc>
<version.gatein.common>2.0.0-CR03</version.gatein.common>
<version.gatein.wci>2.0.0-CR02</version.gatein.wci>
Modified:
components/wsrp/trunk/producer/src/main/java/org/gatein/registration/impl/RegistrationManagerImpl.java
===================================================================
---
components/wsrp/trunk/producer/src/main/java/org/gatein/registration/impl/RegistrationManagerImpl.java 2010-02-26
23:13:26 UTC (rev 1893)
+++
components/wsrp/trunk/producer/src/main/java/org/gatein/registration/impl/RegistrationManagerImpl.java 2010-02-27
14:20:24 UTC (rev 1894)
@@ -1,6 +1,6 @@
/*
* JBoss, a division of Red Hat
- * Copyright 2009, Red Hat Middleware, LLC, and individual
+ * Copyright 2010, 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.
@@ -338,6 +338,11 @@
// pending instead of invalid as technically, the registration is not yet
invalid
reg.setStatus(RegistrationStatus.PENDING);
+
+ // make changes persistent
+ Consumer consumer = reg.getConsumer();
+ persistenceManager.saveChangesTo(consumer);
+
// reg.clearAssociatedState(); //todo: do we need to clear the associated state?
If we do, should we wait until current operations are done?
}