Author |
Message
|
pandeg |
Posted: Thu Dec 04, 2014 10:05 am Post subject: Getting: javax.naming.NameNotFoundException: wsmq not bound |
|
|
Disciple
Joined: 21 Oct 2014 Posts: 195
|
Hi I am getting below error when I am trying to connect to MQ using JNDI in Jboss server
ERROR [STDERR] javax.naming.NameNotFoundException: wsmq not bound
ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(NamingServer.java:491)
ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(NamingServer.java:499)
ERROR [STDERR] at org.jnp.server.NamingServer.getObject(NamingServer.java:505)
ERROR [STDERR] at org.jnp.server.NamingServer.lookup(NamingServer.java:249)
ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:544)
ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:520)
ERROR [STDERR] at javax.naming.InitialContext.lookup(InitialContext.java:351) |
|
Back to top |
|
 |
Vitor |
Posted: Thu Dec 04, 2014 10:38 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
I'd say there's an error in your configuration or your code. As you've not seen fit to describe either, it's hard to say what. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
pandeg |
Posted: Thu Dec 04, 2014 3:04 pm Post subject: |
|
|
Disciple
Joined: 21 Oct 2014 Posts: 195
|
Thanks for the reply...Please find below what i am seeing in my server log.
ERROR [STDERR] javax.naming.NameNotFoundException: WSMQQueueConnectionFactory not bound
ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(NamingServer.java:491)
ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(NamingServer.java:499)
ERROR [STDERR] at org.jnp.server.NamingServer.getObject(NamingServer.java:505)
ERROR [STDERR] at org.jnp.server.NamingServer.lookup(NamingServer.java:278)
ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:544)
ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:520)
ERROR [STDERR] at javax.naming.InitialContext.lookup(InitialContext.java:351)
org.jboss.varia.scheduler.Scheduler$Listener.handleNotification(Scheduler.java:1221)
ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585) |
|
Back to top |
|
 |
Vitor |
Posted: Fri Dec 05, 2014 5:16 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
And still you don't say one word about your configuration or your code.
Or even some kind of explaination why you've posted 2 subtly different errors. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
pandeg |
Posted: Fri Dec 05, 2014 11:36 am Post subject: |
|
|
Disciple
Joined: 21 Oct 2014 Posts: 195
|
Sorry to provide you less information on this. Here, the application program is doing JNDI lookup for MQ connection factory in jboss-service.xml where all MQ objects has been registered.
name="JndiName">WSMQQueueConnectionFactory</attribute>
<attribute name="JMSStyle">Queue</attribute>
<attribute name="IsXA">false</attribute>
<attribute name="QueueManagerName">QM1</attribute>
<attribute name="HostName">xx.xx.xx.xxx</attribute>
<attribute name="Port">xxxx</attribute>
<attribute name="Channel">CONN1</attribute>
<attribute name> |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Dec 05, 2014 11:41 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
|
Back to top |
|
 |
fjb_saper |
Posted: Sat Dec 06, 2014 3:43 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
pandeg wrote: |
Sorry to provide you less information on this. Here, the application program is doing JNDI lookup for MQ connection factory in jboss-service.xml where all MQ objects has been registered.
Code: |
<attribute name="JndiName">WSMQQueueConnectionFactory</attribute>
<attribute name="JMSStyle">Queue</attribute>
<attribute name="IsXA">false</attribute>
<attribute name="QueueManagerName">QM1</attribute>
<attribute name="HostName">xx.xx.xx.xxx</attribute>
<attribute name="Port">xxxx</attribute>
<attribute name="Channel">CONN1</attribute>
<attribute name> |
|
Please don't use this particular initial context factory. It is suitable for demonstration purposes only and should never be used in a production type environment. The preferred initial context factory to be used is the file based context factory.
Have fun  _________________ MQ & Broker admin |
|
Back to top |
|
 |
|