Examples of RegistrationFailureException


Examples of org.apache.ws.resource.discovery.faults.RegistrationFailureException

               // let the resource know we just unregistered it
               doomedResource.unregistered( this );
            }
            else
            {
               throw new RegistrationFailureException( MSG.getMessage( Keys.RESOURCE_EX_UNREGISTER_FAILURE,
                                                                       serviceName, id ) );
            }
         }
      }
View Full Code Here

Examples of org.apache.ws.resource.discovery.faults.RegistrationFailureException

   protected String getServiceName( WSResource resource )
   throws RegistrationFailureException
   {
      if ( resource == null )
      {
         throw new RegistrationFailureException( MSG.getMessage( Keys.RESOURCE_EX_NULL_NOT_APPROPRIATE,
                                                                 "WSResource", "null" ) );
      }

      if ( resource.getEndpointReference(  ) == null )
      {
         throw new RegistrationFailureException( MSG.getMessage( Keys.RESOURCE_EX_NULL_NOT_APPROPRIATE,
                                                                 "EndpointReference", resource ) );
      }

      if ( resource.getEndpointReference(  ).getServiceName(  ) == null )
      {
         throw new RegistrationFailureException( MSG.getMessage( Keys.RESOURCE_EX_NULL_NOT_APPROPRIATE,
                                                                 "ServiceName", resource ) );
      }

      if ( resource.getEndpointReference(  ).getServiceName(  ).getPort(  ) == null )
      {
         throw new RegistrationFailureException( MSG.getMessage( Keys.RESOURCE_EX_NULL_NOT_APPROPRIATE, "Port",
                                                                 resource ) );
      }

      return resource.getEndpointReference(  ).getServiceName(  ).getPort(  );
   }
View Full Code Here

Examples of org.apache.ws.resource.discovery.faults.RegistrationFailureException

      {
         resource.init(  );
      }
      catch ( Exception e )
      {
         throw new RegistrationFailureException( e );
      }

      // now add it to the internal map of registered resources
      String serviceName = getServiceName( resource );
View Full Code Here

Examples of org.apache.ws.resource.discovery.faults.RegistrationFailureException

      synchronized ( m_resourceMap )
      {
         if ( find( serviceName, null ) != null )
         {
            throw new RegistrationFailureException( MSG.getMessage( Keys.RESOURCE_EX_ALREADY_REGISTERED,
                                                                    serviceName, "Singleton" ) );
         }

         // Do not permit the registration of identical ResourceId's
         WSResource registeredResource = find( serviceName,
                                               getIdKey( resource ) );

         if ( registeredResource == null )
         {
            // add it to our map of registered resources
            addResource( resource );

            LOG.info( MSG.getMessage( Keys.RESOURCE_FAC_RES_REGISTERED, resource ) );
         }
         else
         {
            if ( registeredResource != resource )
            {
               throw new RegistrationFailureException( MSG.getMessage( Keys.RESOURCE_EX_ALREADY_REGISTERED,
                                                                       serviceName,
                                                                       getIdKey( resource ) ) );
            }
         }
      }
View Full Code Here

Examples of org.apache.ws.resource.discovery.faults.RegistrationFailureException

         // Are there any resources registered under this service as singletons or non singletons? If so fail
         WSResource[] registeredResources = find( getServiceName( resource ) );

         if ( registeredResources.length > 0 )
         {
            throw new RegistrationFailureException( MSG.getMessage( Keys.RESOURCE_EX_ALREADY_REGISTERED,
                                                                    getServiceName( resource ),
                                                                    registeredResources ) );
         }

         // add it to our map of registered resources
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.