Results 1 to 4 of 4

Thread: Shutdown a service

  1. #1
    spicy is offline Registered User
    Name: Issifou BARO
    Organization: ENIB (French Graduate Engineering School)
    Project: Market access
    Join Date
    Jul 2007
    Posts
    3

    Question Shutdown a service

    Here is my problem:
    I have a service with an associated adapter. When i try to shutdown the service without shutting or destroying the communicator by doing this : adapter.destroy(), nothing happened. So i need a way to shutdown a service without destroying is communicator.
    Thanks

  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
    Sorry, but its very hard to answer your question without knowing what you want to achieve. What do you mean by "shutdown" in this case and why do you want to shutdown your service without destroying the communicator?

  3. #3
    spicy is offline Registered User
    Name: Issifou BARO
    Organization: ENIB (French Graduate Engineering School)
    Project: Market access
    Join Date
    Jul 2007
    Posts
    3
    Thanks a lot. In fact i want to destroy the adapter of a particular service without destroying the communicator, to keep other services alive, because i use one communicator for all the services. So destroying it, will shutdown all the services.

  4. #4
    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
    What you want then is to stop servicing requests through that object adapter? Are you trying to call ObjectAdapter::destroy() in a method invocation on an object hosted by that OA? If so that will block indefinitely since destroy calls ObjectAdapter::waitForDeactivate which cannot possibly complete while the invocation is in process. What you should do instead is to call deactivate(). If you want to ensure that all resources are released in a timely manner (ie: not when the communicator is eventually destroyed) then you need to call ObjectAdapter::destroy() in another thread.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Threads and Shutdown
    By acbell in forum Help Center
    Replies: 1
    Last Post: 11-30-2006, 05:16 AM
  2. shutdown problem
    By dthompson in forum Help Center
    Replies: 4
    Last Post: 06-16-2006, 03:50 PM
  3. Replies: 6
    Last Post: 05-17-2006, 05:24 PM
  4. IcePy and shutdown
    By alexm in forum Help Center
    Replies: 6
    Last Post: 04-20-2006, 10:59 PM
  5. Notification on communicator shutdown
    By stephan in forum Help Center
    Replies: 11
    Last Post: 10-13-2004, 04:38 PM

Posting Permissions

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