Working with ActiveMQ using Spring Boot

Поділитися
Вставка
  • Опубліковано 16 гру 2024

КОМЕНТАРІ • 35

  • @deepcool5497
    @deepcool5497 3 роки тому +2

    Thanks for giving us the begning steps in ActiveMQ springboot integration. i was able to use both Queue and topic from same application using jmstemplate and setting it as pubsub as true and false.

    • @BridgingCode
      @BridgingCode  3 роки тому +1

      Thanks man. I was actually planning to make a part two of this video about pub/sub in activeMQ using topics. Great to know you were able to implement these capabilities.

  • @GitanjaliKumari-v9h
    @GitanjaliKumari-v9h 9 місяців тому

    great and easy explanation. thank you so much

  • @vjnt1star
    @vjnt1star Рік тому

    Great tutorial to get started. the only thing for me that didnt work is the setConcurrency(5-10) which I put in my code in the Activemq admin console there only one consumer and not 5. I'll try to figure that out myself.

  • @manukhurana483
    @manukhurana483 3 роки тому

    Hi video is awesome I have just started learning ActiveMQ. Thanks man.

  • @syedfaheem1880
    @syedfaheem1880 2 роки тому

    thanking you for the best explanation

  • @shrikantbiradar1082
    @shrikantbiradar1082 5 місяців тому

    Could you please share a github repo link for the code used in your demo?

  • @fahadnadeem4295
    @fahadnadeem4295 2 роки тому

    Well explained also please explain how to listen from a different domain and production

  • @tejasshimpi5169
    @tejasshimpi5169 Рік тому

    Great work sir

  • @kirivuthtip6420
    @kirivuthtip6420 3 роки тому

    Hello, this is @Kirivuth from Cambodia and the video is a good knowledge. anyway can we have another video demo how to get the message from the MQ
    Thanks,

  • @projmanagerone1552
    @projmanagerone1552 3 роки тому

    bro,do you know why some people creating connection ,session,producer ,consumer object by themselves for implementing activemq? was that old way?

  • @Ahmedakhachkhouch
    @Ahmedakhachkhouch 2 роки тому

    Thanks Man, that was so helpful (y)

  • @sl7876
    @sl7876 4 роки тому +1

    I am not able to import springframework how did you do that? Please reply asap

    • @adrianjason13
      @adrianjason13 4 роки тому +1

      Hey man. Can you tell what exactly the problem is? I'm using maven to get all my dependencies. You can just make use of Spring Initializr to easily get the spring dependencies for this project like the spring-boot-starter-activemq and spring-boot-starter-web. start.spring.io/

    • @BridgingCode
      @BridgingCode  4 роки тому

      Responded from a my personal account earlier. Hope this solved your issue.

  • @amitabhpandey1986
    @amitabhpandey1986 3 роки тому

    Hi Nice video. I just want to understand in this video you have set concurrency 5-10.Which means minimum 5 and maximum 10 consumers can be created. So in this each consumer will receive separate message? Means will each message deliver to exactly one consumer? Or are they thread safe or we need to take care about thread safety?

    • @adrianjason13
      @adrianjason13 3 роки тому +1

      A message can only be delivered to a certain consumer at any given time. So for example, if you initially set 5 consumers (lower limit) then only one of those 5 consumers can receive the message. It's the broker who takes care of the routing. If more messages are coming in, making the initial 5 consumers insufficient then it will scale up as necessary up to the max limit of consumers that you set. With regards to thread safety, I think that each listening consumer will be running on its own thread so thread safety is not guaranteed and you must handle it on your own.
      ~ AJ of Bridging Code

    • @amitabhpandey1986
      @amitabhpandey1986 3 роки тому

      Thanks can you please upload few vidios of various configurations of active mq in spring boot.

  • @joelgeorge1064
    @joelgeorge1064 3 роки тому

    hi, at time i am able to push the messages to the queue. but listeners are not able receive the message. This is not happening all the time and if the issue is there I have to restart the application to continue. Am i missing some thing?

    • @BridgingCode
      @BridgingCode  3 роки тому

      Hi. Did you configure your broker URL correctly? Did you also set the correct queue name in destination param of JmsListener annotation?

    • @joelgeorge1064
      @joelgeorge1064 3 роки тому

      @@BridgingCode yes. as i have mentioned, the listener is working for few minutes after application starts up and then after few messages being pushed , its not listening anymore.

    • @BridgingCode
      @BridgingCode  3 роки тому

      @@joelgeorge1064 Okay. I can't really get a clear context of your issue from here. But I do have some suspicions which may or may not be helpful for your case, so please bear with me.
      1. It's possibly a network issue. Router, firewall or whatever (I'm not good with network stuff) that automatically closes your tcp connection during inactivity. You might wanna search up about enabling heart beats on ActiveMQ connections, which I have not tried yet.
      2. How are you acknowledging the message, or are you certain that you're acknowledging them at all? ActiveMQ has this configuration called "prefetch buffer" and if you exceed this limit with your messages going unacknowledged, it may cause your listener app to stop working. Please verify that you're able to properly acknowledge the incoming messages from listener side.

    • @deepcool5497
      @deepcool5497 3 роки тому

      @@BridgingCode i resolved it by adding folloing line activeMQConnectionFactory.setTrustedPackages(Arrays.asList("com.mq.active.model")); where package name should be SystemMessage package.Thanks for providing first steps in activemq.

  • @yyyyyyyyyyy1988
    @yyyyyyyyyyy1988 2 роки тому

    Great video, thank you

  • @muskanprajapati7281
    @muskanprajapati7281 2 роки тому

    Very helpful.. thanks

  • @ainigma100
    @ainigma100 3 роки тому

    Thank you for your video! Is it possible to use ActiveMQ to send a file to the client? For instance, we have an application (which can be used by multiple users at the same time) that has CRUD operations. Also, in the Frontend we have a button to create an excel file and send it to the user that pressed the button. How can we implement something like this? Do we need something else other than ActiveMQ to make this functionality?

    • @BridgingCode
      @BridgingCode  3 роки тому +1

      I think you can send a file through ActiveMQ by first converting it to a ByteMessage. You can google the code for that.
      I'm not really sure about your other requirements so I probably can't give you a credible advice, but if you have like an MVC done in Java EE or Spring, just remember that any file upload would have to be taken as a type of java.io.File. Now you can convert this to ByteMessage and send it over to your queue.

    • @ainigma100
      @ainigma100 3 роки тому

      @@BridgingCode Thank you!!! 🙂

  • @ChaliyaGamer
    @ChaliyaGamer 5 місяців тому

    Nice video

  • @overbored8528
    @overbored8528 Рік тому

    There's no Application A and Application B on this example. You just started one application

  • @nateriverdota6645
    @nateriverdota6645 3 роки тому

    thanks sir, it help me a lot

  • @rinatibragimov6750
    @rinatibragimov6750 3 роки тому

    Thank you

  • @sunpacplussoftware5948
    @sunpacplussoftware5948 2 роки тому

    Why are the activemq username and password being displayed in plain text view in application.properties? Shouldn't passwords be kept private and secure?

    • @BridgingCode
      @BridgingCode  2 роки тому

      Literally everyone knows that, thanks for bringing up a common knowledge. Obviously, this is just for demonstration purposes so I couldn't care less. But please, do try out the credentials in the video and check if you can login, if that's something that bothers you. Do you have anything that's actually about the topic of this content?

    • @wantedlepota9960
      @wantedlepota9960 Рік тому +2

      @@BridgingCode are you offended by this question?