You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pubscribe-dev@ws.apache.org by sc...@apache.org on 2005/05/24 16:58:17 UTC

svn commit: r178179 - /incubator/hermes/trunk/src/site/content/tutorial/method_impls/filesys_home_getInstance.txt

Author: scamp
Date: Tue May 24 07:58:16 2005
New Revision: 178179

URL: http://svn.apache.org/viewcvs?rev=178179&view=rev
Log: (empty)

Modified:
    incubator/hermes/trunk/src/site/content/tutorial/method_impls/filesys_home_getInstance.txt

Modified: incubator/hermes/trunk/src/site/content/tutorial/method_impls/filesys_home_getInstance.txt
URL: http://svn.apache.org/viewcvs/incubator/hermes/trunk/src/site/content/tutorial/method_impls/filesys_home_getInstance.txt?rev=178179&r1=178178&r2=178179&view=diff
==============================================================================
--- incubator/hermes/trunk/src/site/content/tutorial/method_impls/filesys_home_getInstance.txt (original)
+++ incubator/hermes/trunk/src/site/content/tutorial/method_impls/filesys_home_getInstance.txt Tue May 24 07:58:16 2005
@@ -4,10 +4,10 @@
             ResourceUnknownException
     {
         ResourceKey key = resourceContext.getResourceKey();
-        Resource resource = null;
+        FilesystemResource resource = null;
         try
         {
-            resource = find( key );
+            resource = (FilesystemResource)find( key );
         }
         catch ( ResourceException re )
         {
@@ -19,7 +19,9 @@
          {
             try
             {
-               resource = createInstance( key);
+               resource = (FilesystemResource)createInstance( key);
+               EndpointReference epr = getEndpointReference(resourceContext.getBaseURL(  ) + "/" + getServiceName().getLocalPart() , key, SPEC_NAMESPACE_SET.getAddressingNamespace());
+               resource.setEndpointReference(epr);
             }
             catch ( Exception e )
             {



---------------------------------------------------------------------
To unsubscribe, e-mail: hermes-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: hermes-dev-help@ws.apache.org