https://issues.apache.org/bugzilla/show_bug.cgi?id=53151
Bug #: 53151
Summary: Tomcat 7 SimpleTCPCluster.java does not send payload
on Start & Stop
Product: Tomcat 7
Version: 7.0.27
Platform: PC
Status: NEW
Severity: normal
Priority: P2
Component: Cluster
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
In Tomcat 6, it used to send Cluster Payload as part of start() and stop()
method.
In Tomcat 7, the functionality is missing fro startInternal() and
stopInternal() methods.
Tomcat 7 Current Implementation for SimpleTcpCluster.java
========================================================================
@Override
protected void startInternal() throws LifecycleException {
if (log.isInfoEnabled()) log.info("Cluster is about to start");
fireLifecycleEvent(BEFORE_START_EVENT, this); --> This line missing
which was present in Tomcat 6
try {
checkDefaults();
registerClusterValve();
channel.addMembershipListener(this);
channel.addChannelListener(this);
channel.start(channelStartOptions);
if (clusterDeployer != null) clusterDeployer.start();
//register JMX objects
ClusterJmxHelper.registerDefaultCluster(this);
// Notify our interested LifecycleListeners
} catch (Exception x) {
log.error("Unable to start cluster.", x);
throw new LifecycleException(x);
}
fireLifecycleEvent(AFTER_START_EVENT, this);--> This line missing which
was present in Tomcat 6
setState(LifecycleState.STARTING);
}
========================================================================
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]