2 Replies Latest reply on Feb 26, 2015 4:16 PM by maxsap

    Errai spring-boot integration

    maxsap

      Hello everyone,

       

      While searching for a way to implement our front-end, we can up with Errai and we where impraised from its capabilities.

      Unfortunatelly our backend servers are developed using spring-boot and hence we are not using CDI for the DI part.

      We would like to clarrify the following:

      1. Can spring-boot be used as a technology to fuel Errai?
      2. If yes, (correct me if I am wrong) since CDI events mechanism is used for the event propagatio on Errai, we would need to also bridge spring with CDI, so is there a way to use spring for that?

       

      Best,

      Maximos

        • 1. Re: Errai spring-boot integration
          csa

          Hi Maximos,

           

          Most Errai features focus on the client-side so you don't need a Java EE server, in fact you don't even need a Java server at all as you can host the statically generated JavaScript anywhere.

           

          Errai Messaging and our CDI event bridge (which allows sending CDI events across the wire) are the main exceptions, and yes you then need CDI support on the server. Errai uses the default CDI extension mechanism, so you only need to figure out how to make CDI work on whatever server you're using. Here's some info on the Spring CDI integration project as part of DeltaSpike: https://cwiki.apache.org/confluence/display/DeltaSpike/Spring+CDI+integration

           

          Cheers,

          Christian

          • 2. Re: Errai spring-boot integration
            maxsap

            Hello Christian,

             

            Thank you for the response, one last think, I've been looking for examples that show how to integrate errai with a spring backend, are there any community samples?

             

            Best,

            Maximos.