Configuring JBoss to read messages from remote queue on another host

Posted on 2011-10-10
Last Modified: 2012-05-12
I have 2 Java apps, one that writes messages to a JMS queue using JBoss.

And another that reads those messages from a JMS queue also using JBoss.

The 2 apps read and write messages between one another when I run them both from the host.  By default, they use "localhost" as the namingProviderURL.

When I move the reader to a different host and change the namingProviderURL properties value to the IP address where the writer app is running, in this case "namingProviderURL =", the reader sits idle.

The output from the Reader app does confirm that that it's listening to the remote host:

DEBUG org.jnp.interfaces.TimedSocketFactory - createSocket, hostAddr: /, port 1099, localAddr: Null, localPort: null, localPort: 0, timeout: 0

But I do not see any of the messages being read and discarded from the queue on the remote host.  It seems the Reader app is still reading from its localhost.

Is there another JBoss properties I missed to configure my installation to get the apps to exchange messages between systems?
Question by:rleelink
    1 Comment
    LVL 6

    Accepted Solution

    You should use the following property "java.naming.provider.url". For example, java.naming.provider.url=localhost:1100
    (reference -

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Not able to update Java 5 191
    tomcat users xml 7 93
    Usiing_selfsigned_ssl_certificate 5 66
    Question to Java runtime 10 94
    This article is about some of the basic and important steps to be used to improve the performance in web-sphere commerce application development. 1) Always leverage the Dyna-caching facility provided by the product 2) Remove the unwanted code …
    Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now