Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-1426

If JMS destination / JNDI server is missing, publishing an endpoint doesn't fail, only logs exception

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

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0.4
    • 2.0.9, 2.1.3
    • Transports
    • None
    • ActiveMQ 5

    • Novice

    Description

      When publishing a service on the JMS transport, if the jndi server cannot be found, or the named destination is missing, CXF will only log the exception. It will not throw. Hence, it is not possible to know that the service creation failed.

      Endpoint impl = Endpoint.publish(url, object);
      if ((impl != null) && impl.isPublished())

      { // success }

      The above code will go to success case even in failure conditions mentioned above.

      Attachments

        Activity

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

          People

            cschneider Christian Schneider
            mayank Mayank Bansal
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified

                Slack

                  Issue deployment