3 Replies Latest reply on May 23, 2017 9:50 AM by jbertram

    Latest/Best  JMS implementation presently

    niranjan.numeroeins

      Hi

       

      I have gone through lots of different Materials related to JMS implementation which have confused me . While i thought i have found correct one and decided to go with HornetQ standalone was advised at  https://developer.jboss.org/thread/274938  to go with  https://activemq.apache.org/artemis/

       

      so If I am writing my  use Case ,if somebody can tell me the correct JMS Broker or JMS Provider to go with :

       

      1: My rest web-service will get  messages in jSON format  which i have to put into mongodb instance running on remote machine probably on AWS .

      2: I will put those messages on Queue from my web-service and let the local-Queue handle to put those messages on remote-Queue and finally in remote mongoDb.

       

      Which Message Broker should i use for this Use-case i wanted to go with standalone-HornetQ , can i do the same with SQS or any better Advise.

       

      I have seen people using JEE containers should i use that for above use case ,my rest-webservice presently being deployed on tomcat , i have read JMS brokers working with Tomee .

            Should i change the server to tomee or jboss so that both rest-webservice deployment and JMS Queueing may be achieved simultaneously .

      What should i do ? please Advise? Or the Advised one apache/artemis.. Thanks!

        • 1. Re: Latest/Best  JMS implementation presently
          jbertram

          Wildfly is a great platform and can do REST web-services (although I'm not terribly familiar with that functionality). Furthermore, it has native support for embedded Artemis which could make things easier for you to deploy and manager.  Wildfly doesn't integrate the latest and greatest Artemis version (i.e. 2.x) so if you want to be 100% up-to-date on the message broker side of things then you might consider a standalone Artemis deployment.  That said, the version of Artemis that Wildfly integrates (i.e. 1.5.x) will support your use-case without any issues.

           

          I'm pretty sure Artemis has been integrated with TomEE, but I don't have any personal experience with it.

           

          Depending on your functional requirements you might could potentially simplify your solution by eliminating one of the broker instances and either sending messages directly to the remote broker from your web service or inserting data into MongoDB directly from the remote message consumer.  It's not clear to me why you would necessarily need 2 brokers.  I assume there's details of your use-case which you haven't provided.

          • 2. Re: Latest/Best  JMS implementation presently
            niranjan.numeroeins

            HI

             

            As per your statement " simplify your solution by eliminating one of the

            broker instances and either sending messages directly to the remote broker

            from your web service"   , I should have one remote broker , what do you

            mean by that?

             

            (Will discuss in HornetQ parlance to keep it simple as i thinks concept

            will be same for ActiveMQ or others)

             

            1: only one  HornetQ server placed on the remote machine B and NO

            HornetQ server on local machine A, then create a producer by creating

            session object using a lookup of remote Queue on machine

            B(jndi:1098,netty:5445)

             

            Destination destination = (Destination) jndi.lookup("MyRemoteQueueOnMachineB");

             

            MessageProducer producer = session.createProducer(destination);

             

            (I was thinking session ,producer and Queue objects will be separate for

            respective machines A and B)

             

            I am trying these scenario,if it works will let you know.

             

             

             

             

             

             

             

             

            <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>

            Virus-free.

            www.avast.com

            <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>

            <#m_786951674082757618_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

            • 3. Re: Latest/Best  JMS implementation presently
              jbertram

              I'm not sure if you're asking a question here or just making a statement.  Are you currently facing a particular problem?  Please clarify.