---
name: "ACE_CORBA_Handler"
section: "3"
platform: "linux"
package: "libace-doc"
version: "5.0.7-4"
release: "Debian 2.2 (Potato)"
platforms: ["linux"]
url: "https://new.carta.tech/ACE_CORBA_Handler"
---

# ACE\_CORBA\_Handler(3)

Handle Orbix requests in conjunction with ACE.

## 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
