Problems using embedded connector

"A C" <[email protected]>
Newsgroups gmane.comp.java.openjms.user
Message-ID <[email protected]>
I've set up 0.7.7-alpha-1 using the stock openjms.xml config, except the 
"rmi" connector has been replaced with an "embedded" one. I am launching an 
embedded instance of a JmsServer with the following code:

        JmsServer server = new JmsServer(jmsConfig);
        server.init();

... where jmsConfig is just the string path to the openjms.xml file 
mentioned above.

When I attempt create an InitialContext with the following code:

        Hashtable properties = new Hashtable();
        properties.put(Context.INITIAL_CONTEXT_FACTORY, 
"org.exolab.jms.jndi.InitialContextFactory");
        properties.put(Context.PROVIDER_URL, "embedded://");
        Context context = new InitialContext(properties);

... I see the following stack trace:

Exception in thread "main" javax.naming.CommunicationException: Failed to 
get registry service for URL: embedded:// [Root exception is 
java.rmi.ConnectIOException: Failed to create connection; nested exception 
is:
	org.exolab.jms.net.connector.ConnectException: Connection refused, 
URI=vm://openjms/]
	at 
org.exolab.jms.jndi.InitialContextFactory.getInitialContext(InitialContextFactory.java:145)
	at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
	at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
	at javax.naming.InitialContext.init(Unknown Source)
	at javax.naming.InitialContext.<init>(Unknown Source...

When I attempt to connect via the administrative interface using the 
following code:

        String url = "embedded://";
        JmsAdminServerIfc admin = AdminConnectionFactory.create(url);

... I see the following stack trace:

Exception in thread "main" javax.jms.JMSException: Failed to get registry 
service for URL: embedded://
	at 
org.exolab.jms.administration.net.JmsAdminConnectionImpl.<init>(JmsAdminConnectionImpl.java:110)
	at 
org.exolab.jms.administration.AdminConnectionFactory.create(AdminConnectionFactory.java:107)
	at 
org.exolab.jms.administration.AdminConnectionFactory.create(AdminConnectionFactory.java:91)...

Anything obvious that I'm missing? I've been using "embedded://" on 0.7.6 
without any issues to date... just upgrading away a few bugs, but 
unfortunately have run into another issue.

Thanks,
-Albert




-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
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.