How to connect to a JMS Server/Provider?
Hello!I use Sun Java Application Server included with J2EE 1.4. I have started the default server and created Connection Factory with JNDI name:
jms/QueueConnectionFactory
and a Destination Resources with JNDI name:
jms/Queue
I have set the members in SampleUtillitis like:
public static final boolean USE_JNDI = true;
public static final String QUEUECONFAC = "jms/QueueConnectionFactory";
When try to run the SenderToQueue sample but I just get this error:
Could not create JNDI context: javax.naming.ServiceUnavailableException: inv1437
.xxx.xxx.com:7676; socket closed
If I run a netstat -a I can see this on port 7676:
TCP inv1437:7676 inv1437.xxx.xxx.com:3016 TIME_WAIT
To me this looks like there is a service availible on 7676.
The port 7676 seems to be right since it is specified in the Sun Java Application Server under default_JMS_host to 7676.
Perhaps it is something wrong with the url that I need to include any user or password or something.
java.naming.provider.url=ldap://inv1437.xxx.xxx.com:7676/
Or perhaps my server is not running in the correct way that I think?
So if you got any ideas please let me know.
Best regards
Fredrik
