[jboss-dev-forums] [JBoss AS 7 Development] - AS 7.1.1 : JNDI Look up for JMS connection factroy is not working

ArunKumar N do-not-reply at jboss.com
Fri Dec 28 10:34:21 EST 2012


ArunKumar N [https://community.jboss.org/people/arunkumar.gladiator] created the discussion

"AS 7.1.1 : JNDI Look up for JMS connection factroy is not working"

To view the discussion, visit: https://community.jboss.org/message/785224#785224

--------------------------------------------------------------
Dear Experts, 
 
 I am trying to write a sample program for JMS using Jboss (http://www.coderanch.com/forums/f-63/JBoss). I went through the following link for how to use Jboss for JMS 
 
 http://docs.jboss.org/jbossmessaging/docs/usermanual-2.0.0.beta1/html/using-jms.html 
 
 I am getting an exception while looking up for ConnectionFactory (http://docs.oracle.com/javaee/6/api/javax/jms/ConnectionFactory.html) i.e. "iniCtx.lookup("ConnectionFactory")" 
 
 javax.naming.CommunicationException (http://docs.oracle.com/javase/7/docs/api/javax/naming/CommunicationException.html): Receive timed out [Root exception is java.net.SocketTimeoutException (http://docs.oracle.com/javase/7/docs/api/java/net/SocketTimeoutException.html): Receive timed out] 
      at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1058) 
      at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1127) 
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:478) 
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:471) 
      at javax.naming.InitialContext.lookup(Unknown Source) 
      at MessageProducer.main(MessageProducer.java:46) 
 Caused by: java.net.SocketTimeoutException (http://docs.oracle.com/javase/7/docs/api/java/net/SocketTimeoutException.html): Receive timed out 
      at java.net.PlainDatagramSocketImpl.receive0(Native Method) 
      at java.net.PlainDatagramSocketImpl.receive(Unknown Source) 
      at java.net.DatagramSocket.receive(Unknown Source) 
      at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1038) 
 
 
 The reason is, Jboss Naming Service is not running(netstat -an doesn't show any result for port 1099) . 
  I didn't configure any specific setting for Naming Service. I let it to take default port 1099. 
 
 Am I missing any configuration? Kindly help me in running the Jboss naming service. 
 
 Specification : 
 
 Jboss : AS 7.1.1 Final 
 JRE : 1.6 
 OS : Windows 7 
 
 
 Cheers, 
 Arun
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/785224#785224]

Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20121228/84e0cfc0/attachment.html 


More information about the jboss-dev-forums mailing list