// $Id: DllORB.h 77891 2007-04-03 18:30:33Z elliott_c $
#ifndef DLLORB_H
#define DLLORB_H

#include "ace/Service_Object.h"
#include "tao/ORB.h"
#include "tao/PortableServer/PortableServer.h"
#include "bug_2677_regression_export.h"

class bug_2677_regression_Export DllORB: public ACE_Service_Object
{
public:
  DllORB (void);
  virtual ~DllORB (void);

  CORBA::ORB_ptr orb (void) const;

  virtual int init (int argc, ACE_TCHAR *argv[]);

  virtual int fini (void);

private:
  unsigned int                   failPrePostInit_;
  CORBA::ORB_var                 mv_orb_;
  PortableServer::POA_var        mv_rootPOA_;
  PortableServer::POAManager_var mv_poaManager_;
};

ACE_FACTORY_DECLARE (bug_2677_regression, DllORB)

#endif /* DLLORB_H */
