00001 #include "tao/Service_Callbacks.h"
00002 #include "tao/ORB_Constants.h"
00003 #include "tao/SystemException.h"
00004 #include "tao/Environment.h"
00005 #include "tao/Invocation_Utils.h"
00006
00007 ACE_RCSID (tao,
00008 Service_Callbacks,
00009 "Service_Callbacks.cpp,v 1.18 2006/04/19 09:07:09 jwillemsen Exp")
00010
00011
00012 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00013
00014 TAO_Service_Callbacks::~TAO_Service_Callbacks (void)
00015 {
00016 }
00017
00018 CORBA::Boolean
00019 TAO_Service_Callbacks::select_profile (TAO_MProfile * ,
00020 TAO_Profile *& )
00021 {
00022 return false;
00023 }
00024
00025 CORBA::Boolean
00026 TAO_Service_Callbacks::reselect_profile (TAO_Stub * ,
00027 TAO_Profile *& )
00028 {
00029 return false;
00030 }
00031
00032
00033 CORBA::Boolean
00034 TAO_Service_Callbacks::object_is_nil (CORBA::Object_ptr )
00035 {
00036
00037
00038 return true;
00039 }
00040
00041 void
00042 TAO_Service_Callbacks::reset_profile_flags (void)
00043 {
00044 return;
00045 }
00046
00047
00048 TAO_Service_Callbacks::Profile_Equivalence
00049 TAO_Service_Callbacks::is_profile_equivalent (const TAO_Profile *,
00050 const TAO_Profile *)
00051 {
00052 return DONT_KNOW;
00053 }
00054
00055 CORBA::ULong
00056 TAO_Service_Callbacks::hash_ft (TAO_Profile *,
00057 CORBA::ULong )
00058 {
00059 return 0;
00060 }
00061
00062 CORBA::Boolean
00063 TAO_Service_Callbacks::is_permanent_forward_condition (const CORBA::Object_ptr,
00064 const TAO_Service_Context &) const
00065 {
00066 return false;
00067 }
00068
00069 TAO::Invocation_Status
00070 TAO_Service_Callbacks::raise_comm_failure (
00071 IOP::ServiceContextList &,
00072 TAO_Profile *
00073 ACE_ENV_ARG_DECL)
00074 {
00075 ACE_THROW_RETURN (CORBA::COMM_FAILURE (
00076 CORBA::SystemException::_tao_minor_code (
00077 TAO_INVOCATION_RECV_REQUEST_MINOR_CODE,
00078 -1),
00079 CORBA::COMPLETED_MAYBE),
00080 TAO::TAO_INVOKE_FAILURE);
00081 }
00082
00083 TAO::Invocation_Status
00084 TAO_Service_Callbacks::raise_transient_failure (
00085 IOP::ServiceContextList &,
00086 TAO_Profile *
00087 ACE_ENV_ARG_DECL)
00088 {
00089 ACE_THROW_RETURN (CORBA::TRANSIENT (
00090 CORBA::SystemException::_tao_minor_code (
00091 TAO_INVOCATION_RECV_REQUEST_MINOR_CODE,
00092 -1),
00093 CORBA::COMPLETED_MAYBE),
00094 TAO::TAO_INVOKE_FAILURE);
00095 }
00096
00097 TAO_END_VERSIONED_NAMESPACE_DECL