Author: chris.laprun(a)jboss.com
Date: 2008-07-28 10:29:23 -0400 (Mon, 28 Jul 2008)
New Revision: 11599
Modified:
branches/JBoss_Portal_Branch_2_7/wsrp/src/main/org/jboss/portal/wsrp/services/RemoteSOAPInvokerServiceFactory.java
Log:
- JBPORTAL-2085: do not re-read remote WSDL if we didn't change the URL.
Modified:
branches/JBoss_Portal_Branch_2_7/wsrp/src/main/org/jboss/portal/wsrp/services/RemoteSOAPInvokerServiceFactory.java
===================================================================
---
branches/JBoss_Portal_Branch_2_7/wsrp/src/main/org/jboss/portal/wsrp/services/RemoteSOAPInvokerServiceFactory.java 2008-07-28
13:07:58 UTC (rev 11598)
+++
branches/JBoss_Portal_Branch_2_7/wsrp/src/main/org/jboss/portal/wsrp/services/RemoteSOAPInvokerServiceFactory.java 2008-07-28
14:29:23 UTC (rev 11599)
@@ -76,26 +76,31 @@
if (wsdlDefinitionURL == null || wsdlDefinitionURL.length() == 0)
{
throw new IllegalArgumentException("Require a non-empty, non-null URL
specifying where to find the WSRP " +
- "services definition");
+ "services definition");
}
- this.wsdlDefinitionURL = wsdlDefinitionURL;
- try
+
+ if (!wsdlDefinitionURL.equals(this.wsdlDefinitionURL))
{
- initServices();
- setFailed(false);
+ this.wsdlDefinitionURL = wsdlDefinitionURL;
+
+ try
+ {
+ initServices();
+ setFailed(false);
+ }
+ catch (MalformedURLException e)
+ {
+ setFailed(true);
+ throw new IllegalArgumentException("Require a well-formed URL specifying
where to find the WSRP services definition", e);
+ }
+ catch (Exception e)
+ {
+ log.info("Couldn't access WSDL information. Service won't be
available", e);
+ setAvailable(false);
+ throw e;
+ }
}
- catch (MalformedURLException e)
- {
- setFailed(true);
- throw new IllegalArgumentException("Require a well-formed URL specifying
where to find the WSRP services definition", e);
- }
- catch (Exception e)
- {
- log.info("Couldn't access WSDL information. Service won't be
available", e);
- setAvailable(false);
- throw e;
- }
- }
+ }
private void initServices() throws MalformedURLException
{
Show replies by date