Results 1 to 4 of 4

Thread: Should Ice.ConnectionMonitor setDaemon(true)?

  1. #1
    sinofool is offline Registered User
    Name: Bochun Bai
    Organization: xiaonei.com
    Project: http://labs.xiaonei.com/
    Join Date
    Oct 2006
    Posts
    41

    Should Ice.ConnectionMonitor setDaemon(true)?

    After main method finished. Java process does not exit normaly.
    Profiler found Ice.ConnectionMonitor thread is still running at wait status.

    In Ice-3.3, Ice.Timer have the same behavior.

    Will these thread be setDaemon(true)?

  2. #2
    matthew's Avatar
    matthew is offline ZeroC Staff
    Name: Matthew Newhook
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Feb 2003
    Location
    NL, Canada
    Posts
    1,458
    These should not be daemon threads. They are joined with when you destroy the communicator. If they are not terminating, therefore it stands to reason that you are not destroying the communicator

  3. #3
    sinofool is offline Registered User
    Name: Bochun Bai
    Organization: xiaonei.com
    Project: http://labs.xiaonei.com/
    Join Date
    Oct 2006
    Posts
    41
    I am trying to making the communicator destroy itself.
    The communicator is a static member in my application. I have to destory it by calling ic.destroy() manually.

  4. #4
    sinofool is offline Registered User
    Name: Bochun Bai
    Organization: xiaonei.com
    Project: http://labs.xiaonei.com/
    Join Date
    Oct 2006
    Posts
    41
    Well~I will try using a pool create and destory Ice.Communicator.

    Timed-out destory is my specific requirement. Ice-Java should not handle this, that's right.

    Thanks !

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. ice_response( true)
    By andric in forum Help Center
    Replies: 1
    Last Post: 03-02-2010, 12:50 PM
  2. Replies: 2
    Last Post: 03-07-2008, 04:15 AM
  3. Slice bool always maps to True in python server
    By sac_urs in forum Bug Reports
    Replies: 3
    Last Post: 11-17-2005, 06:35 AM
  4. ConnectionMonitor
    By laotee in forum Help Center
    Replies: 4
    Last Post: 08-30-2005, 05:02 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •