Re: Failed to get registry service for URL: tcp://localhost:3035
Tim Anderson <[email protected]> Mon, 09 Oct 2006 22:22:58 +1000
| Newsgroups | gmane.comp.java.openjms.user |
|---|---|
| Message-ID | <[email protected]> |
1. Do any of the example programs work for you, using the configuration
shipped with OpenJMS?
2. Can you get RMI working?
Its been a long time since I used Windows 98, but I seem to recall it
needing a network connection established simply to run RMI apps.
Ramiro wrote:
> 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
> _______________________________________________
> openjms-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/openjms-user
>
>
-------------------------------------------------------------------------
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