You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@isis.apache.org by Erik de Hair <er...@pocos.nl> on 2014/04/23 09:55:39 UTC

session scoped service?

Hi,

Is there any session scoped service that one can use for frequently used lists? I tried to register a service having @SessionScoped but these can't have members.

Thanks,
Erik

Re: session scoped service?

Posted by Mike Burton <mi...@mycosystems.co.uk>.
Hi Erik,

I would avoid Session Scope for these, and have them automatically cached at various levels rather than manually. Unless this gives specific performance shortcomings , such as measurable "slowness"

Best Regards

Mike Burton





On 23 Apr 2014, at 08:55, Erik de Hair <er...@pocos.nl> wrote:

> Hi,
> 
> Is there any session scoped service that one can use for frequently used lists? I tried to register a service having @SessionScoped but these can't have members.
> 
> Thanks,
> Erik


Re: session scoped service?

Posted by Erik de Hair <er...@pocos.nl>.
Ok,will do that.

Thanks,
Erik


On 04/23/2014 11:07 AM, Dan Haywood wrote:

Hi Erik,
That's not yet been implemented, I'm afraid.

It didn't take me long to implement support for the RequestScoped services,
so it should be do-able.   Please raise a ticket.

In the meantime, you can quite easily write a regular (singleton) service
that stores state in HttpSession.

Thx
Dan



On 23 April 2014 08:55, Erik de Hair <er...@pocos.nl> wrote:



Hi,

Is there any session scoped service that one can use for frequently used
lists? I tried to register a service having @SessionScoped but these can't
have members.

Thanks,
Erik







Re: session scoped service?

Posted by Erik de Hair <er...@pocos.nl>.
created the following ticket: https://issues.apache.org/jira/browse/ISIS-768

Erik

On 04/23/2014 11:07 AM, Dan Haywood wrote:

Hi Erik,
That's not yet been implemented, I'm afraid.

It didn't take me long to implement support for the RequestScoped services,
so it should be do-able.   Please raise a ticket.

In the meantime, you can quite easily write a regular (singleton) service
that stores state in HttpSession.

Thx
Dan



On 23 April 2014 08:55, Erik de Hair <er...@pocos.nl> wrote:



Hi,

Is there any session scoped service that one can use for frequently used
lists? I tried to register a service having @SessionScoped but these can't
have members.

Thanks,
Erik







Re: session scoped service?

Posted by Dan Haywood <da...@haywood-associates.co.uk>.
Hi Erik,
That's not yet been implemented, I'm afraid.

It didn't take me long to implement support for the RequestScoped services,
so it should be do-able.   Please raise a ticket.

In the meantime, you can quite easily write a regular (singleton) service
that stores state in HttpSession.

Thx
Dan



On 23 April 2014 08:55, Erik de Hair <er...@pocos.nl> wrote:

> Hi,
>
> Is there any session scoped service that one can use for frequently used
> lists? I tried to register a service having @SessionScoped but these can't
> have members.
>
> Thanks,
> Erik
>