OpenJMS Failed to get registry service for URL



  • HI,

    ich versuche mit OpenJMS unter Windows zu programmieren. Dazu habe ich erstmal einen Beispielquelltext getestet.

    Laut Doku http://openjms.sourceforge.net/usersguide/using.html
    muss man einen sog. "InitialContext" erzeugen. Wenn man das so programmiert wie in der Doku, bekomm ich eine Fehlermeldung:

    javax.naming.CommunicationException: Failed to get registry service for URL: tcp://localhost:3035/ [Root exception is java.rmi.ConnectIOException: Failed to create connection; nested exception is:
    org.exolab.jms.net.connector.ConnectException: Failed to connect to localhost:3035]

    Was muss ich machen, dass das funktioniert?

    IDE: NetBeans

    Mfg

    Ausschnitt:

    try {
                // create the JNDI initial context.
                Hashtable properties = new Hashtable();
                 properties.put(Context.INITIAL_CONTEXT_FACTORY,
                       "org.exolab.jms.jndi.InitialContextFactory");
                properties.put(Context.PROVIDER_URL, "tcp://localhost:3035/");
    
                context = new InitialContext(properties);
    
                // look up the ConnectionFactory
                factory = (ConnectionFactory) context.lookup(factoryName);
    


  • Läuft denn ein Server auf localhost?



  • Ok, hab die falschen Konfigurationseinstellungen für den Server drin gehabt und der Serverstart über die bat Datei hat nicht funktioniert.
    Jetzt startet er und es läuft 🙂

    Mfg


Anmelden zum Antworten