You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@abdera.apache.org by "Deepal Jayasinghe (JIRA)" <ji...@apache.org> on 2008/01/04 05:29:34 UTC

[jira] Created: (ABDERA-84) Server side session management support

Server side session management support
--------------------------------------

                 Key: ABDERA-84
                 URL: https://issues.apache.org/jira/browse/ABDERA-84
             Project: Abdera
          Issue Type: New Feature
            Reporter: Deepal Jayasinghe


I am implementing a client server application using abdera and I need to maintain a session in the server side , simply I need to keep a value in the session across multiple requests. When I looked at the code I did not find a way to do that, so it would be great of we can add the HttpServletRequest in to the RequestContext . Then I can store value in the HttpServletRequest  and use that. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Re: [jira] Commented: (ABDERA-84) Server side session management support

Posted by David Primmer <da...@gmail.com>.
I have to agree with vasu. It seems like framework creep to me. From your
example, what goes into this in-memory store? I'm not saying there aren't
valid reasons to do this, just that I agree with vasu that Abdera should be
conservative in its approach and enforce best practices.
davep

On Feb 7, 2008 1:08 PM, Vasudeva Nori <va...@gmail.com> wrote:

> Abdera could be hosted on an application server such as JBoss, WebSphere
> etc
> which can provide session-management and much more. I think
> session-management belongs in J2EE application server platforms do this
> job
> very well and one could write a very efficient application using J2EE
> application server platform and abdera.
> abdera does atom protocol  and all associated functions very well. I'd
> like
> to see this codebase remain just that.
>
>
>
> On Feb 7, 2008 11:43 AM, James M Snell <ja...@gmail.com> wrote:
>
> > Yes, it does run counter to basic REST principals but there are valid
> > practical reasons why someone would want this.  One of the example
> > Atompub services, for instance, uses a per-session in memory store.  I
> > don't think it's something we should be recommending but I think it's a
> > good idea to at least make it available.
> >
> > - James
> >
> > David Primmer wrote:
> > > Can someone explain to me again why you'd want server side session
> > support
> > > in abdera? It seems anti-ethical to REST principles.
> > >
> > > davep
> > >
> > > On Feb 7, 2008 7:24 AM, James M Snell (JIRA) <ji...@apache.org> wrote:
> > >
> > >>    [
> > >>
> >
> https://issues.apache.org/jira/browse/ABDERA-84?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12566634#action_12566634
> > ]
> > >>
> > >> James M Snell commented on ABDERA-84:
> > >> -------------------------------------
> > >>
> > >> Right, which was a bug because the session wasn't being created.  The
> > bug
> > >> was fixed and it should be working now.
> > >>
> > >>> Server side session management support
> > >>> --------------------------------------
> > >>>
> > >>>                 Key: ABDERA-84
> > >>>                 URL: https://issues.apache.org/jira/browse/ABDERA-84
> > >>>             Project: Abdera
> > >>>          Issue Type: New Feature
> > >>>            Reporter: Deepal Jayasinghe
> > >>>             Fix For: 0.4.0
> > >>>
> > >>>
> > >>> I am implementing a client server application using abdera and I
> need
> > to
> > >> maintain a session in the server side , simply I need to keep a value
> > in the
> > >> session across multiple requests. When I looked at the code I did not
> > find a
> > >> way to do that, so it would be great of we can add the
> > HttpServletRequest in
> > >> to the RequestContext . Then I can store value in the
> > HttpServletRequest
> > >>  and use that.
> > >>
> > >> --
> > >> This message is automatically generated by JIRA.
> > >> -
> > >> You can reply to this email to add a comment to the issue online.
> > >>
> > >>
> > >
> >
>

Re: [jira] Commented: (ABDERA-84) Server side session management support

Posted by Vasudeva Nori <va...@gmail.com>.
Abdera could be hosted on an application server such as JBoss, WebSphere etc
which can provide session-management and much more. I think
session-management belongs in J2EE application server platforms do this job
very well and one could write a very efficient application using J2EE
application server platform and abdera.
abdera does atom protocol  and all associated functions very well. I'd like
to see this codebase remain just that.



On Feb 7, 2008 11:43 AM, James M Snell <ja...@gmail.com> wrote:

> Yes, it does run counter to basic REST principals but there are valid
> practical reasons why someone would want this.  One of the example
> Atompub services, for instance, uses a per-session in memory store.  I
> don't think it's something we should be recommending but I think it's a
> good idea to at least make it available.
>
> - James
>
> David Primmer wrote:
> > Can someone explain to me again why you'd want server side session
> support
> > in abdera? It seems anti-ethical to REST principles.
> >
> > davep
> >
> > On Feb 7, 2008 7:24 AM, James M Snell (JIRA) <ji...@apache.org> wrote:
> >
> >>    [
> >>
> https://issues.apache.org/jira/browse/ABDERA-84?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12566634#action_12566634
> ]
> >>
> >> James M Snell commented on ABDERA-84:
> >> -------------------------------------
> >>
> >> Right, which was a bug because the session wasn't being created.  The
> bug
> >> was fixed and it should be working now.
> >>
> >>> Server side session management support
> >>> --------------------------------------
> >>>
> >>>                 Key: ABDERA-84
> >>>                 URL: https://issues.apache.org/jira/browse/ABDERA-84
> >>>             Project: Abdera
> >>>          Issue Type: New Feature
> >>>            Reporter: Deepal Jayasinghe
> >>>             Fix For: 0.4.0
> >>>
> >>>
> >>> I am implementing a client server application using abdera and I need
> to
> >> maintain a session in the server side , simply I need to keep a value
> in the
> >> session across multiple requests. When I looked at the code I did not
> find a
> >> way to do that, so it would be great of we can add the
> HttpServletRequest in
> >> to the RequestContext . Then I can store value in the
> HttpServletRequest
> >>  and use that.
> >>
> >> --
> >> This message is automatically generated by JIRA.
> >> -
> >> You can reply to this email to add a comment to the issue online.
> >>
> >>
> >
>

Re: [jira] Commented: (ABDERA-84) Server side session management support

Posted by James M Snell <ja...@gmail.com>.
Yes, it does run counter to basic REST principals but there are valid 
practical reasons why someone would want this.  One of the example 
Atompub services, for instance, uses a per-session in memory store.  I 
don't think it's something we should be recommending but I think it's a 
good idea to at least make it available.

- James

David Primmer wrote:
> Can someone explain to me again why you'd want server side session support
> in abdera? It seems anti-ethical to REST principles.
> 
> davep
> 
> On Feb 7, 2008 7:24 AM, James M Snell (JIRA) <ji...@apache.org> wrote:
> 
>>    [
>> https://issues.apache.org/jira/browse/ABDERA-84?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12566634#action_12566634]
>>
>> James M Snell commented on ABDERA-84:
>> -------------------------------------
>>
>> Right, which was a bug because the session wasn't being created.  The bug
>> was fixed and it should be working now.
>>
>>> Server side session management support
>>> --------------------------------------
>>>
>>>                 Key: ABDERA-84
>>>                 URL: https://issues.apache.org/jira/browse/ABDERA-84
>>>             Project: Abdera
>>>          Issue Type: New Feature
>>>            Reporter: Deepal Jayasinghe
>>>             Fix For: 0.4.0
>>>
>>>
>>> I am implementing a client server application using abdera and I need to
>> maintain a session in the server side , simply I need to keep a value in the
>> session across multiple requests. When I looked at the code I did not find a
>> way to do that, so it would be great of we can add the HttpServletRequest in
>> to the RequestContext . Then I can store value in the HttpServletRequest
>>  and use that.
>>
>> --
>> This message is automatically generated by JIRA.
>> -
>> You can reply to this email to add a comment to the issue online.
>>
>>
> 

Re: [jira] Commented: (ABDERA-84) Server side session management support

Posted by David Primmer <da...@gmail.com>.
Can someone explain to me again why you'd want server side session support
in abdera? It seems anti-ethical to REST principles.

davep

On Feb 7, 2008 7:24 AM, James M Snell (JIRA) <ji...@apache.org> wrote:

>
>    [
> https://issues.apache.org/jira/browse/ABDERA-84?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12566634#action_12566634]
>
> James M Snell commented on ABDERA-84:
> -------------------------------------
>
> Right, which was a bug because the session wasn't being created.  The bug
> was fixed and it should be working now.
>
> > Server side session management support
> > --------------------------------------
> >
> >                 Key: ABDERA-84
> >                 URL: https://issues.apache.org/jira/browse/ABDERA-84
> >             Project: Abdera
> >          Issue Type: New Feature
> >            Reporter: Deepal Jayasinghe
> >             Fix For: 0.4.0
> >
> >
> > I am implementing a client server application using abdera and I need to
> maintain a session in the server side , simply I need to keep a value in the
> session across multiple requests. When I looked at the code I did not find a
> way to do that, so it would be great of we can add the HttpServletRequest in
> to the RequestContext . Then I can store value in the HttpServletRequest
>  and use that.
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>

[jira] Commented: (ABDERA-84) Server side session management support

Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ABDERA-84?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12566495#action_12566495 ] 

Deepal Jayasinghe commented on ABDERA-84:
-----------------------------------------

Yes that option is there , however when I called that , it gave me an NPE

> Server side session management support
> --------------------------------------
>
>                 Key: ABDERA-84
>                 URL: https://issues.apache.org/jira/browse/ABDERA-84
>             Project: Abdera
>          Issue Type: New Feature
>            Reporter: Deepal Jayasinghe
>             Fix For: 0.4.0
>
>
> I am implementing a client server application using abdera and I need to maintain a session in the server side , simply I need to keep a value in the session across multiple requests. When I looked at the code I did not find a way to do that, so it would be great of we can add the HttpServletRequest in to the RequestContext . Then I can store value in the HttpServletRequest  and use that. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (ABDERA-84) Server side session management support

Posted by "James M Snell (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ABDERA-84?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12566634#action_12566634 ] 

James M Snell commented on ABDERA-84:
-------------------------------------

Right, which was a bug because the session wasn't being created.  The bug was fixed and it should be working now.

> Server side session management support
> --------------------------------------
>
>                 Key: ABDERA-84
>                 URL: https://issues.apache.org/jira/browse/ABDERA-84
>             Project: Abdera
>          Issue Type: New Feature
>            Reporter: Deepal Jayasinghe
>             Fix For: 0.4.0
>
>
> I am implementing a client server application using abdera and I need to maintain a session in the server side , simply I need to keep a value in the session across multiple requests. When I looked at the code I did not find a way to do that, so it would be great of we can add the HttpServletRequest in to the RequestContext . Then I can store value in the HttpServletRequest  and use that. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (ABDERA-84) Server side session management support

Posted by "James M Snell (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ABDERA-84?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James M Snell resolved ABDERA-84.
---------------------------------

       Resolution: Invalid
    Fix Version/s: 0.4.0

RequestContext already has this. e.g. RequestContext.setAttribute(Scope.SESSION, "foo", "bar");

> Server side session management support
> --------------------------------------
>
>                 Key: ABDERA-84
>                 URL: https://issues.apache.org/jira/browse/ABDERA-84
>             Project: Abdera
>          Issue Type: New Feature
>            Reporter: Deepal Jayasinghe
>             Fix For: 0.4.0
>
>
> I am implementing a client server application using abdera and I need to maintain a session in the server side , simply I need to keep a value in the session across multiple requests. When I looked at the code I did not find a way to do that, so it would be great of we can add the HttpServletRequest in to the RequestContext . Then I can store value in the HttpServletRequest  and use that. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.