Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Annotations
Hi there!
I'm using Vaadin in a JEE 6 context with JPA 2.0 and Hibernate. I've seen that annotations only work in the Application class or in EJB.
To implement bussiness logic I'm using EJB's. To connect this EJB's to the GUI i would like to use annotations (@EJB) instead of the BeanLocator pattern because it's really ugly.
Is there a way to use annotations in Vaading GUI classes? (annotations not BeanLocator!)
Thank you,
Matthias
Have a look at the solution suggested in: https://vaadin.com/wiki/-/wiki/Main/Creating%20JEE6%20Vaadin%20Applications.