3 Replies Latest reply on Aug 4, 2004 3:43 AM by aloubyansky

    Understanding findByPrimaryKey

    astewix

      Hi Everyone,

      I'm interesting in looking at the source code behind the findByPrimaryKey() method defined in the home interface of an entity EJB as I want to understand what is really going on behind the scenes. Could someone point me in the right direction as to where to look in the JBoss source code? I've had a look at the Entity*Interceptors but I thought I'd get some more precise input so I don't spend forever digging.

      Your help is greatly appreciated.

      Jesse

        • 1. Re: Understanding findByPrimaryKey
          aloubyansky

          org.jboss.ejb.plugins.cmp.jdbc.JDBCFindByPrimaryKeyQuery.java

          • 2. Re: Understanding findByPrimaryKey
            astewix

            Thank you for the reply Alexey!

            However, I should have been more clear with my question. What I'm really trying to find out is the trace of the findByPrimaryKey() method. I want to understand how the container behaves when findByPrimaryKey() is called and which components are invoked. I am aware of the fact that I can turn the TRACE level on for logging detailed container behaviour. Which category should I specify to obtain the relavant logging?


            Any help is greatly appreciated.

            • 3. Re: Understanding findByPrimaryKey
              aloubyansky

              If you need a stacktrace, just put 'new Exception().printStackTrace()' into the JDBCFindByPrimaryKeyQuery.