Re: Conflicting invocation constraints

Mark Brouwer <[email protected]>
Newsgroups gmane.comp.java.sun.jini
Message-ID <[email protected]>
Thanks Tim,

Tim Blackman wrote:

> Whether constraints conflict with each other is a question that needs
> to be answered by the Endpoint implementation, not by the generic
> constraints mechanism.
>
> In the SSL endpoint code, this process happens in the SslEndpointImpl
> class, starting with the getCallContext method.  Note that the basic
> approach is to compute SSL configurations that match the specified
> constraints; if none match, then the constraints must be
> unsatisfiable, which includes the case of them conflicting with each
> other.

So when the server imposed constraints is Confidentiality.YES
(requirement) and the client set constraints is Confidentiality.NO
(requirement) that would result in no call context as you won't be able
to find a cipher suite that can satisfy both?

I did find getCallContext() but I was also looking for an exception that
would make clear there was a conflict. The end result is the same, maybe
with the only disadvantage that a client is not told as part of its
exception the constraints couldn't be satisfied due to a conflict.

But what happens when you have a connection timeout constraints imposed
by the server of 10000ms (requirement) and a connection timeout
constraints of 500ms (requirement) by the client. I would call this a
conflict but both seems to be able to be satisfied, which one will be
chosen, or will this result in no call context as well?

> As a side note, in pre-release versions of the code, constraints did
> have a notion of conflicting constraints, but this turned out to be
> both quite complicated and not really right.

:-) feels like the situation I'm in, constraining remote method
invocations by concepts that can be understood by most people and
that translates to invocation constraints that doesn't conflict with
each-other.

I had hoped by looking at the 'conflict detection' code I would have had
another source of teaching material in applying constraints.
--
Mark

--------------------------------------------------------------------------
Getting Started:     http://www.jini.org/wiki/Category:Getting_Started
Community Web Site:  http://jini.org
jini-users Archive:  http://archives.java.sun.com/archives/jini-users.html
Unsubscribing:       email "signoff JINI-USERS"  to [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.