Community   SpringSource   Projects    Downloads    Documentation    Forums    Training   Exchange   Blogs

Go Back   Spring Community Forums > Core Spring Projects > Web

Reply
 
Thread Tools Display Modes
  #1  
Old Nov 27th, 2009, 05:10 AM
ahoehma ahoehma is offline
Junior Member
 
Join Date: Aug 2007
Posts: 10
Question TaskExecutor with Session Scoped Bean

Hello Folks,

in a JEE project we are using TaskExecutor to run background processes.
These background-processes are started from "normal" request-actions (JSF).
Inside the Task Runnable we are accessing session-scoped Beans.

Now we have a problem with "cached" request objects (tested with jetty).
If the task code call a session-scoped bean then the aop-proxy try to load the "current" session from request attribute. This will not always work ... i.e. if the Webcontainer "reused" request objects (i.e. for performance improvment).

Is there a "best practise" to use TaskExecutor inside JEE?

Regards
Andreas
Reply With Quote
  #2  
Old Dec 1st, 2009, 05:04 AM
ahoehma ahoehma is offline
Junior Member
 
Join Date: Aug 2007
Posts: 10
Talking

http://jira.springframework.org/browse/SPR-6479
Reply With Quote
Reply

Tags
taskexecutor

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 02:17 AM.


Contegix provides first-class managed hosting and partial sponsorship of these forums.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.