How to read Message from ActiveMQ Without JMS in Java












0















Machine 1 - has JMS and ActiveMQ is runnning.



Machine 2 - No JMS and ActiveMQ is not avialable/runnning.



Please let me know , how machine 2 reads the messages posted by machine 1 .










share|improve this question























  • If you want to let machine 2 read messages from your ActiveMQ, you would want machine 2 to connect to ActiveMQ with a specific protocol to read messages. If you're building an application in Java the easiest way to do this is to use JMS (Java Message Service) as this is the protocol for Java to communicate to a message broker.

    – Stijn Van Bever
    Nov 27 '18 at 13:39













  • Machine 2 - does not have ActiveMQ and cannot be installed is the requirement.

    – Santosh Kumar
    Nov 27 '18 at 14:07











  • ActiveMQ is a message broker that is something external to your system. It's not a system you need on every machine separately. Think of it like a temporary database storing data until it is read. You wouldn't need a database on every system that wants to read data. What you want is machine 1 and machine 2 connecting to the same ActiveMQ, otherwise they won't be able to read each others messages. So for machine 2 to read messages from machine 1 you just want machine 2 connecting to the ActiveMQ of machine 1

    – Stijn Van Bever
    Nov 27 '18 at 14:09


















0















Machine 1 - has JMS and ActiveMQ is runnning.



Machine 2 - No JMS and ActiveMQ is not avialable/runnning.



Please let me know , how machine 2 reads the messages posted by machine 1 .










share|improve this question























  • If you want to let machine 2 read messages from your ActiveMQ, you would want machine 2 to connect to ActiveMQ with a specific protocol to read messages. If you're building an application in Java the easiest way to do this is to use JMS (Java Message Service) as this is the protocol for Java to communicate to a message broker.

    – Stijn Van Bever
    Nov 27 '18 at 13:39













  • Machine 2 - does not have ActiveMQ and cannot be installed is the requirement.

    – Santosh Kumar
    Nov 27 '18 at 14:07











  • ActiveMQ is a message broker that is something external to your system. It's not a system you need on every machine separately. Think of it like a temporary database storing data until it is read. You wouldn't need a database on every system that wants to read data. What you want is machine 1 and machine 2 connecting to the same ActiveMQ, otherwise they won't be able to read each others messages. So for machine 2 to read messages from machine 1 you just want machine 2 connecting to the ActiveMQ of machine 1

    – Stijn Van Bever
    Nov 27 '18 at 14:09
















0












0








0








Machine 1 - has JMS and ActiveMQ is runnning.



Machine 2 - No JMS and ActiveMQ is not avialable/runnning.



Please let me know , how machine 2 reads the messages posted by machine 1 .










share|improve this question














Machine 1 - has JMS and ActiveMQ is runnning.



Machine 2 - No JMS and ActiveMQ is not avialable/runnning.



Please let me know , how machine 2 reads the messages posted by machine 1 .







java sockets network-programming jms activemq






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 27 '18 at 13:35









Santosh KumarSantosh Kumar

3010




3010













  • If you want to let machine 2 read messages from your ActiveMQ, you would want machine 2 to connect to ActiveMQ with a specific protocol to read messages. If you're building an application in Java the easiest way to do this is to use JMS (Java Message Service) as this is the protocol for Java to communicate to a message broker.

    – Stijn Van Bever
    Nov 27 '18 at 13:39













  • Machine 2 - does not have ActiveMQ and cannot be installed is the requirement.

    – Santosh Kumar
    Nov 27 '18 at 14:07











  • ActiveMQ is a message broker that is something external to your system. It's not a system you need on every machine separately. Think of it like a temporary database storing data until it is read. You wouldn't need a database on every system that wants to read data. What you want is machine 1 and machine 2 connecting to the same ActiveMQ, otherwise they won't be able to read each others messages. So for machine 2 to read messages from machine 1 you just want machine 2 connecting to the ActiveMQ of machine 1

    – Stijn Van Bever
    Nov 27 '18 at 14:09





















  • If you want to let machine 2 read messages from your ActiveMQ, you would want machine 2 to connect to ActiveMQ with a specific protocol to read messages. If you're building an application in Java the easiest way to do this is to use JMS (Java Message Service) as this is the protocol for Java to communicate to a message broker.

    – Stijn Van Bever
    Nov 27 '18 at 13:39













  • Machine 2 - does not have ActiveMQ and cannot be installed is the requirement.

    – Santosh Kumar
    Nov 27 '18 at 14:07











  • ActiveMQ is a message broker that is something external to your system. It's not a system you need on every machine separately. Think of it like a temporary database storing data until it is read. You wouldn't need a database on every system that wants to read data. What you want is machine 1 and machine 2 connecting to the same ActiveMQ, otherwise they won't be able to read each others messages. So for machine 2 to read messages from machine 1 you just want machine 2 connecting to the ActiveMQ of machine 1

    – Stijn Van Bever
    Nov 27 '18 at 14:09



















If you want to let machine 2 read messages from your ActiveMQ, you would want machine 2 to connect to ActiveMQ with a specific protocol to read messages. If you're building an application in Java the easiest way to do this is to use JMS (Java Message Service) as this is the protocol for Java to communicate to a message broker.

– Stijn Van Bever
Nov 27 '18 at 13:39







If you want to let machine 2 read messages from your ActiveMQ, you would want machine 2 to connect to ActiveMQ with a specific protocol to read messages. If you're building an application in Java the easiest way to do this is to use JMS (Java Message Service) as this is the protocol for Java to communicate to a message broker.

– Stijn Van Bever
Nov 27 '18 at 13:39















Machine 2 - does not have ActiveMQ and cannot be installed is the requirement.

– Santosh Kumar
Nov 27 '18 at 14:07





Machine 2 - does not have ActiveMQ and cannot be installed is the requirement.

– Santosh Kumar
Nov 27 '18 at 14:07













ActiveMQ is a message broker that is something external to your system. It's not a system you need on every machine separately. Think of it like a temporary database storing data until it is read. You wouldn't need a database on every system that wants to read data. What you want is machine 1 and machine 2 connecting to the same ActiveMQ, otherwise they won't be able to read each others messages. So for machine 2 to read messages from machine 1 you just want machine 2 connecting to the ActiveMQ of machine 1

– Stijn Van Bever
Nov 27 '18 at 14:09







ActiveMQ is a message broker that is something external to your system. It's not a system you need on every machine separately. Think of it like a temporary database storing data until it is read. You wouldn't need a database on every system that wants to read data. What you want is machine 1 and machine 2 connecting to the same ActiveMQ, otherwise they won't be able to read each others messages. So for machine 2 to read messages from machine 1 you just want machine 2 connecting to the ActiveMQ of machine 1

– Stijn Van Bever
Nov 27 '18 at 14:09














1 Answer
1






active

oldest

votes


















3














Here's a couple of important starting points:




  • All message brokers that I know of (including ActiveMQ) follow a client/server model where a server process runs on a particular machine and a client process accesses that server over the network. This is the same model followed by, for example, web servers and HTML browsers.

  • JMS is an API. It doesn't run. It can be used on a client or a server or both.


In your scenario you just need to put the ActiveMQ client libraries and your client application (which will use those libraries via the JMS API) on Machine 2. The client simply needs the hostname and port information for Machine 1 where the server is running in order to connect to it. This assumes, of course, that the server on Machine 1 is configured to be available over the network.



A simple "Hello World" example is available on the ActiveMQ website.






share|improve this answer























    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53500946%2fhow-to-read-message-from-activemq-without-jms-in-java%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    3














    Here's a couple of important starting points:




    • All message brokers that I know of (including ActiveMQ) follow a client/server model where a server process runs on a particular machine and a client process accesses that server over the network. This is the same model followed by, for example, web servers and HTML browsers.

    • JMS is an API. It doesn't run. It can be used on a client or a server or both.


    In your scenario you just need to put the ActiveMQ client libraries and your client application (which will use those libraries via the JMS API) on Machine 2. The client simply needs the hostname and port information for Machine 1 where the server is running in order to connect to it. This assumes, of course, that the server on Machine 1 is configured to be available over the network.



    A simple "Hello World" example is available on the ActiveMQ website.






    share|improve this answer




























      3














      Here's a couple of important starting points:




      • All message brokers that I know of (including ActiveMQ) follow a client/server model where a server process runs on a particular machine and a client process accesses that server over the network. This is the same model followed by, for example, web servers and HTML browsers.

      • JMS is an API. It doesn't run. It can be used on a client or a server or both.


      In your scenario you just need to put the ActiveMQ client libraries and your client application (which will use those libraries via the JMS API) on Machine 2. The client simply needs the hostname and port information for Machine 1 where the server is running in order to connect to it. This assumes, of course, that the server on Machine 1 is configured to be available over the network.



      A simple "Hello World" example is available on the ActiveMQ website.






      share|improve this answer


























        3












        3








        3







        Here's a couple of important starting points:




        • All message brokers that I know of (including ActiveMQ) follow a client/server model where a server process runs on a particular machine and a client process accesses that server over the network. This is the same model followed by, for example, web servers and HTML browsers.

        • JMS is an API. It doesn't run. It can be used on a client or a server or both.


        In your scenario you just need to put the ActiveMQ client libraries and your client application (which will use those libraries via the JMS API) on Machine 2. The client simply needs the hostname and port information for Machine 1 where the server is running in order to connect to it. This assumes, of course, that the server on Machine 1 is configured to be available over the network.



        A simple "Hello World" example is available on the ActiveMQ website.






        share|improve this answer













        Here's a couple of important starting points:




        • All message brokers that I know of (including ActiveMQ) follow a client/server model where a server process runs on a particular machine and a client process accesses that server over the network. This is the same model followed by, for example, web servers and HTML browsers.

        • JMS is an API. It doesn't run. It can be used on a client or a server or both.


        In your scenario you just need to put the ActiveMQ client libraries and your client application (which will use those libraries via the JMS API) on Machine 2. The client simply needs the hostname and port information for Machine 1 where the server is running in order to connect to it. This assumes, of course, that the server on Machine 1 is configured to be available over the network.



        A simple "Hello World" example is available on the ActiveMQ website.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 27 '18 at 14:45









        Justin BertramJustin Bertram

        3,7451517




        3,7451517
































            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53500946%2fhow-to-read-message-from-activemq-without-jms-in-java%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Contact image not getting when fetch all contact list from iPhone by CNContact

            count number of partitions of a set with n elements into k subsets

            A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks