Hello all,

I've write a TransactionCurrent implementation. I'm now trying to propagate
this current context to server according to policy set in the IOR of the
target object.

I've read in the spec that, if, in a server, we try to create an object
reference
with both:
    OTSPolicy = FORBIDS or ADAPTS
and InvocationPolicy = EITHER or UNSHARED

an exception should be raised (exception = InvalidPolicy)
(see TransactionService 1.4 -- 2.24)

I was first thinking of writing an IORInterceptor that will be called at
'create_POA' invocation, and then testing about policies that have been set.

But, in the spec of IORInterceptor (http://www.omg.org/docs/formal/04-03-19.pdf,
21.5.4.1)


"An implementation of establish_components must not throw exceptions. If it
does,
the ORB shall ignore the exception and proceed to call the next IOR
Interceptor’s
establish_components operation."


So how may I raise an 'InvalidPolicy' exception inside
'IORInterceptor::establish_components' ?

What will be a correct way of raising 'InvocationPolicy' into a server when
creating a POA with invalid policy ?

thanks a lot.

PS: Perhaps I don't understand correctly the spec ! Say it to me, please ;-)


+--------------------+
+ Laurent Marzullo
+
_______________________________________________
Mico-devel mailing list
[email protected]
http://www.mico.org/mailman/listinfo/mico-devel

Reply via email to