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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.4
    • Fix Version/s: 2.0.9, 2.1.3
    • Component/s: Transports
    • Labels:
      None
    • Environment:

      ActiveMQ 5

    • Estimated Complexity:
      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

            People

            • Assignee:
              cschneider Christian Schneider
              Reporter:
              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