Was about to write the same pointer (wrong import) ;) In Apache DeltaSpike we even have a small Extension which ‚corrects‘ those wrong scope annoations for you because it’s such a frequent user-error ;)
LieGrue, strub > Am 20.12.2015 um 22:38 schrieb Marco DE BOOIJ <[email protected]>: > > It is intended to use CDI. Did not have a clue what you talked about. Then I > searched the web, checked the import in the working and non working > SessionScope beans and found that I used the wrong SessionScope class. > Changed it to javax.enterprise.context.SessionScoped and now it works. Hope > that this is the correct answer to you question :) > > Op 20-12-15 om 21:22 schreef Romain Manni-Bucau: >> Is it intended to NOT use CDI session scope - guess it makes the issue easy >> to solve ;)? >> Le 20 déc. 2015 18:56, "Marco DE BOOIJ" <[email protected]> a écrit : >> >>> Keep it in this question :) >>> >>> I created a basic application. It has the same behavior. Every call to the >>> bean does an initialisation. I uploaded it to github. The URL is >>> https://github.com/mdebooy/SessionScoped. >>> >>> Op 20-12-15 om 15:56 schreef Marco DE BOOIJ: >>> >>>> After a nights sleep I came to the conclusion that it will be hard to >>>> have it tested this way. Too much things involved (database, application >>>> that 'delivers' the texts on the screen). I will se if I can make something >>>> simpler and hope that the problem remains. I then will make a new question >>>> when I am ready. >>>> >>>> Op 20-12-15 om 10:58 schreef Romain Manni-Bucau: >>>> >>>>> probably try to make it a single module to make it easy to test >>>>> >>>>> >>>>> Romain Manni-Bucau >>>>> @rmannibucau <https://twitter.com/rmannibucau> | Blog >>>>> <http://rmannibucau.wordpress.com> | Github < >>>>> https://github.com/rmannibucau> | >>>>> LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber >>>>> <http://www.tomitribe.com> >>>>> >>>>> >
