Author: chris.laprun(a)jboss.com
Date: 2010-02-16 07:56:26 -0500 (Tue, 16 Feb 2010)
New Revision: 1743
Modified:
portal/trunk/component/wsrp/src/main/java/org/gatein/portal/wsrp/ExoKernelIntegration.java
Log:
- Log a warning instead of throwing an exception if WSRP is started several times.
Modified:
portal/trunk/component/wsrp/src/main/java/org/gatein/portal/wsrp/ExoKernelIntegration.java
===================================================================
---
portal/trunk/component/wsrp/src/main/java/org/gatein/portal/wsrp/ExoKernelIntegration.java 2010-02-16
12:43:47 UTC (rev 1742)
+++
portal/trunk/component/wsrp/src/main/java/org/gatein/portal/wsrp/ExoKernelIntegration.java 2010-02-16
12:56:26 UTC (rev 1743)
@@ -27,6 +27,8 @@
import org.exoplatform.container.ExoContainerContext;
import org.exoplatform.container.configuration.ConfigurationManager;
import org.exoplatform.container.xml.InitParams;
+import org.gatein.common.logging.Logger;
+import org.gatein.common.logging.LoggerFactory;
import org.gatein.pc.api.PortletInvoker;
import org.gatein.pc.federation.FederatingPortletInvoker;
import org.gatein.pc.portlet.container.ContainerPortletInvoker;
@@ -60,6 +62,8 @@
*/
public class ExoKernelIntegration implements Startable
{
+ private static final Logger log =
LoggerFactory.getLogger(ExoKernelIntegration.class);
+
private static final String CLASSPATH = "classpath:/";
private static final String PRODUCER_CONFIG_LOCATION =
"producerConfigLocation";
private static final String CONSUMERS_CONFIG_LOCATION =
"consumersConfigLocation";
@@ -105,7 +109,13 @@
}
else
{
- throw new IllegalStateException("The WSRP service can only be started in
the default portal context.");
+ log.warn("The WSRP service can only be started in the default portal
context. WSRP was not started for '"
+ + context.getName() + "'");
+
+ producerConfigLocation = null;
+ consumersConfigLocation = null;
+ configurationIS = null;
+ bypass = true;
}
}
Show replies by date