Author: davsclaus
Date: Sun Aug 14 13:58:04 2011
New Revision: 1157534
URL: http://svn.apache.org/viewvc?rev=1157534&view=rev
Log:
Indicate in thread names from JettyHttpComponent they are from this component,
to differentiate them with other Jetty usages in the JVM.
Modified:
camel/trunk/components/camel-jetty/src/main/java/org/apache/camel/component/jetty/JettyHttpComponent.java
Modified:
camel/trunk/components/camel-jetty/src/main/java/org/apache/camel/component/jetty/JettyHttpComponent.java
URL:
http://svn.apache.org/viewvc/camel/trunk/components/camel-jetty/src/main/java/org/apache/camel/component/jetty/JettyHttpComponent.java?rev=1157534&r1=1157533&r2=1157534&view=diff
==============================================================================
---
camel/trunk/components/camel-jetty/src/main/java/org/apache/camel/component/jetty/JettyHttpComponent.java
(original)
+++
camel/trunk/components/camel-jetty/src/main/java/org/apache/camel/component/jetty/JettyHttpComponent.java
Sun Aug 14 13:58:04 2011
@@ -592,8 +592,8 @@ public class JettyHttpComponent extends
if (httpClientMaxThreads != null) {
qtp.setMaxThreads(httpClientMaxThreads.intValue());
}
- // let the thread names indicate they are from this component
- qtp.setName("CamelJetty(" + ObjectHelper.getIdentityHashCode(this)
+ ")");
+ // let the thread names indicate they are from the client
+ qtp.setName("CamelJettyClient(" +
ObjectHelper.getIdentityHashCode(httpClient) + ")");
try {
qtp.start();
} catch (Exception e) {
@@ -830,6 +830,8 @@ public class JettyHttpComponent extends
if (maxThreads != null) {
qtp.setMaxThreads(maxThreads.intValue());
}
+ // let the thread names indicate they are from the server
+ qtp.setName("CamelJettyServer(" +
ObjectHelper.getIdentityHashCode(server) + ")");
try {
qtp.start();
} catch (Exception e) {