Basic problem with openjms-0.7.7-alpha-3

Ninju Bohra <ninju-/[email protected]>
Newsgroups gmane.comp.java.openjms.user
Message-ID <[email protected]>
Hello all,

I am trying to move our system from openjms-0.7.6.1 to
openjms-0.7.7-alpha-3 (to get the fix for bug #1214292) and I am
getting the following errors on my test program:

Exception in thread "main" javax.naming.ServiceUnavailableException:
JNDI service is not bound in the registry for URL:
rmi://localhost:1099/JndiServer
	at
org.exolab.jms.jndi.rmi.RmiJndiInitialContextFactory.getInitialContext(RmiJndiInitialContextFactory.java:140)
	at
org.exolab.jms.jndi.InitialContextFactory.getInitialContext(InitialContextFactory.java:109)
	at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
	at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
	at javax.naming.InitialContext.init(InitialContext.java:223)
	at javax.naming.InitialContext.<init>(InitialContext.java:197)
	at resoft.framework.SRTest.test(SRTest.java:92)
	at resoft.framework.SRTest.main(SRTest.java:79)

Environment:  
   Win XP (SP2)
   Java 1.5.0_04
   Started OpenJMS via 'openjms.bat run' using default openjms.xml

Here is the client code
    public static void test() throws Exception {
        Hashtable properties = new Hashtable();
      properties.put(Context.INITIAL_CONTEXT_FACTORY,
                     "org.exolab.jms.jndi.InitialContextFactory");
      properties.put(Context.PROVIDER_URL, "rmi://localhost:1099/");
        Context context = new InitialContext(properties);

        TopicConnectionFactory factory
                = (TopicConnectionFactory) context.lookup(
                        "TopicFactory");
        Topic topic = (Topic) context.lookup("topic1");

        TopicConnection connection = factory.createTopicConnection();

The error comes from the InitialContext(properties) line.

The OPENJMS console window shows:

The OpenJMS Group. (C) 1999-2005. All rights reserved.
http://openjms.sourceforge.net
10:03:01.599 INFO  [main] - Server accepting connections on
tcp://10.3.65.23:3035/
10:03:01.599 INFO  [main] - JNDI service accepting connections on
tcp://10.3.65.23:3035/
10:03:01.615 INFO  [main] - Admin service accepting connections on
tcp://10.3.65.23:3035/
10:03:01.756 INFO  [main] - Server accepting connections on
rmi://10.3.65.23:1099/
10:03:01.771 INFO  [main] - JNDI service accepting connections on
rmi://10.3.65.23:1099/
10:03:01.771 INFO  [main] - Admin service accepting connections on
rmi://10.3.65.23:1099/

Any ideas...

Ninju


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.