This week's giveaway is in the Threads forum.
We're giving away four copies of Java Concurrency Live Lessons and have Doug Schmidt on-line!
See this thread for details.
Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

From Struts2: When an ActionContext Object is created?  RSS feed

 
Chinmaya Chowdary
Ranch Hand
Posts: 437
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Can you please explain, when a request comes to the server, at which stage 'ActionContext' Object will be available, i.e when Struts2 framework creates this object? Thankyou.
 
Chinmaya Chowdary
Ranch Hand
Posts: 437
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please help on this or provide related link. Thankyou.
 
Chinmaya Chowdary
Ranch Hand
Posts: 437
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I came to know that framework creates the ActionContext object during server/container startup and makes a pool. When a request comes, framework gets the ActionContext from the pool, creates ThreadLocal object and sets ActionContext object upon it. Is it true or it follows another approach? Please reply. Thankyou.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!