Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-236

JSR181 annotations in JSE

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • jbossws-1.0RC1
    • None
    • jbossws-native
    • None

      The deployers for EJB, EJB3, WAR have been modified to use inlined xmbean desriptors that allow for deployment interceptors. The WebServiceInterceptor delegates to the appropriate WS endpoint deployer to do the additional work to get the endpoint up and running.

      With JSR181 a WS endpoint may be annotated with @WebService for that I need to read the annotation from the endpoint implementation class. Currently, this is done by loading the endpoint class and inspecting the annotations on java.lang.Class

      With java service endpoints (JSE) the web app context classloader only becomes available after the web app has started. This is too late.

      I can see two solutions to the problem:

      1. the annotations are obtained from the *.class file without loading the class
      2. the classloader is made available during the create step

      Generally, at what point of the deployment lifecycle should annotation meta data be available?

              tdiesler@redhat.com Thomas Diesler
              tdiesler@redhat.com Thomas Diesler
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: