Re: Embedded server URL
aslam <[email protected]> Tue, 18 Mar 2008 14:30:30 -0700 (PDT)
| Newsgroups | gmane.comp.java.openjms.user |
|---|---|
| Message-ID | <[email protected]> |
I need to use the embedded scheme, because I'm implementing (automated) unit tests for JMS listeners & producers. Here's what's happening: http://www.nabble.com/file/p16131044/openjms.xml openjms.xml Statement: Context context = new InitialContext(props) ...where props are: java.naming.factory.initial=org.exolab.jms.jndi.InitialContextFactory java.naming.provider.url=embedded:// java.naming.security.principal=admin java.naming.security.credentials=openjms Provider URL "embedded://" ...causes the following exception: 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/] The same exception is thrown if I use "vm://openjms/" as the provider URL. With provider URL "vm:openjms", the above statement results in the following exception: javax.naming.CommunicationException: Failed to lookup JNDI provider for URL: vm:openjms [Root exception is java.rmi.RemoteException: -1; nested exception is: java.lang.ArrayIndexOutOfBoundsException: -1] Anyone know what might be wrong? --aslam a k'wala wrote: > > Looks like the URL for an embedded server is "vm:openjms", based on > org.exolab.jms.jndi.InitialContextFactory.getProviderURI(String) > > The doc at http://openjms.sourceforge.net/usersguide/embedded.html says it > is "embedded://". > > Can someone confirm this? > > Thanks. > > --aslam > > > -- View this message in context: http://www.nabble.com/Embedded-server-URL-tp15995008p16131044.html Sent from the OpenJMS - User mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/