Search code examples
javavaadinvaadin7

Any properties needs to be changed for multi user application


Please consider me as a novice and this is my first web app I am creating.

I am planning to develop a web application where the traffic I am expecting is around 50 users will access the application at a single time.

The webapp is developed with Vaadin (for UI) and respective business logic implemented with Java. DB used would be MySQL. The war will be deployed in Tomcat.

So, my question is do I need to modify anything in Tomcat properties or anywhere to make the web app as multi user application (i.e. each users need to access and use application as though they are only one using the application)?

I tried to access a prototype developed using Vaadin in both Chrome and Firefox and could see both sessions running without an impact on another.

But please let me know suggestions.


Solution

  • You must keep in mind that even if tomcat and vaadin manage multiple sessions, your server application will have only 1 instance. So if you use singletons, static methods or fields, use them with care: they should never hold session-dependant content. Try to favour stateless methods over statefull.

    Apart from that, there shouldn't be any problem.