Git Product home page Git Product logo

Comments (13)

sonus21 avatar sonus21 commented on July 19, 2024 1

Please check version https://s01.oss.sonatype.org/content/repositories/snapshots/com/github/sonus21/rqueue-spring-boot-starter/2.13.2-SNAPSHOT/

To use this version add other maven repository https://s01.oss.sonatype.org/content/repositories

from rqueue.

sonus21 avatar sonus21 commented on July 19, 2024 1

Hello @arturo-ojeda
Its released now, 2.13.2-RELEASE. Please give it a try, it will work only for 2.x Spring Boot.

from rqueue.

arturo-ojeda avatar arturo-ojeda commented on July 19, 2024

No messages in the console and all requests return a 200:
CleanShot 2023-11-22 at 13 49 33

from rqueue.

arturo-ojeda avatar arturo-ojeda commented on July 19, 2024

Also, I'm sure the web app is connecting to the same Redis instance I'm navigating to in the IDE because if I stop the Redis server, both things fail at the same time.

from rqueue.

sonus21 avatar sonus21 commented on July 19, 2024

As per my initial investigation, it seems Spring ApplicationEventListener is not working thats causing. I'm not 100% sure how to fix this as I've not worked with Grails but I'm trying to find a way to provide you a solution.

Rqueue generates two kinds of events it seems both events are either getting rejected or something else.

One potential solution listed here

https://medium.com/whozapp/what-to-do-if-your-spring-application-listeners-stop-working-with-grails-4-986eebf4f784

We need to handle all these events otherwise application may function incorrectly.

https://github.com/sonus21/rqueue/tree/master/rqueue-core/src/main/java/com/github/sonus21/rqueue/models/event

from rqueue.

arturo-ojeda avatar arturo-ojeda commented on July 19, 2024

Thanks for checking this.

It's an interesting clue.

Will try to fix it too.

from rqueue.

arturo-ojeda avatar arturo-ojeda commented on July 19, 2024

Can confirm that it works now! thank you so much! 🙏🏻

CleanShot 2023-11-24 at 10 16 11

I tried a couple of things yesterday, with no success.

This is the correct Maven repo URL:
https://s01.oss.sonatype.org/content/repositories/snapshots

Should I close this issue or will you be making an official release and maybe we should wait until then?

from rqueue.

sonus21 avatar sonus21 commented on July 19, 2024

Thanks for confirming, I'll make a release in a day or 2 as I need to adjust the test cases for this change. BTW I'm getting 404 for all static routes, did you make any change in the UrlMappings?

from rqueue.

arturo-ojeda avatar arturo-ojeda commented on July 19, 2024

Understood, and thanks again.

Yes, I had to make some changes in order for static resources to work. Let me check which changes I made and I'll post them here.

from rqueue.

arturo-ojeda avatar arturo-ojeda commented on July 19, 2024

I created MvcConfig.groovy and put it inside the grails-app/conf folder:

import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer

class MvcConfig implements WebMvcConfigurer {
    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        if (!registry.hasMappingForPattern("/**")) {
            registry.addResourceHandler("/**").addResourceLocations("classpath:/public/");
        }
    }
}

Then edited conf/spring/resources.groovy:

beans = {
    mvcConfig(MvcConfig)
}

That fixed the static resources.

from rqueue.

arturo-ojeda avatar arturo-ojeda commented on July 19, 2024

Here is the updated project:
rqueue-bug.zip

from rqueue.

arturo-ojeda avatar arturo-ojeda commented on July 19, 2024

Hey @sonus21 👋🏻

Sorry to bother, any chance to release a new version with the fixes? would be really appreciated.

Thanks again.

from rqueue.

arturo-ojeda avatar arturo-ojeda commented on July 19, 2024

It is working great, thank you so much 🥳.

The only thing that is not working is polling for messages. Might be unrelated. Will report separately.

from rqueue.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.