Package org.apache.ws.resource

Examples of org.apache.ws.resource.ResourceHome.find()


   public NotificationProducerResource getProducerResource(  )
   {
      try
      {
         ResourceHome producerHome = (ResourceHome) new InitialContext(  ).lookup( m_producerHomeLocation );
         return (NotificationProducerResource) producerHome.find( m_producerId );
      }
      catch ( Exception e )
      {
         throw new RuntimeException( "Failed to lookup NotificationProducer resource due to internal error: " + e,
                                     e );
View Full Code Here


            keyName = QName.valueOf( resourceKeyName );
        }

        ResourceKey key = getResourceKey( keyName, resourceKeyClass );
        LOG.debug( MSG.getMessage( Keys.LOOKUP_RESOURCE_FOR_KEY, String.valueOf( key ) ) );
        Resource resource = home.find( key );
        LOG.debug( MSG.getMessage( Keys.FOUND_RESOURCE, resource ) );
        return resource;
    }

    /**
 
View Full Code Here

       {
           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 ));
      return resource;
   }

   /**
 
View Full Code Here

    public NotificationProducerResource getProducerResource()
    {
        try
        {
            ResourceHome producerHome = (ResourceHome) new InitialContext().lookup( m_producerHomeLocation );
            return (NotificationProducerResource) producerHome.find( m_producerKey );
        }
        catch ( Exception e )
        {
            throw new RuntimeException( "Failed to lookup NotificationProducer resource due to internal error: " + e, e );
        }
View Full Code Here

   public Resource getResource(  )
   throws ResourceException
   {
      ResourceHome home = getResourceHome(  );
      Object       id = home.extractResourceIdentifier( this );
      return home.find( id );
   }

   /**
    * DOCUMENT_ME
    *
 
View Full Code Here

   public Resource getResource(  )
   throws ResourceException
   {
      ResourceHome home = getResourceHome(  );
      Object       id = home.extractResourceIdentifier( this );
      return home.find( id );
   }

   /**
    * DOCUMENT_ME
    *
 
View Full Code Here

               {
                  String       subscriptionId = (String) subscriptionIds.get( i );
                  Subscription subscription;
                  try
                  {
                     subscription = (Subscription) subMgrHome.find( subscriptionId );
                  }
                  catch ( ResourceException re )
                  {
                     subscriptionIds.remove( i ); // remove stale subscription id from list
                     continue;
View Full Code Here

      String producerServiceName = producerAddress.substring( producerAddress.lastIndexOf( '/' ) + 1 );
      try
      {
         ResourceHome producerHome = WsrfRuntime.getRuntime(  ).getResourceHome( producerServiceName );
         Object       producerId = producerHome.extractResourceIdentifier( m_producerRef );
         return (NotificationProducerResource) producerHome.find( producerId );
      }
      catch ( Exception e )
      {
         throw new RuntimeException( "Failed to lookup NotificationProducer resource due to internal error.", e );
      }
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.