Package org.apache.ws.resource

Examples of org.apache.ws.resource.Resource


               SimpleTypeResourceKey aKey  = ResourceKeyFactory.createKey( tag, value );

               Map                   resources = aHome.getResources(  );
               if ( resources.containsKey( value ) )
               {
                  Resource resource = (Resource) resources.get( value );
                  if ( resource instanceof ApplicationResource )
                  {
                     ApplicationResource appServer = (ApplicationResource) resource;
                     appServer.removeRelationship( requestDoc );
                  }
View Full Code Here


               SimpleTypeResourceKey aKey  = ResourceKeyFactory.createKey( tag, value );

               Map                   resources = aHome.getResources(  );
               if ( resources.containsKey( value ) )
               {
                  Resource resource = (Resource) resources.get( value );
                  if ( resource instanceof ApplicationResource )
                  {
                     ApplicationResource appServer = (ApplicationResource) resource;
                     appServer.setRelationship( requestDoc );
                  }
View Full Code Here

            throws ResourceException,
                   ResourceContextException,
                   ResourceUnknownException
    {
        ResourceKey key = resourceContext.getResourceKey();
        Resource resource = null;
        try
        {
            resource = find(key);
        }
        catch (ResourceException re)
View Full Code Here

   throws ResourceException,
          ResourceContextException,
          ResourceUnknownException
   {
      ResourceKey key      = resourceContext.getResourceKey(  );
      Resource    resource = null;

      try
      {
         if ( m_adminResource == null )
         {
View Full Code Here

   throws ResourceException,
          ResourceContextException,
          ResourceUnknownException
   { //todo not sure what should happen in here yet....for singleton
      ResourceKey key      = resourceContext.getResourceKey(  );
      Resource    resource = null;
      try
      {
         resource = find( key );
      }
      catch ( ResourceException re )
View Full Code Here

            throws ResourceException,
            ResourceContextException,
            ResourceUnknownException
    {
        ResourceKey key = resourceContext.getResourceKey();
        Resource resource = null;
        try
        {
            resource = find( key );
        }
        catch ( ResourceException re )
View Full Code Here

   throws ResourceException,
          ResourceContextException,
          ResourceUnknownException
   {
      ResourceKey key      = resourceContext.getResourceKey(  );
      Resource    resource = null;
      try
      {
         resource = find( key );
      }
      catch ( ResourceException re )
View Full Code Here

                           CreateParamsType params )
   throws ResourceException,
          ResourceContextException,
          ResourceUnknownException
   {
      Resource              resource  = null;
      long                  currentId = ++m_instances;
      SimpleTypeResourceKey aKey      =
         ResourceKeyFactory.createKey( RESOURCE_ID, SERVICE_NAME + Long.toString( currentId ) );
      try
      {
         //resource = createInstance(aKey);
         resource = new BusinessprocesstypeResource( aKey, params );

         //The EPRs should be build using "http://schemas.xmlsoap.org/ws/2003/03/addressing" addressing namespace. It introduces spec conflicts
         //To work around thes problem the "http://schemas.xmlsoap.org/ws/2004/08/addressing" is used as namespace for addressing
         //EndpointReference epr = getEndpointReference(resourceContext.getBaseURL(  ) + "/" + getServiceName().getLocalPart() , null, SPEC_NAMESPACE_SET.getAddressingNamespace());
         EndpointReference epr =
            getEndpointReference( resourceContext.getBaseURL(  ) + "/" + getServiceName(  ).getLocalPart(  ),
                                  aKey,
                                  ExampleConstants.getAddressingNamespace(  ) );
         ( (BusinessprocesstypeResource) resource ).setEndpointReference( epr );
         resource.init(  );
         add( aKey, resource );
      }
      catch ( Exception e )
      {
         throw new ResourceException( e );
View Full Code Here

   throws ResourceUnknownException,
          ResourceException
   {
      LOG.debug( MSG.getMessage( Keys.FINDING_RESOURCE_WITH_KEY,
                                 String.valueOf( resourceId ) ) );
      Resource resource = null;
      synchronized ( m_resources )
      {
         //Lock lock = acquireLock( resourceId );
         //try
         //{
View Full Code Here

    */
   public void remove( Object resourceId )
   throws ResourceUnknownException,
          ResourceException
   {
      Resource resource = null;
      Lock     lock = acquireLock( resourceId );
      try
      {
         resource = get( resourceId );

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

         Resource removedResource = (Resource) m_resources.remove( getNonNullKey( resourceId ) );
         if ( removedResource instanceof PropertiesResource )
         {
            notifyResourceDeletedListeners( removedResource );
         }

View Full Code Here

TOP

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

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.