Package org.apache.ws.resource

Examples of org.apache.ws.resource.ResourceException


      {
         lock.acquire(  );
      }
      catch ( InterruptedException e )
      {
         throw new ResourceException( e );
      }

      try
      {
         resource = get( key );
View Full Code Here


      {
         lock.acquire(  );
      }
      catch ( InterruptedException ie )
      {
         throw new ResourceException( ie );
      }

      try
      {
         resource = get( key );

            try
            {
               resource.destroy(  );
            }
            catch ( RuntimeException re )
            {
               throw new ResourceException( MSG.getMessage( Keys.FAILED_TO_DESTROY_RESOURCE, resource, re ));
            }


         m_resources.remove( getLookupKey(key) );
View Full Code Here

      {
         resource = (Resource) getResourceClass(  ).newInstance(  );
      }
      catch ( Exception e )
      {
         throw new ResourceException( e );
      }

         resource.setID( key != null ? key.getValue() : null );

         try
         {
            LOG.debug(MSG.getMessage( Keys.INIT_RESOURCE_LIFECYCLE_INSTANCE, resource.getClass().getName()));
            resource.init();
         }
         catch ( RuntimeException re )
         {
            throw new ResourceException( MSG.getMessage( Keys.FAILED_TO_INIT_RESOURCE, resource, re ));
         }

      return resource;
   }
View Full Code Here

      {
         lock.acquire(  );
      }
      catch ( InterruptedException e )
      {
         throw new ResourceException( e );
      }

      try
      {
         resource = get( key );
View Full Code Here

      {
         lock.acquire(  );
      }
      catch ( InterruptedException ie )
      {
         throw new ResourceException( ie );
      }

      try
      {
         resource = get( key );

            try
            {
               resource.destroy(  );
            }
            catch ( RuntimeException re )
            {
               throw new ResourceException( MSG.getMessage( Keys.FAILED_TO_DESTROY_RESOURCE, resource, re ));
            }


         m_resources.remove( getLookupKey(key) );
View Full Code Here

      {
         resource = (Resource) getResourceClass(  ).newInstance(  );
      }
      catch ( Exception e )
      {
         throw new ResourceException( e );
      }

         resource.setID( key != null ? key.getValue() : null );

         try
         {
            LOG.debug(MSG.getMessage( Keys.INIT_RESOURCE_LIFECYCLE_INSTANCE, resource.getClass().getName()));
            resource.init();
         }
         catch ( RuntimeException re )
         {
            throw new ResourceException( MSG.getMessage( Keys.FAILED_TO_INIT_RESOURCE, resource, re ));
         }

      return resource;
   }
View Full Code Here

                myresource.setEndpointReference(epr); //make sure to set the EPR on your new instance
                add(key, myresource); //make sure to add your instance to the underlying cache to be found in future requests using find(..)
            }
            catch (Exception e)
            {
                throw new ResourceException(e);
            }
        }
        return resource;
    }
View Full Code Here

                    myresource.setEndpointReference(epr); //make sure to set the EPR on your new instance
                    add(key, myresource); //make sure to add your instance to the underlying cache to be found in future requests using find(..)
                }
                catch (Exception e)
                {
                    throw new ResourceException(e);
                }
            }
            else
            {
                throw new ResourceUnknownException(id,
View Full Code Here

                    resource.setEndpointReference(epr);

                }
                catch (Exception e)
                {
                    throw new ResourceException(e);
                }
                add(key, resource);
            }
            else
            {
View Full Code Here

                    EndpointReference epr = getEndpointReference(resourceContext.getBaseURL(  ) + "/" + getServiceName().getLocalPart() , key, SPEC_NAMESPACE_SET.getAddressingNamespace());
                    resource.setEndpointReference(epr);
                }
                catch (Exception e)
                {
                    throw new ResourceException(e);
                }
                add(key, resource);
            }
            else
            {
View Full Code Here

TOP

Related Classes of org.apache.ws.resource.ResourceException

Copyright © 2018 www.massapicom. 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.