Author: chris.laprun(a)jboss.com
Date: 2007-06-18 20:47:17 -0400 (Mon, 18 Jun 2007)
New Revision: 7460
Modified:
trunk/wsrp/src/main/org/jboss/portal/wsrp/consumer/ProducerInfo.java
Log:
- Endpoint info is now refreshed if needed before calling methods that don't refresh
the whole ProducerInfo.
- Simplified check protecting modifyRegistration.
Modified: trunk/wsrp/src/main/org/jboss/portal/wsrp/consumer/ProducerInfo.java
===================================================================
--- trunk/wsrp/src/main/org/jboss/portal/wsrp/consumer/ProducerInfo.java 2007-06-19
00:45:12 UTC (rev 7459)
+++ trunk/wsrp/src/main/org/jboss/portal/wsrp/consumer/ProducerInfo.java 2007-06-19
00:47:17 UTC (rev 7460)
@@ -667,6 +667,7 @@
if (!isRegistered())
{
+ persistentEndpointInfo.refresh();
if (serviceDescription == null)
{
@@ -725,6 +726,8 @@
{
if (isRegistered())
{
+ persistentEndpointInfo.refresh();
+
try
{
persistentEndpointInfo.getRegistrationService().deregister(getRegistrationContext());
@@ -745,10 +748,10 @@
public void modifyRegistration() throws PortletInvokerException
{
- Boolean consistentWithExpectations =
persistentRegistrationInfo.isConsistentWithProducerExpectations();
- if (persistentRegistrationInfo != null &&
persistentRegistrationInfo.getRegistrationHandle() != null
- && consistentWithExpectations != null &&
!consistentWithExpectations.booleanValue())
+ if (isRegistered())
{
+ persistentEndpointInfo.refresh();
+
try
{
RegistrationContext registrationContext = getRegistrationContext();
Show replies by date