1 Reply Latest reply on Jan 31, 2005 10:49 AM by anu_katta

    What means PROVIDER_URL?

    alexxandro76

      Hi,
      i'm trying to create an jms web application.
      I have installed JBoss and create a simple test (see http://www.javaportal.it/docs/jms.htm) but obviously it does not work :-(.
      My problem is on javax.naming.Context.PROVIDER_URL... maybe..
      I don't know what it is.
      I work in local and then I set provider url with http://localhost:8080.
      It's right or wrong?
      What I must put to it?

      If I run my test application the stacktrace is:
      [STOUT] java.lang.IllegalArgumentException: hostname can't be null

      it's seems that hostname is null.
      Help me.

        • 1. Re: What means PROVIDER_URL?
          anu_katta

          Hi,
          each application server has their own jndi properties file. which will specify the initial context naming factory and the provider url and others as needed.
          here is the jndi.properties for jboss..
          ---
          java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
          java.naming.provider.url=localhost:1099
          java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
          ---

          so change the provider url to localhost:1099

          then it should work.
          --Anu.