deltaspike-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shultz, Dmitry" <Dmitry_Shu...@kaltire.com>
Subject RE: Quarkus + Deltaspike
Date Wed, 15 Apr 2020 22:06:49 GMT
Yes, porting it to Panashe right now,  going pretty smooth so far...

Also, using Deltaspike Project Stage related annotations - @Exclude(exceptIfProjectStage =
{ProjectStage.Production.class}) - is there anything similar in Quarkus?

Would be awesome to have some migration guide, I can help with this (If I can figure it all
out:) 


-----Original Message-----
From: Jason Porter [mailto:lightguard.jp@gmail.com] 
Sent: Wednesday, April 15, 2020 2:15 PM
To: users@deltaspike.apache.org
Subject: Re: Quarkus + Deltaspike

Have you taken a look at Panache?

On Wed, Apr 15, 2020 at 2:29 PM Shultz, Dmitry <Dmitry_Shultz@kaltire.com>
wrote:

> Thanks Jason & Thomas, it makes sense.
>
> I have repositories extending the FullEntityRepository, is there is 
> anything like this in Quarkus (or is it better to port it  to use just 
> bare EntityManager)?.
>
> Also, I developed the GroovyConfigSorce that extends the ConfigSource 
> because I really like to use .groovy files as configuration sources 
> (groovy code blocks totally rock  for defining complex (and/or 
> related) config structures). Hopefully, MP Config has everyrhing I 
> need to port this to Quarkus.
>
> Cheers,
> Dmitry
>
>
> -----Original Message-----
> From: Jason Porter [mailto:lightguard.jp@gmail.com]
> Sent: Wednesday, April 15, 2020 12:35 PM
> To: users@deltaspike.apache.org
> Subject: Re: Quarkus + Deltaspike
>
> Thomas is correct. This would be a pretty big effort to get DeltaSpike 
> Quarkus compatible. Is there something you're looking for out of 
> DeltaSpike in your Quarkus project?
>
> On Wed, Apr 15, 2020 at 12:57 PM Thomas Andraschko < 
> andraschko.thomas@gmail.com> wrote:
>
> > Hi,
> >
> > that wont work!
> > Quarkus isn't a CDI implementation (it just uses many API parts), so 
> > i general we would need to re-development party of DS in a Quarkus
> extension.
> > E.g. Quarkus doesn't support the CDI Extensions mechanism, where DS 
> > takes a heavy use of it.
> >
> > If you would like to create a such a extensions, i can give you some
> hints.
> > But i think the effort isn't low to port all modules.
> >
> > Best regards,
> > Thomas
> >
> > <
> > https://urldefense.com/v3/__https://www.avast.com/sig-email?utm_medi
> > um 
> > =email&utm_source=link&utm_campaign=sig-email&utm_content=webmail__;!!
> > LdWlNaMnLCM!PB3YSOb2VKcuJrUc9ubG63owvxPKM-gi7t3IEaVB5BlcJkytlRc8SObj
> > sO
> > mf9UqWGoPb$
> > >
> > Virenfrei.
> > https://urldefense.com/v3/__http://www.avast.com__;!!LdWlNaMnLCM!PB3
> > YS Ob2VKcuJrUc9ubG63owvxPKM-gi7t3IEaVB5BlcJkytlRc8SObjsOmf9UZj-30P$
> > <
> > https://urldefense.com/v3/__https://www.avast.com/sig-email?utm_medi
> > um 
> > =email&utm_source=link&utm_campaign=sig-email&utm_content=webmail__;!!
> > LdWlNaMnLCM!PB3YSOb2VKcuJrUc9ubG63owvxPKM-gi7t3IEaVB5BlcJkytlRc8SObj
> > sO
> > mf9UqWGoPb$
> > >
> > <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
> >
> > Am Mi., 15. Apr. 2020 um 20:34 Uhr schrieb Shultz, Dmitry <
> > Dmitry_Shultz@kaltire.com>:
> >
> > > Hi All,
> > >
> > > I'm trying to use Deltaspike (1.9.3) in the fresh Quarkus project 
> > > and getting this exception:
> > >
> > > java.lang.RuntimeException: io.quarkus.builder.BuildException: 
> > > Build
> > > failure: Build failed due to errors
> > >                 [error]: Build step 
> > > io.quarkus.arc.deployment.ArcProcessor#registerBeans threw an
> exception:
> > > java.lang.IllegalStateException: Bean defined via class
> > >
> > org.apache.deltaspike.jpa.impl.transaction.EnvironmentAwareTransacti
> > on
> > Strategy
> > > is declared as an @Alternative, but has no @Priority. Either 
> > > declare a @Priority or leverage @io.quarkus.arc.AlernativePriority annotation.
> > >                 at
> > > io.quarkus.arc.processor.Beans.createClassBean(Beans.java:125)
> > >                 at
> > >
> > io.quarkus.arc.processor.BeanDeployment.findBeans(BeanDeployment.java:
> > 743)
> > >                 at
> > >
> > io.quarkus.arc.processor.BeanDeployment.registerBeans(BeanDeployment
> > .j
> > ava:206)
> > >                 at
> > >
> > io.quarkus.arc.processor.BeanProcessor.registerBeans(BeanProcessor.j
> > av
> > a:122)
> > >                 at
> > >
> > io.quarkus.arc.deployment.ArcProcessor.registerBeans(ArcProcessor.ja
> > va
> > :262)
> > >                 at
> > > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Na
> > > ti
> > > ve
> > > Method)
> > >                 at
> > >
> > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Nativ
> > eM
> > ethodAccessorImpl.java:62)
> > >                 at
> > >
> > java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(D
> > el
> > egatingMethodAccessorImpl.java:43)
> > >                 at
> > > java.base/java.lang.reflect.Method.invoke(Method.java:564)
> > >                 at
> > >
> io.quarkus.deployment.ExtensionLoader$2.execute(ExtensionLoader.java:9
> 38)
> > >                 at
> > > io.quarkus.builder.BuildContext.run(BuildContext.java:273)
> > >                 at
> > >
> > org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassL
> > oa
> > derSavingRunnable.java:35)
> > >                 at
> > >
> > org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.
> > java:2027)
> > >                 at
> > >
> > org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(Enhance
> > dQ
> > ueueExecutor.java:1551)
> > >                 at
> > >
> > org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueue
> > Ex
> > ecutor.java:1442)
> > >                 at java.base/java.lang.Thread.run(Thread.java:832)
> > >                 at
> > org.jboss.threads.JBossThread.run(JBossThread.java:479)
> > >
> > >
> > > How to fix?
> > >
> > > In general, is Deltaspike supposed to be used with Quarkus?
> > >
> > > Cheers,
> > > Dmitry
> > >
> >
>
>
> --
> Jason Porter
>
> https://urldefense.com/v3/__http://en.gravatar.com/lightguardjp__;!!Ld
> WlNaMnLCM!PB3YSOb2VKcuJrUc9ubG63owvxPKM-gi7t3IEaVB5BlcJkytlRc8SObjsOmf
> 9cLFpJT6$
>


--
Jason Porter
https://urldefense.com/v3/__http://en.gravatar.com/lightguardjp__;!!LdWlNaMnLCM!K0Y_iy-FkpDB19AehWYpUtYwiDLB5B68NeMrLKFzZMKV8e3B3ZMQ7K9r3XIlFgBM3nMn$

Mime
View raw message