Author: chris.laprun(a)jboss.com
Date: 2007-06-18 20:45:12 -0400 (Mon, 18 Jun 2007)
New Revision: 7459
Modified:
trunk/wsrp/src/main/org/jboss/portal/wsrp/consumer/EndpointConfigurationInfo.java
Log:
- Services are refreshed after the ServiceFactory is created.
Modified:
trunk/wsrp/src/main/org/jboss/portal/wsrp/consumer/EndpointConfigurationInfo.java
===================================================================
---
trunk/wsrp/src/main/org/jboss/portal/wsrp/consumer/EndpointConfigurationInfo.java 2007-06-19
00:44:22 UTC (rev 7458)
+++
trunk/wsrp/src/main/org/jboss/portal/wsrp/consumer/EndpointConfigurationInfo.java 2007-06-19
00:45:12 UTC (rev 7459)
@@ -253,6 +253,7 @@
try
{
serviceFactory.start();
+ refreshServices();
}
catch (Exception e)
{
@@ -399,19 +400,24 @@
if (isRefreshNeeded())
{
initServiceFactoryIfNeeded();
- if (!usesWSDL())
+ refreshServices();
+ }
+ }
+
+ private void refreshServices() throws InvokerUnavailableException
+ {
+ if (areURLsDirty())
+ {
+ getServiceDescriptionService();
+ getMarkupService();
+ if (persistentPortletManagementURL != null)
{
- getServiceDescriptionService();
- getMarkupService();
- if (persistentPortletManagementURL != null)
- {
- getPortletManagementService();
- }
- if (persistentRegistrationURL != null)
- {
- getRegistrationService();
- }
+ getPortletManagementService();
}
+ if (persistentRegistrationURL != null)
+ {
+ getRegistrationService();
+ }
}
}
}
Show replies by date