Uploaded image for project: 'JBoss Metadata'
  1. JBoss Metadata
  2. JBMETA-27

Duplicate postConstruct lifecycle metadata for simple app client

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.0.0.Beta11
    • 1.0.0.Beta9
    • None
    • None

      I'm seeing 3 LifecycleCallbackMetaData postConstructs show up in the JBossClientMetaData for a simple client like the following. There should only be one.

      public class HelloWorldClient
      {
      @EJB
      private static HelloWorldService helloWorldService;

      @Resource(name="msg")
      private static String msg;

      private static String result;

      @Resource(mappedName="ConnectionFactory")
      private static ConnectionFactory connectionFactory;

      @Resource(name="messageReplier")
      private static Destination destination;

      private static int postConstructCalls = 0;

      public static int getPostConstructCalls()

      { return postConstructCalls; }

      ...
      @PostConstruct
      public static void postConstruct()

      { postConstructCalls++; }

      }

              starksm64 Scott Stark (Inactive)
              starksm64 Scott Stark (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: