3

Quarkus JVM mode with JSF

I have an existing thorntail 2.4 based web application built using JSF and JEE (CDI/EJB).

For my technology stack above, if I am only using the JVM mode and not the native mode, is it possible to package my application using runtime?

I understand that EJB spec is not implemented with quarkus and I am OK with rewriting EJBs as CDI+JTA services but want to know if it's possible to use JSF with quarkus.

3_eyed_raven
  • 43
  • 1
  • 5

2 Answers2

12

There is an extension for it available: https://github.com/tandraschko/quarkus-myfaces

UPDATE: I moved my 'personal' extension to MyFaces Core and we already have an 2.3-next-M1 release ready. The showcase is available here and already uses the released version: https://github.com/apache/myfaces/tree/master/extensions/quarkus/showcase

UPDATE: We even released M2 today which supports native images!

tandraschko
  • 2,291
  • 13
  • 13
-1

Quarkus doesn't provide a JSF extension.

But it should be possible for your application to directly include a JSF implementation as a dependency and have it work

Ken
  • 835
  • 4
  • 11
  • No, it is not possible. https://stackoverflow.com/questions/59079402/quarkus-extension-or-not-for-jsf/59095171#59095171 – nimo23 Nov 29 '19 at 13:34
  • I'm pretty sure that extension is only needed if you want to run in native mode. Pure JVM shouldn't have any issues whatsoever – Ken Dec 02 '19 at 13:31
  • No, unfortunately it does not work. Adding jsf in pure jvm mode does **not** work! – nimo23 Dec 02 '19 at 13:35