Failed to get registry service for URL: tcp://localhost:3035
Ramiro <[email protected]> Mon, 2 Oct 2006 22:17:35 +0000 (UTC)
| Newsgroups | gmane.comp.java.openjms.user |
|---|---|
| Message-ID | <[email protected]> |
hello all. I have been studying openjms for this little project, and cant seem
to pass this point:
public class JMSChannel
{
public static void main(String args[])
{
try
{
Hashtable properties = new Hashtable();
properties.put(Context.INITIAL_CONTEXT_FACTORY,
"org.exolab.jms.jndi.InitialContextFactory");
properties.put(Context.PROVIDER_URL,
"tcp://localhost:3035");
Context context = new InitialContext(properties);
}
catch(Exception e)
{
e.printStackTrace();
}
}
}
as you all can see, it is as simple as it gets, but just wont run. compile
normally, and when i run it, i get stack trace:
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]
(...)
I see that some people get a similar error using rmi instead tcp, but so far
nothing seems to work. im using Windows 98, and Netbeans 1.4, and the error
persists even if i use javac directly.
Any help will be apreciated.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV