Vaadin Application lifecycle and bundle lifetime don't match

Description

When creating a Vaadin Application using the Vaadin-Application manifest entry the lifetime of the application and gets shared for all users. This is problematic for many applications and cause a feedback look between multiple browsers.

Suggest creating an ApplicationFactory so that these are created as needed by Vaadin.

Environment

None

Activity

Show:
Scott Parkerson
December 7, 2012, 10:30 PM
Matt Brozowski
December 19, 2012, 3:35 PM

Sorry to have missed the comments... For some reason I'm not getting email for these

The Application Lifecycle is NOT the same as that of the bundle. Every user that logs in gets his own instance of the application which is kept in the user's Session. The Application is destroyed with the Session is destroyed. Therefore the application lifecycle and the bundle lifecycle are not the same. If we share the same Application instance across users then user1 clicking a button gets called back in user2's Application instance causing very confused behavior.

I actually have a fix for this on a fork I made where I publish an ApplicationFactory as a service in my Vaadin bundle. Then this service creates the ApplicationServlet and uses the ApplicationFactory to create the Application object

Achim Nierbeck
February 7, 2013, 12:55 PM

Unfortunately nothing has been going on on this issue, so I'm gonna take over in the coming days.
I really want to get a first snapshot version out of the door and this one should be included

Achim Nierbeck
February 11, 2013, 11:05 AM

I did a first merge of both repositories in the PAXVAADIN-6 branch.
@Matt, btw. I've seen that there are a couple more new features in your branch, which I didn't merge. Do you want to share those also with pax-for-vaadin?

qing
June 15, 2016, 3:06 AM

http://www.yeezyboost350.uk
http://www.oakleysunglasses-cheapsale.com
http://www.adidasnmd.uk
http://www.authenticjordanscheap.us.com
http://www.michaelkors-outletonlines.us.com
http://www.nmdadidas.us.com
http://www.michaelkors-outletsonline.us.com
http://www.oakleysunglassesoutlet.us
http://www.nikedunks.us.org
http://www.jordanretro.uk
http://www.zoomkb24.com
http://www.jordansforcheap.us.com
http://www.tomsoutletstore.us.com
http://www.michaeljordanshoes.net
http://www.adidasnmd.com.co
http://www.uggoutlet.uk
http://www.kobebasketballshoes.net
http://www.kobesneakers.com
http://www.michaelkorsonline.name
http://www.cheapralphlauren.in.net
http://www.cheapralphlaurenonline.uk
http://www.michaelkors-handbags.net
http://www.jewellerytiffanyand.co
http://www.airjordan.cc
http://www.michael-kors-handbags.com.co
http://www.michaelkorsoutletsfactory.us.com
http://www.11jordanshoes.com
http://www.raybansunglassesoutlet.org
http://www.toms-outletstore.us.com
http://www.kobeshoes.uk
http://www.kobe-shoes.us.com
http://www.huaracheshoes.uk
http://www.tiffanyandcouk.uk
http://www.oakleyoutlet-store.com
http://www.fitflops-saleclearance.us.com
http://www.airhuarache.uk
http://www.huarachesshoes.uk
http://www.michaelkorsoutlets-online.eu.com
http://www.cheaptiffanyandco.in.net
http://www.oakleyvault.com.co
http://www.cheapnfljerseysonlinestore.com
http://www.oakley-sunglasses.co
http://www.michaelkors-outletstore.us.com
http://www.outlettiffanyandco.us.com
http://www.cheapairjordan.us
http://www.chromehearts.com.co
http://www.coach-outlet.in.net
http://www.michaelkorshandbagsclearance.com.co
http://www.cheapauthenticjordans.us.com
http://www.fitflops.cc
http://www.michaelkors-outletfactory.us.com
http://www.cheapbasketballshoes.us.com
http://www.zoomkb24.uk
http://www.michaelkors-outletstores.in.net
http://www.kobebasketballshoes.us.com
http://www.jewelrytiffanyand.co
http://www.oakley-sunglass.in.net
http://www.raybansunglass.us
http://www.rayban-sunglasses.uk
http://www.cheapnfljerseysstorechina.com
http://www.yeezy-shoes.us
http://www.cheap-jordanshoessale.com
http://www.cheap--jordans.us.com
http://www.tiffany.net.co
http://www.oakleyglasses.com.co
http://www.michaeljordanshoes.us.com
http://www.christianlouboutin.in.net
http://www.chinajerseyssaleonline.com
http://www.christian-louboutin-outlet.uk
http://www.yeezyboost.com.co
http://www.chromeheart.us.com
http://www.fitflopssandals.net
http://www.nfljerseys2015.in.net
http://www.truereligiononsale.in.net
http://www.ugg.name
http://www.nfljerseyscheap.in.net
http://www.tiffanyandcooutletonline.us.com
http://www.tiffanyandcojewellery.us.com
http://www.outletonline-michaelkors.us.org
http://www.cheapretro-jordans.com
http://www.mlbjerseyscheap.in.net
http://www.tiffanyand.co.uk
http://www.mlbjerseyswholesale.in.net
http://www.airhuaraches.org.uk
http://www.mlbjerseysauthentic.in.net
http://www.oakleystoreonline.us.org
http://www.cheaprolexwatchesonline.in.net
http://www.tomsoutletstore.name
http://www.michaelkorshandbagsoutlet.eu.com
http://www.fitflopsoutlet.in.net
http://www.yeezyshoes.uk
http://www.fitflops.com.co
http://www.outlettiffanyand.co
http://www.michaelkors-outletonline.co.uk
http://www.cheaptruereligionjeans.us
http://www.nfljerseyswholesale.in.net
http://www.michaelkorsonline.net
http://www.oakleyssunglassescheapsale.com
http://www.huarachesshoes.co.uk
http://www.raybansunglass.uk
http://www.oakleysunglassescheapssale.com
http://www.raybanglasses.in.net
http://www.tiffanyandco-outlet.us.com
http://www.yeezy-boost350.us.com
http://www.minireplicahut.com
http://www.cheap-airjordans.us.com
http://www.cheapairjordan.uk
http://www.chromeheartsonline.us.com
http://www.airjordanretro.uk
http://www.oakleysunglassescheap-sale.com
http://www.michaelkorshandbags.net
http://www.cheapairjordan.in.net
http://www.oakley-sunglassescheapsale.com
http://www.michaelkorsoutletonline.uk
http://www.discount-oakleysunglasses.us.com
http://www.cheaprealjordans.us.com
http://www.chromehearts.in.net
http://www.louis-vuittonhandbags.net
http://www.oakleysunglassescheapsales.com

Assignee

Matt Brozowski

Reporter

Matt Brozowski

Labels

None

Fix versions

Affects versions

Priority

Major
Configure