## NAME

ACE_CORBA_Handler - Handle Orbix requests in conjunction with ACE.

## SYNOPSIS

    #include <ace/CORBA_Handler.h>

    class ACE_CORBA_Handler : public ACE_Service_Object
    {
      public:
        virtual int activate_service (
            const char *service_name,
            const char *marker_name = 0,
            const char *service_location = 0
            );
        virtual int deactivate_service (
            const char *service_name = 0,
            const char *marker_name = 0
            );
        void dump (void) const;
        ACE_ALLOC_HOOK_DECLARE;
      protected:
        ACE_CORBA_Handler (void);
        virtual ~ACE_CORBA_Handler (void);
        virtual int register_service (
            const char *service_name,
            const char *marker_name,
            const char *service_location
            );
        virtual int remove_service (
            const char *service_name,
            const char *marker_name = 0
            );
        ssize_t reference_count_;
      private:
        ACE_CORBA_Handler (const ACE_CORBA_Handler &rhs);
        const ACE_CORBA_Handler &operator= (const ACE_CORBA_Handler &rhs);
    };

## DESCRIPTION

Note, do *NOT* inherit from this class! Instead, use the `ACE_MT_CORBA_HAndler` and `ACE_ST_CORBA_Handler` as Singletons.

## Activation and deactivation methods.

    virtual int activate_service (
        const char *service_name,
        const char *marker_name = 0,
        const char *service_location = 0
        );

Activate and register `service_name` with the Orbix daemon. If `marker_name` and `service_location` are != 0 then do a "putit" to register this service with orbixd. This method also increments the reference count of active services using the ACE_ST_CORBA_Handler.

    virtual int deactivate_service (
        const char *service_name = 0,
        const char *marker_name = 0
        );

Decrement the reference count and free up all the resources if this is the last service to be using the ACE_ST_CORBA_Handler...

    void dump (void) const;

Dump the state of an object.

    ACE_ALLOC_HOOK_DECLARE;

Declare the dynamic allocation hooks.

## Disallow assignment and initialization.

    ACE_CORBA_Handler (const ACE_CORBA_Handler &rhs);

    const ACE_CORBA_Handler &operator= (const ACE_CORBA_Handler &rhs);

## AUTHOR

Douglas C. Schmidt (schmidt@cs.wustl.edu) and Irfan Pyarali (irfan@wuerl.wustl.edu).

## LIBRARY

ace