Package org.apache.ws.resource

Examples of org.apache.ws.resource.ResourceException


            myResource.setEndpointReference( epr ); //make sure to set the EPR on your new instance
            add( myResource );
         }
         catch ( Exception e )
         {
            throw new ResourceException( e );
         }
      }

      return m_resource;
   }
View Full Code Here


         add( subscription );
         return subscription;
      }
      catch ( Exception e )
      {
         throw new ResourceException( "Failed to create Subscription resource.", e );
      }
   }
View Full Code Here

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

        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 ) );
            notifyResourceDeletedListeners( resource.getEndpointReference() );
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 ), re );
        }

        return resource;
    }
View Full Code Here

            {
                m_resourceClass = Class.forName( m_resourceClassName );
            }
            catch ( ClassNotFoundException cnfe )
            {
                throw new ResourceException( MSG.getMessage( Keys.RESOURCE_CLASS_NOT_FOUND, m_resourceClassName ) );
            }
        }
        return m_resourceClass;
    }
View Full Code Here

                ( (PropertiesResource) resource ).setResourcePropertySet( propSet );
            }
        }
        catch ( Exception e )
        {
            throw new ResourceException( e );
        }

        add( key, resource );
        return resource;
    }
View Full Code Here

            resourceKeyClassName = home.getResourceKeyClassName();
            resourceKeyClass = Class.forName( resourceKeyClassName );
        }
        catch ( ClassNotFoundException cnfe )
        {
            throw new ResourceException( cnfe );
        }

        String resourceKeyName = home.getResourceKeyName();
        QName keyName = null;
        if ( resourceKeyName != null )
View Full Code Here

           resourceKeyClassName = home.getResourceKeyClassName();
           resourceKeyClass = Class.forName(resourceKeyClassName);
       }
       catch (ClassNotFoundException e)
       {
           throw new ResourceException(e);
       }
       ResourceKey key = getResourceKey( QName.valueOf(home.getResourceKeyName()), resourceKeyClass);
      LOG.debug( MSG.getMessage( Keys.LOOKUP_RESOURCE_FOR_KEY, key.getValue()));
      Resource resource = home.find( key );
      LOG.debug( MSG.getMessage( Keys.FOUND_RESOURCE, resource ));
View Full Code Here

                ( (PropertiesResource) resource ).setResourcePropertySet( propSet );
            }
        }
        catch ( Exception e )
        {
            throw new ResourceException( e );
        }

        add( key, resource );
        return resource;
    }
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.