You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Mayank Thakore (JIRA)" <ji...@apache.org> on 2008/02/08 03:33:08 UTC

[jira] Created: (CXF-1426) If JMS destination / JNDI server is missing, publishing an endpoint doesn't fail, only logs exception

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

                 Key: CXF-1426
                 URL: https://issues.apache.org/jira/browse/CXF-1426
             Project: CXF
          Issue Type: Bug
          Components: Transports
    Affects Versions: 2.0.4
         Environment: ActiveMQ 5
            Reporter: Mayank Thakore
            Priority: Minor


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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.