// $Id: CCM_Session2Context.idl 91926 2010-09-22 12:59:28Z johnnyw $
/// Compliant with OMG 06-04-01 Section 9.4.2.1

#if !defined (CCM_SESSION2CONTEXT_IDL)
#define CCM_SESSION2CONTEXT_IDL

#include "ccm/CCM_CCM2Context.idl"
#include "ccm/CCM_SessionContext.idl"
#include "ccm/CCM_BadComponentReference.idl"
#include "tao/OctetSeq.pidl"

// *************** Extended Container Interfaces ***************

#if !defined (CCM_LW)

module Components
{
  typeprefix Components "omg.org";

  local interface Session2Context : SessionContext, CCM2Context
  {
    Object create_ref (in CORBA::RepositoryId repid);

    Object create_ref_from_oid (in CORBA::OctetSeq oid,
                                in CORBA::RepositoryId repid);

    CORBA::OctetSeq get_oid_from_ref (in Object objref)
      raises (IllegalState,
              BadComponentReference);
  };
};
#endif

#endif /* CCM_SESSION2CONTEXT_IDL */
