2 Replies Latest reply on Jan 26, 2012 2:38 AM by mandarbk

    JNDI binding stops deployment

    mandarbk

      I have some EJB singleton beans doing application's metadata import at server startup.

      In one of the beans, I am binding some custom objects to JNDI. Somehow, the code for binding JNDI simply hangs at times.The deployment simply blocks and finally times out.

       

      Interestingly the behaviour is only reproduced on single processor machines(although quite predicatbly it always fails..!).Exactly the same piece of code works on dual core machine.

       

      The only differentiating fact , the CPU consumption is at 100% on a single processor machine and If i remove the code performing JNDI binding, the deployment goes thorugh and works fine.

       

      The last statement with trace level logging is, (after this the deployment simply hangs...!!!!)

      TRACE (MSC service thread 1-2) 2012-01-24 17:26:50,747 [org.jboss.modules] ModuleClassLoader Finding class javax.naming.Context from Module "deployment.app.ear.app-server-startup.jar:main" from Service Module Loader.

       

      Any pointers ? Any further asistance with debugging ?

        • 1. Re: JNDI binding stops deployment
          jaikiran

          Mandar Kulkarni wrote:

          In one of the beans, I am binding some custom objects to JNDI. Somehow, the code for binding JNDI simply hangs at times.The deployment simply blocks and finally times out.

          Which exact version of JBoss AS7? And what does the code look like, which does the binding? Try getting some thread dumps when it hangs http://community.jboss.org/wiki/ThreadDump

          • 2. Re: JNDI binding stops deployment
            mandarbk

            Thanks Jai, for showing interest.Unfortunately, the team decided to specify dual-core as the minimum requirement for the application sighting strict deadlines.I wanted to debug further but could not hold on to the machine with the exact configuratiion.