Vaadin Benchmarks

I’m no Joonas, but I’ve been using EJBs with Vaadin for a while now. I believe the simplest way (no CDI involved) is to inject EJBs into your application servlet and pass them to the application object constructor. In
this blog about a Vaadin sample app
, you can see an example of this in use.
Here is the servlet class
.

Then, in your Vaadin app, you just make calls on the EJB as if it were any other object. Under the covers, any handle an app has to an EJB is really to an object managed by the container that wraps calls to the real pool of EJBs. So it’s ok to hang onto this object, serialize it, whatever, that might happen in a web application.

Cheers,
Bobby