[gatein-commits] gatein SVN: r6318 - portal/trunk/wsrp-integration/extension-component/src/main/java/org/gatein/integration/wsrp.
do-not-reply at jboss.org
do-not-reply at jboss.org
Thu Apr 21 11:33:59 EDT 2011
Author: chris.laprun at jboss.com
Date: 2011-04-21 11:33:59 -0400 (Thu, 21 Apr 2011)
New Revision: 6318
Modified:
portal/trunk/wsrp-integration/extension-component/src/main/java/org/gatein/integration/wsrp/WSRPServiceIntegration.java
Log:
- If an exception occurs during the launch of WSRP, show an error but don't crash the portal.
Modified: portal/trunk/wsrp-integration/extension-component/src/main/java/org/gatein/integration/wsrp/WSRPServiceIntegration.java
===================================================================
--- portal/trunk/wsrp-integration/extension-component/src/main/java/org/gatein/integration/wsrp/WSRPServiceIntegration.java 2011-04-21 12:37:40 UTC (rev 6317)
+++ portal/trunk/wsrp-integration/extension-component/src/main/java/org/gatein/integration/wsrp/WSRPServiceIntegration.java 2011-04-21 15:33:59 UTC (rev 6318)
@@ -146,16 +146,23 @@
{
if (!bypass)
{
- startProducer();
- startConsumers();
+ try
+ {
+ startProducer();
+ startConsumers();
- // listen for web app events so that we can inject services into WSRP admin UI "cleanly"
- // todo: this service injection should really be done using CDI... :/
- ServletContainerFactory factory = DefaultServletContainerFactory.getInstance();
- ServletContainer servletContainer = factory.getServletContainer();
- servletContainer.addWebAppListener(this);
+ // listen for web app events so that we can inject services into WSRP admin UI "cleanly"
+ // todo: this service injection should really be done using CDI... :/
+ ServletContainerFactory factory = DefaultServletContainerFactory.getInstance();
+ ServletContainer servletContainer = factory.getServletContainer();
+ servletContainer.addWebAppListener(this);
- log.info("WSRP Service version '" + WSRPConstants.WSRP_SERVICE_VERSION + "' started");
+ log.info("WSRP Service version '" + WSRPConstants.WSRP_SERVICE_VERSION + "' STARTED");
+ }
+ catch (Exception e)
+ {
+ log.error("WSRP Service version '" + WSRPConstants.WSRP_SERVICE_VERSION + "' FAILED to start", e);
+ }
}
}
More information about the gatein-commits
mailing list