Integration of JBoss Errai and Spring?

Errai rock web development using GWT. However, I want to use the Spring code base for use in my internal web application services.

Service as:

@Service public class ProductServiceImpl implements ProductService { // ... } 

Where can I call this service from the side of the GWT interface, what are the parameters when I already use JBoss Errai?

+4
source share
2 answers

here is an example on how to integrate errai services using spring

+2
source

1.- You can enter dependencies through some implementation of CDI (Seam is used for JBoss AS). Or 2.- you can use Seam to activate the spring application context if you insist on using spring.

In the first option, you can use some errai archetype to get the basic skeleton of the application. In the second option ... you can do the same, but you should read about integration with the seam spring.

Link for archetype

Link for spring integration

0
source

All Articles