Author: chris.laprun(a)jboss.com
Date: 2010-01-08 13:02:27 -0500 (Fri, 08 Jan 2010)
New Revision: 1207
Modified:
components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/consumer/EndpointConfigurationInfo.java
Log:
- Do not start if we're already started.
Modified:
components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/consumer/EndpointConfigurationInfo.java
===================================================================
---
components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/consumer/EndpointConfigurationInfo.java 2010-01-08
15:26:33 UTC (rev 1206)
+++
components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/consumer/EndpointConfigurationInfo.java 2010-01-08
18:02:27 UTC (rev 1207)
@@ -47,6 +47,7 @@
/** Access to the WS */
private transient ServiceFactory serviceFactory;
private transient String remoteHostAddress;
+ private transient boolean started;
public EndpointConfigurationInfo()
{
@@ -71,12 +72,20 @@
public void start() throws Exception
{
- serviceFactory.start();
+ if (!started)
+ {
+ serviceFactory.start();
+ started = true;
+ }
}
public void stop() throws Exception
{
- serviceFactory.stop();
+ if (started)
+ {
+ serviceFactory.stop();
+ started = false;
+ }
}
ServiceFactory getServiceFactory()
Show replies by date