Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-2224

Enhancement in EntityListener

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.2.0
    • None
    • jpa

    Description

      The Enhancement try to Enhance my EntityListener.

      The exception is caused by the JNDI lookup that i am performing in my EntityListener.

      During the Enhancement processing, it looks like openjpa (Enhancement) is creating an
      instance of your EntityListener. The ctor for your EntityListener is
      requiring a JNDI context and, of course, none exists in your build
      environment.

      public class EntityListener {
      private BitacoraFacade bitacoraFacadeLocal;
      public EntityListener() {
      try

      { bitacoraFacadeLocal = (BitacoraFacade) UtilEJB.getEJBReference(BitacoraFacade.class); }

      catch (Exception ex)

      { ex.printStackTrace(); }

      }

      pom.xml:
      <execution>
      <id>enhancer</id>
      <phase>process-classes</phase>
      <goals>
      <goal>enhance</goal>
      </goals>
      </execution>

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            maxtorzito José Luis Cetina (maxtorzito)

            Dates

              Created:
              Updated:

              Slack

                Issue deployment