Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-5488

JBossWS CXF integration initialises endpoints multiple times

    Details

    • Steps to Reproduce:
      Hide

      This issue is apparent from the logging and not an easily testable runtime test so the attached PhoneBook.war can be used to reproduce the issue.

      Deploy the war and access the URL http://localhost:8080/PhoneBook/PhoneBook?wsdl the following lines should be logged to the console: -

      16:07:01,489 INFO [ReflectionServiceFactoryBean] Creating Service

      {http://www.jboss.org/support/phonebook}

      PhoneBook from class org.jboss.support.ws.phonebook.PhoneBook
      16:07:01,561 INFO [ServerImpl] Setting the server's publish address to be http://127.0.0.1:8080/PhoneBook/PhoneBook
      16:07:01,569 INFO [ReflectionServiceFactoryBean] Creating Service

      {http://www.jboss.org/support/phonebook}

      Directory from class org.jboss.support.ws.phonebook.Directory
      16:07:01,634 INFO [ServerImpl] Setting the server's publish address to be http://127.0.0.1:8080/PhoneBook/Directory

      Now access the second endpoints WSDL http://localhost:8080/PhoneBook/Directory?wsdl

      Without the fix the same lines are logged again, with the fix these lines should not be logged again.

      Show
      This issue is apparent from the logging and not an easily testable runtime test so the attached PhoneBook.war can be used to reproduce the issue. Deploy the war and access the URL http://localhost:8080/PhoneBook/PhoneBook?wsdl the following lines should be logged to the console: - 16:07:01,489 INFO [ReflectionServiceFactoryBean] Creating Service {http://www.jboss.org/support/phonebook} PhoneBook from class org.jboss.support.ws.phonebook.PhoneBook 16:07:01,561 INFO [ServerImpl] Setting the server's publish address to be http://127.0.0.1:8080/PhoneBook/PhoneBook 16:07:01,569 INFO [ReflectionServiceFactoryBean] Creating Service {http://www.jboss.org/support/phonebook} Directory from class org.jboss.support.ws.phonebook.Directory 16:07:01,634 INFO [ServerImpl] Setting the server's publish address to be http://127.0.0.1:8080/PhoneBook/Directory Now access the second endpoints WSDL http://localhost:8080/PhoneBook/Directory?wsdl Without the fix the same lines are logged again, with the fix these lines should not be logged again.
    • Release Notes Docs Status:
      Not Required

      Description

      The initialisation process for CXF endpoints occurs at the time the endpoint is first accessed, for deployments that contain multiple endpoints each time one is accessed for the first time all endpoints are initialised again.

      This issue is to reduce the initialisation to just once for the first endpoint accessed.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  dlofthouse Darran Lofthouse
                  Reporter:
                  dlofthouse Darran Lofthouse
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: