-
1. Re: releaseSessions support
julien1 Dec 7, 2006 7:34 PM (in response to claprun)with the actual design :
- if they call release session, we should react with a null operation internally and at the protocol level according to how the wsrp spec says to react (as you said, OperationFaultException would be an option to signal to the consumer that it is doing an error).
- about resource management, today as no explicit session invalidation is performed, that will be done by the servlet layer that will garbage the expired sessions.
For now, we don't even have that at the portal level and it would be a feature to add in the later releases of the project. Actually the only thing we have now on an explicit user logout is to trash the portlet sessions for security reasons which is similar.
So the current mechanism is not broken and we should wait until we implement it in a better way at the portal level or we have feedback from the field that this feature would provide a mesureable value added. -
2. Re: releaseSessions support
claprun Dec 8, 2006 12:10 AM (in response to claprun)"julien@jboss.com" wrote:
- if they call release session, we should react with a null operation internally and at the protocol level according to how the wsrp spec says to react (as you said, OperationFaultException would be an option to signal to the consumer that it is doing an error).
The spec doesn't really cover this aspect since the spec expects Portlet session IDs to be available, which is why I was asking. OperationFaultException has the semantics that something went wrong during the processing of the operation so I was not too keen on using that but there really is no other option if we want to notify the consumer that the operation shouldn't have been called. Hopefully, existing consumers can deal with not having Portlet sessions appropriately! :) -
3. Re: releaseSessions support
julien1 Dec 8, 2006 3:35 AM (in response to claprun)What about making it configurable at the service level :
<on-release-session>throw_fault</on-release-session>
<on-release-session>ignore</on-release-session>
? -
4. Re: releaseSessions support
claprun Dec 8, 2006 12:14 PM (in response to claprun)"julien@jboss.com" wrote:
What about making it configurable at the service level :
<on-release-session>throw_fault</on-release-session>
<on-release-session>ignore</on-release-session>
?
I'm not sure there's a need for that though it certainly can be done. I'm interpreting the spec as: throw a MissingParametersFault if there is no sessionIDs in the releaseSessions request (though the spec actually doesn't say that much) so I am assuming that consumers won't call the method if they don't have session ids. That was my first option and the one that's currently implemented, i.e. when releaseSessions is called, we check that the parameters are valid. If they are (which normally can't happen), we don't do anything. Otherwise, we throw the appropriate exception (InvalidRegistration, AccessDenied or MissingParameters). That's some processing for not much return though it's more semantically correct than just failing on OperationFailed. -
5. Re: releaseSessions support
claprun Dec 8, 2006 12:15 PM (in response to claprun)That said, throwing OperationFailedFault is definitely easier :)
-
6. Re: releaseSessions support
claprun Dec 11, 2006 4:01 PM (in response to claprun)I'm going to implement the OperationFailedFault solution without configuration for now. If people (and yes, that include people interested in using our WSRP implementation ^_^) think a different solution is better, please let us know (though we cannot promise we will implement it ^_^).
-
7. Re: releaseSessions support
julien1 Dec 11, 2006 4:41 PM (in response to claprun)you should probably document the behavior of the session in our dev docs later.
-
8. Re: releaseSessions support
mwringe Dec 15, 2006 12:08 PM (in response to claprun)"chris.laprun@jboss.com" wrote:
I'm going to implement the OperationFailedFault solution without configuration for now. If people (and yes, that include people interested in using our WSRP implementation ^_^) think a different solution is better, please let us know (though we cannot promise we will implement it ^_^).
Do you mean that releaseSession will always fail with an OperationFailedFault? or that it will remain as before except that it will fail with an OperationFailedFault instead of being silent?
(ie can it still fail with an invalid registration and missing parameters fault) -
9. Re: releaseSessions support
claprun Dec 15, 2006 1:07 PM (in response to claprun)"mwringe" wrote:
Do you mean that releaseSession will always fail with an OperationFailedFault? or that it will remain as before except that it will fail with an OperationFailedFault instead of being silent?
(ie can it still fail with an invalid registration and missing parameters fault)
It will fail without attempting to validate the parameters. There isn't much value in validating parameters for a method that shouldn't be called but there is processing time associated with it (validating a registration is not free for example).