Discussion:
[jboss-user] [JNDI and Naming] - Randomly getting 'jms' not bound
Sheeraz Junejo
2012-07-27 15:57:24 UTC
Permalink
Sheeraz Junejo [https://community.jboss.org/people/sjunejo] created the discussion

"Randomly getting 'jms' not bound"

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

--------------------------------------------------------------
Hi,

I am using jBoss 4.2.3GA release and ranomly one of my MDB fails to lookup java:comp/env/jms/jmsConnectionFactory resource which is mapped to default jboss 'java:ConnectionFactory'. sometime it works...teh most weired thing is that it works from my WebApplication.



Could you please help,

Thanks,

--

SJunejo
--------------------------------------------------------------

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

Start a new discussion in JNDI and Naming at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2083]
Sheeraz Junejo
2012-08-01 08:26:50 UTC
Permalink
Sheeraz Junejo [https://community.jboss.org/people/sjunejo] created the discussion

"Re: Randomly getting 'jms' not bound"

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

--------------------------------------------------------------
Any ideas? Please let me know if you need more information?
--------------------------------------------------------------

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

Start a new discussion in JNDI and Naming at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2083]
Sheeraz Junejo
2012-08-17 10:50:44 UTC
Permalink
Sheeraz Junejo [https://community.jboss.org/people/sjunejo] created the discussion

"Re: Randomly getting 'jms' not bound"

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

--------------------------------------------------------------
OK...let me add more information and it might pin point whats wrong...

The setup is as follows;

Custom File Listener --> Activates --> My Listener MDB --> Put Message On Queue say 'queue/testQueue' and I am getting jms not bound while creating a connection to the jms server randomly...as I mentioned earlier...sometime it works

I can clearly see in my MDB JNDI tree that resource is there...as follows;

*Ejb Module: tocflistener-ejb.jar*

*java:comp namespace of the OFSListenerMDB bean:*

  +- UserTransaction (class: javax.transaction.UserTransaction)
  +- env (class: org.jnp.interfaces.NamingContext)
  |   +- queue (class: org.jnp.interfaces.NamingContext)
  |   |   +- t24OFSReplyQueue[link -> queue/t24OFSReplyQueue] (class: javax.naming.LinkRef)
  |   |   +- t24OFSQueue[link -> queue/t24OFSQueue] (class: javax.naming.LinkRef)
  |   +- jms (class: org.jnp.interfaces.NamingContext)
*  |   |   +- jmsConnectionFactory[link -> java:/ConnectionFactory] (class: javax.naming.LinkRef)*

the lokkup for *jmsConnectionFactory* resource is faling saying jms not bound.

And with my web application I have the same code doing the same job is working OK every time.

Let me know if above helps,

Thanks

--

SJunejo
--------------------------------------------------------------

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

Start a new discussion in JNDI and Naming at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2083]
Sheeraz Junejo
2013-05-16 13:48:06 UTC
Permalink
Sheeraz Junejo [https://community.jboss.org/people/sjunejo] created the discussion

"Re: Randomly getting 'jms' not bound"

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

--------------------------------------------------------------
Hi,

The problem was that the MDB was deployed as multiple instances and second instance did not define the resource-ref to the JMS Connction Factory and jboss mixed the class loader and first MDB was also not able to find the resource. Once the resources are added in the deployment descriptor everything works OK.

Hope this will help someone
--------------------------------------------------------------

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

Start a new discussion in JNDI and Naming at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2083]
Loading...