summaryrefslogtreecommitdiff
path: root/TAO/tao/MessagingC.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/MessagingC.cpp')
-rw-r--r--TAO/tao/MessagingC.cpp73
1 files changed, 34 insertions, 39 deletions
diff --git a/TAO/tao/MessagingC.cpp b/TAO/tao/MessagingC.cpp
index e780ab7cbf6..e08f3fd1fdf 100644
--- a/TAO/tao/MessagingC.cpp
+++ b/TAO/tao/MessagingC.cpp
@@ -9,9 +9,6 @@
// http://www.cs.wustl.edu/~schmidt/TAO.html
#include "tao/MessagingC.h"
-
-#if defined (TAO_HAS_CORBA_MESSAGING)
-
#include "tao/MessagingS.h"
#include "tao/POA_CORBA.h"
#include "tao/Stub.h"
@@ -204,7 +201,7 @@ Messaging::RebindMode Messaging::RebindPolicy::rebind_mode (
{
Messaging::RebindMode _tao_retval = 0;
ACE_UNUSED_ARG (_tao_retval);
- ACE_THROW_RETURN (CORBA::INV_OBJREF (), _tao_retval);
+ ACE_THROW_RETURN (CORBA::INV_OBJREF (CORBA::COMPLETED_NO), _tao_retval);
}
CORBA::Boolean Messaging::RebindPolicy::_is_a (const CORBA::Char *value, CORBA::Environment &env)
@@ -276,7 +273,7 @@ Messaging::SyncScope Messaging::SyncScopePolicy::synchronization (
{
Messaging::SyncScope _tao_retval = 0;
ACE_UNUSED_ARG (_tao_retval);
- ACE_THROW_RETURN (CORBA::INV_OBJREF (), _tao_retval);
+ ACE_THROW_RETURN (CORBA::INV_OBJREF (CORBA::COMPLETED_NO), _tao_retval);
}
CORBA::Boolean Messaging::SyncScopePolicy::_is_a (const CORBA::Char *value, CORBA::Environment &env)
@@ -378,7 +375,7 @@ Messaging::PriorityRange Messaging::RequestPriorityPolicy::priority_range (
_tao_retval.min = 0;
_tao_retval.max = 0;
ACE_UNUSED_ARG (_tao_retval);
- ACE_THROW_RETURN (CORBA::INV_OBJREF (), _tao_retval);
+ ACE_THROW_RETURN (CORBA::INV_OBJREF (CORBA::COMPLETED_NO), _tao_retval);
}
CORBA::Boolean Messaging::RequestPriorityPolicy::_is_a (const CORBA::Char *value, CORBA::Environment &env)
@@ -452,7 +449,7 @@ Messaging::PriorityRange Messaging::ReplyPriorityPolicy::priority_range (
_tao_retval.min = 0;
_tao_retval.max = 0;
ACE_UNUSED_ARG (_tao_retval);
- ACE_THROW_RETURN (CORBA::INV_OBJREF (), _tao_retval);
+ ACE_THROW_RETURN (CORBA::INV_OBJREF (CORBA::COMPLETED_NO), _tao_retval);
}
CORBA::Boolean Messaging::ReplyPriorityPolicy::_is_a (const CORBA::Char *value, CORBA::Environment &env)
@@ -528,7 +525,7 @@ TimeBase::UtcT Messaging::RequestStartTimePolicy::start_time (
_tao_retval.inacchi = 0;
_tao_retval.tdf = 0;
ACE_UNUSED_ARG (_tao_retval);
- ACE_THROW_RETURN (CORBA::INV_OBJREF (), _tao_retval);
+ ACE_THROW_RETURN (CORBA::INV_OBJREF (CORBA::COMPLETED_NO), _tao_retval);
}
CORBA::Boolean Messaging::RequestStartTimePolicy::_is_a (const CORBA::Char *value, CORBA::Environment &env)
@@ -604,7 +601,7 @@ TimeBase::UtcT Messaging::RequestEndTimePolicy::end_time (
_tao_retval.inacchi = 0;
_tao_retval.tdf = 0;
ACE_UNUSED_ARG (_tao_retval);
- ACE_THROW_RETURN (CORBA::INV_OBJREF (), _tao_retval);
+ ACE_THROW_RETURN (CORBA::INV_OBJREF (CORBA::COMPLETED_NO), _tao_retval);
}
CORBA::Boolean Messaging::RequestEndTimePolicy::_is_a (const CORBA::Char *value, CORBA::Environment &env)
@@ -680,7 +677,7 @@ TimeBase::UtcT Messaging::ReplyStartTimePolicy::start_time (
_tao_retval.inacchi = 0;
_tao_retval.tdf = 0;
ACE_UNUSED_ARG (_tao_retval);
- ACE_THROW_RETURN (CORBA::INV_OBJREF (), _tao_retval);
+ ACE_THROW_RETURN (CORBA::INV_OBJREF (CORBA::COMPLETED_NO), _tao_retval);
}
CORBA::Boolean Messaging::ReplyStartTimePolicy::_is_a (const CORBA::Char *value, CORBA::Environment &env)
@@ -756,7 +753,7 @@ TimeBase::UtcT Messaging::ReplyEndTimePolicy::end_time (
_tao_retval.inacchi = 0;
_tao_retval.tdf = 0;
ACE_UNUSED_ARG (_tao_retval);
- ACE_THROW_RETURN (CORBA::INV_OBJREF (), _tao_retval);
+ ACE_THROW_RETURN (CORBA::INV_OBJREF (CORBA::COMPLETED_NO), _tao_retval);
}
CORBA::Boolean Messaging::ReplyEndTimePolicy::_is_a (const CORBA::Char *value, CORBA::Environment &env)
@@ -828,7 +825,7 @@ TimeBase::TimeT Messaging::RelativeRequestTimeoutPolicy::relative_expiry (
{
TimeBase::TimeT _tao_retval = 0;
ACE_UNUSED_ARG (_tao_retval);
- ACE_THROW_RETURN (CORBA::INV_OBJREF (), _tao_retval);
+ ACE_THROW_RETURN (CORBA::INV_OBJREF (CORBA::COMPLETED_NO), _tao_retval);
}
CORBA::Boolean Messaging::RelativeRequestTimeoutPolicy::_is_a (const CORBA::Char *value, CORBA::Environment &env)
@@ -900,7 +897,7 @@ TimeBase::TimeT Messaging::RelativeRoundtripTimeoutPolicy::relative_expiry (
{
TimeBase::TimeT _tao_retval = 0;
ACE_UNUSED_ARG (_tao_retval);
- ACE_THROW_RETURN (CORBA::INV_OBJREF (), _tao_retval);
+ ACE_THROW_RETURN (CORBA::INV_OBJREF (CORBA::COMPLETED_NO), _tao_retval);
}
CORBA::Boolean Messaging::RelativeRoundtripTimeoutPolicy::_is_a (const CORBA::Char *value, CORBA::Environment &env)
@@ -1002,7 +999,7 @@ Messaging::RoutingTypeRange Messaging::RoutingPolicy::routing_range (
_tao_retval.min = Messaging::ROUTE_NONE;
_tao_retval.max = Messaging::ROUTE_NONE;
ACE_UNUSED_ARG (_tao_retval);
- ACE_THROW_RETURN (CORBA::INV_OBJREF (), _tao_retval);
+ ACE_THROW_RETURN (CORBA::INV_OBJREF (CORBA::COMPLETED_NO), _tao_retval);
}
CORBA::Boolean Messaging::RoutingPolicy::_is_a (const CORBA::Char *value, CORBA::Environment &env)
@@ -1074,7 +1071,7 @@ CORBA::UShort Messaging::MaxHopsPolicy::max_hops (
{
CORBA::UShort _tao_retval = 0;
ACE_UNUSED_ARG (_tao_retval);
- ACE_THROW_RETURN (CORBA::INV_OBJREF (), _tao_retval);
+ ACE_THROW_RETURN (CORBA::INV_OBJREF (CORBA::COMPLETED_NO), _tao_retval);
}
CORBA::Boolean Messaging::MaxHopsPolicy::_is_a (const CORBA::Char *value, CORBA::Environment &env)
@@ -1146,7 +1143,7 @@ Messaging::Ordering Messaging::QueueOrderPolicy::allowed_orders (
{
Messaging::Ordering _tao_retval = 0;
ACE_UNUSED_ARG (_tao_retval);
- ACE_THROW_RETURN (CORBA::INV_OBJREF (), _tao_retval);
+ ACE_THROW_RETURN (CORBA::INV_OBJREF (CORBA::COMPLETED_NO), _tao_retval);
}
CORBA::Boolean Messaging::QueueOrderPolicy::_is_a (const CORBA::Char *value, CORBA::Environment &env)
@@ -1460,7 +1457,7 @@ CORBA::Object_ptr Messaging::Poller::operation_target (
TAO_Stub *istub = this->_stubobj ();
if (istub == 0)
- ACE_THROW_RETURN (CORBA::INV_OBJREF (), _tao_retval);
+ ACE_THROW_RETURN (CORBA::INV_OBJREF (CORBA::COMPLETED_NO), _tao_retval);
TAO_GIOP_Twoway_Invocation _tao_call (
@@ -1486,7 +1483,7 @@ CORBA::Object_ptr Messaging::Poller::operation_target (
// cannot happen
if (_invoke_status != TAO_INVOKE_OK)
{
- ACE_THROW_RETURN (CORBA::UNKNOWN (TAO_DEFAULT_MINOR_CODE, CORBA::COMPLETED_YES), _tao_retval);
+ ACE_THROW_RETURN (CORBA::UNKNOWN (CORBA::COMPLETED_YES), _tao_retval);
}
break;
@@ -1496,7 +1493,7 @@ CORBA::Object_ptr Messaging::Poller::operation_target (
if (!(
(_tao_in >> _tao_retval)
))
- ACE_THROW_RETURN (CORBA::MARSHAL (TAO_DEFAULT_MINOR_CODE, CORBA::COMPLETED_YES), _tao_retval);
+ ACE_THROW_RETURN (CORBA::MARSHAL (CORBA::COMPLETED_YES), _tao_retval);
return _tao_retval;
}
@@ -1508,7 +1505,7 @@ char * Messaging::Poller::operation_name (
TAO_Stub *istub = this->_stubobj ();
if (istub == 0)
- ACE_THROW_RETURN (CORBA::INV_OBJREF (), _tao_retval);
+ ACE_THROW_RETURN (CORBA::INV_OBJREF (CORBA::COMPLETED_NO), _tao_retval);
TAO_GIOP_Twoway_Invocation _tao_call (
@@ -1534,7 +1531,7 @@ char * Messaging::Poller::operation_name (
// cannot happen
if (_invoke_status != TAO_INVOKE_OK)
{
- ACE_THROW_RETURN (CORBA::UNKNOWN (TAO_DEFAULT_MINOR_CODE, CORBA::COMPLETED_YES), _tao_retval);
+ ACE_THROW_RETURN (CORBA::UNKNOWN (CORBA::COMPLETED_YES), _tao_retval);
}
break;
@@ -1544,7 +1541,7 @@ char * Messaging::Poller::operation_name (
if (!(
(_tao_in >> _tao_retval)
))
- ACE_THROW_RETURN (CORBA::MARSHAL (TAO_DEFAULT_MINOR_CODE, CORBA::COMPLETED_YES), _tao_retval);
+ ACE_THROW_RETURN (CORBA::MARSHAL (CORBA::COMPLETED_YES), _tao_retval);
return _tao_retval;
}
@@ -1556,7 +1553,7 @@ Messaging::ReplyHandler_ptr Messaging::Poller::associated_handler (
TAO_Stub *istub = this->_stubobj ();
if (istub == 0)
- ACE_THROW_RETURN (CORBA::INV_OBJREF (), _tao_retval);
+ ACE_THROW_RETURN (CORBA::INV_OBJREF (CORBA::COMPLETED_NO), _tao_retval);
TAO_GIOP_Twoway_Invocation _tao_call (
@@ -1582,7 +1579,7 @@ Messaging::ReplyHandler_ptr Messaging::Poller::associated_handler (
// cannot happen
if (_invoke_status != TAO_INVOKE_OK)
{
- ACE_THROW_RETURN (CORBA::UNKNOWN (TAO_DEFAULT_MINOR_CODE, CORBA::COMPLETED_YES), _tao_retval);
+ ACE_THROW_RETURN (CORBA::UNKNOWN (CORBA::COMPLETED_YES), _tao_retval);
}
break;
@@ -1592,7 +1589,7 @@ Messaging::ReplyHandler_ptr Messaging::Poller::associated_handler (
if (!(
(_tao_in >> _tao_retval)
))
- ACE_THROW_RETURN (CORBA::MARSHAL (TAO_DEFAULT_MINOR_CODE, CORBA::COMPLETED_YES), _tao_retval);
+ ACE_THROW_RETURN (CORBA::MARSHAL (CORBA::COMPLETED_YES), _tao_retval);
return _tao_retval;
}
@@ -1604,7 +1601,7 @@ void Messaging::Poller::associated_handler (
TAO_Stub *istub = this->_stubobj ();
if (istub == 0)
- ACE_THROW (CORBA::INV_OBJREF ());
+ ACE_THROW (CORBA::INV_OBJREF (CORBA::COMPLETED_NO));
TAO_GIOP_Twoway_Invocation _tao_call (
@@ -1624,7 +1621,7 @@ void Messaging::Poller::associated_handler (
if (!(
(_tao_out << associated_handler)
))
- ACE_THROW (CORBA::MARSHAL ());
+ ACE_THROW (CORBA::MARSHAL (CORBA::COMPLETED_NO));
int _invoke_status =
_tao_call.invoke (0, 0, ACE_TRY_ENV);
@@ -1636,7 +1633,7 @@ void Messaging::Poller::associated_handler (
// cannot happen
if (_invoke_status != TAO_INVOKE_OK)
{
- ACE_THROW (CORBA::UNKNOWN (TAO_DEFAULT_MINOR_CODE, CORBA::COMPLETED_YES));
+ ACE_THROW (CORBA::UNKNOWN (CORBA::COMPLETED_YES));
}
break;
@@ -1653,7 +1650,7 @@ CORBA::Boolean Messaging::Poller::is_from_poller (
TAO_Stub *istub = this->_stubobj ();
if (istub == 0)
- ACE_THROW_RETURN (CORBA::INV_OBJREF (), _tao_retval);
+ ACE_THROW_RETURN (CORBA::INV_OBJREF (CORBA::COMPLETED_NO), _tao_retval);
TAO_GIOP_Twoway_Invocation _tao_call (
@@ -1679,7 +1676,7 @@ CORBA::Boolean Messaging::Poller::is_from_poller (
// cannot happen
if (_invoke_status != TAO_INVOKE_OK)
{
- ACE_THROW_RETURN (CORBA::UNKNOWN (TAO_DEFAULT_MINOR_CODE, CORBA::COMPLETED_YES), _tao_retval);
+ ACE_THROW_RETURN (CORBA::UNKNOWN (CORBA::COMPLETED_YES), _tao_retval);
}
break;
@@ -1689,7 +1686,7 @@ CORBA::Boolean Messaging::Poller::is_from_poller (
if (!(
(_tao_in >> CORBA::Any::to_boolean (_tao_retval))
))
- ACE_THROW_RETURN (CORBA::MARSHAL (TAO_DEFAULT_MINOR_CODE, CORBA::COMPLETED_YES), _tao_retval);
+ ACE_THROW_RETURN (CORBA::MARSHAL (CORBA::COMPLETED_YES), _tao_retval);
return _tao_retval;
}
@@ -1701,7 +1698,7 @@ CORBA::Object_ptr Messaging::Poller::target (
TAO_Stub *istub = this->_stubobj ();
if (istub == 0)
- ACE_THROW_RETURN (CORBA::INV_OBJREF (), _tao_retval);
+ ACE_THROW_RETURN (CORBA::INV_OBJREF (CORBA::COMPLETED_NO), _tao_retval);
TAO_GIOP_Twoway_Invocation _tao_call (
@@ -1727,7 +1724,7 @@ CORBA::Object_ptr Messaging::Poller::target (
// cannot happen
if (_invoke_status != TAO_INVOKE_OK)
{
- ACE_THROW_RETURN (CORBA::UNKNOWN (TAO_DEFAULT_MINOR_CODE, CORBA::COMPLETED_YES), _tao_retval);
+ ACE_THROW_RETURN (CORBA::UNKNOWN (CORBA::COMPLETED_YES), _tao_retval);
}
break;
@@ -1737,7 +1734,7 @@ CORBA::Object_ptr Messaging::Poller::target (
if (!(
(_tao_in >> _tao_retval)
))
- ACE_THROW_RETURN (CORBA::MARSHAL (TAO_DEFAULT_MINOR_CODE, CORBA::COMPLETED_YES), _tao_retval);
+ ACE_THROW_RETURN (CORBA::MARSHAL (CORBA::COMPLETED_YES), _tao_retval);
return _tao_retval;
}
@@ -1749,7 +1746,7 @@ char * Messaging::Poller::op_name (
TAO_Stub *istub = this->_stubobj ();
if (istub == 0)
- ACE_THROW_RETURN (CORBA::INV_OBJREF (), _tao_retval);
+ ACE_THROW_RETURN (CORBA::INV_OBJREF (CORBA::COMPLETED_NO), _tao_retval);
TAO_GIOP_Twoway_Invocation _tao_call (
@@ -1775,7 +1772,7 @@ char * Messaging::Poller::op_name (
// cannot happen
if (_invoke_status != TAO_INVOKE_OK)
{
- ACE_THROW_RETURN (CORBA::UNKNOWN (TAO_DEFAULT_MINOR_CODE, CORBA::COMPLETED_YES), _tao_retval);
+ ACE_THROW_RETURN (CORBA::UNKNOWN (CORBA::COMPLETED_YES), _tao_retval);
}
break;
@@ -1785,7 +1782,7 @@ char * Messaging::Poller::op_name (
if (!(
(_tao_in >> _tao_retval)
))
- ACE_THROW_RETURN (CORBA::MARSHAL (TAO_DEFAULT_MINOR_CODE, CORBA::COMPLETED_YES), _tao_retval);
+ ACE_THROW_RETURN (CORBA::MARSHAL (CORBA::COMPLETED_YES), _tao_retval);
return _tao_retval;
}
@@ -2286,5 +2283,3 @@ CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, Messaging::Poller_ptr &_
#endif /* TAO_POLLER */
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-
-#endif /* TAO_HAS_CORBA_MESSAGING */