[ mx4j-Bugs-946635 ] Use Thread Names
"SourceForge.net" <[email protected]>
| Newsgroups | gmane.comp.java.mx4j.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #946635, was opened at 2004-05-02 17:43
Message generated for change (Comment added) made by hdrews
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=450647&aid=946635&group_id=47745
Category: None
Group: Release 2.0.1
Status: Open
Resolution: None
Priority: 5
Submitted By: Michael Rumpf (mrumpf)
Assigned to: Nobody/Anonymous (nobody)
Summary: Use Thread Names
Initial Comment:
Hi,
in an application with multiple threads it is hard to
tell which threads belong to the application and which
to the MX4J implementation like the HttpAdaptor for
example. In the Eclipse Debugger you will see only
"Thread [Thread-5]".
Please provide names to the Thread constructors, e.g.
"MX4J HttpAdaptor".
Thanks,
Michael
----------------------------------------------------------------------
Comment By: Heinz Drews (hdrews)
Date: 2004-05-14 16:35
Message:
Logged In: YES
user_id=488227
I have also set the thread to be a daemon, makes life easier
in test and
debug sessions.
Best regards,
Heinz
Index: HttpAdaptor.java
==============================================
=====================
RCS file:
/cvsroot/mx4j/mx4j/src/tools/mx4j/tools/adaptor/http/HttpAda
ptor.java,v
retrieving revision 1.5
diff -u -r1.5 HttpAdaptor.java
--- HttpAdaptor.java 5 Apr 2004 19:41:57 -0000 1.5
+++ HttpAdaptor.java 14 May 2004 18:07:48 -0000
@@ -560,6 +560,8 @@
if (logger.isEnabledFor(Logger.INFO))
logger.info("HttpAdaptor version " + VERSION + "
stopped
on port " + port);
}
});
+ serverThread.setDaemon(true);
+ serverThread.setName("mx4j HTTPAdaptor: " +
port);
serverThread.start();
}
else
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=450647&aid=946635&group_id=47745
-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click