4

Errai "rocks" web development using GWT. However I want to leverage on my Spring code base to be used in my web application back-end services.

Service like:

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

Where I can call this service from the GWT UI side, what are the options when I am already using JBoss Errai?

quarks
  • 33,478
  • 73
  • 290
  • 513

2 Answers2

2

here is the example of how to integrate errai services with spring

hahn
  • 3,588
  • 20
  • 31
0

1.- You can inject dependencies through some CDI implementation (for JBoss AS it uses Seam). Or 2.- you can use Seam, to activate the spring application context, if you insist to use spring.

In the first option, you can use some errai archetype to obtain a basic skeleton of an application. In the second option... you can the same thing, but you have to read about seam-spring context integration.

Link for the archetype

Link for spring integration

n3k0
  • 577
  • 14
  • 40