<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
AS 7.1.1 : JNDI Look up for JMS connection factroy is not working
</h3>
<span style="margin-bottom: 10px;">
created by <a href="https://community.jboss.org/people/arunkumar.gladiator">ArunKumar N</a> in <i>JBoss AS 7 Development</i> - <a href="https://community.jboss.org/message/785224#785224">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p><span class="postbody">Dear Experts, <br/> <br/> I am trying to write a sample program for JMS using <a class="jive-link-external-small" href="http://www.coderanch.com/forums/f-63/JBoss" target="_new">Jboss</a>. I went through the following link for how to use Jboss for JMS <br/> <br/> <a class="jive-link-external-small" href="http://docs.jboss.org/jbossmessaging/docs/usermanual-2.0.0.beta1/html/using-jms.html" target="_blank">http://docs.jboss.org/jbossmessaging/docs/usermanual-2.0.0.beta1/html/using-jms.html</a> <br/> <br/> I am getting an exception while looking up for <a class="jive-link-external-small" href="http://docs.oracle.com/javaee/6/api/javax/jms/ConnectionFactory.html" target="_new">ConnectionFactory</a> i.e. "iniCtx.lookup("ConnectionFactory")" <br/> <br/> <a class="jive-link-external-small" href="http://docs.oracle.com/javase/7/docs/api/javax/naming/CommunicationException.html" target="_new">javax.naming.CommunicationException</a>: Receive timed out [Root exception is <a class="jive-link-external-small" href="http://docs.oracle.com/javase/7/docs/api/java/net/SocketTimeoutException.html" target="_new">java.net.SocketTimeoutException</a>: Receive timed out] <br/>      at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1058) <br/>      at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1127) <br/>      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:478) <br/>      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:471) <br/>      at javax.naming.InitialContext.lookup(Unknown Source) <br/>      at MessageProducer.main(MessageProducer.java:46) <br/> Caused by: <a class="jive-link-external-small" href="http://docs.oracle.com/javase/7/docs/api/java/net/SocketTimeoutException.html" target="_new">java.net.SocketTimeoutException</a>: Receive timed out <br/>      at java.net.PlainDatagramSocketImpl.receive0(Native Method) <br/>      at java.net.PlainDatagramSocketImpl.receive(Unknown Source) <br/>      at java.net.DatagramSocket.receive(Unknown Source) <br/>      at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1038) <br/> <br/> <br/> The reason is, Jboss Naming Service is not running(netstat -an doesn't show any result for port 1099) . <br/>  I didn't configure any specific setting for Naming Service. I let it to take default port 1099. <br/> <br/> Am I missing any configuration? Kindly help me in running the Jboss naming service. <br/> <br/> Specification : <br/> <br/> Jboss : AS 7.1.1 Final <br/> JRE : 1.6 <br/> OS : Windows 7 <br/> <br/> <br/> Cheers, <br/> Arun</span></p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/785224#785224">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss AS 7 Development at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>