This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes AS 7.1.1 : JNDI Look up for JMS connection factroy is not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "AS 7.1.1 : JNDI Look up for JMS connection factroy is not working" Watch "AS 7.1.1 : JNDI Look up for JMS connection factroy is not working" New topic
Author

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

Arun Arun Kumar
Greenhorn

Joined: Sep 03, 2011
Posts: 4
Dear Experts,

I am trying to write a sample program for JMS using 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 i.e. "iniCtx.lookup("ConnectionFactory")"

javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: 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: 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
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: AS 7.1.1 : JNDI Look up for JMS connection factroy is not working
 
jQuery in Action, 3rd edition