You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pubscribe-commits@ws.apache.org by jr...@apache.org on 2005/07/29 20:17:27 UTC

svn commit: r226409 - /webservices/pubscribe/trunk/src/site/content/xdocs/dev_guide/consumer.xml

Author: jruzzi
Date: Fri Jul 29 11:17:03 2005
New Revision: 226409

URL: http://svn.apache.org/viewcvs?rev=226409&view=rev
Log:
sal updates

Modified:
    webservices/pubscribe/trunk/src/site/content/xdocs/dev_guide/consumer.xml

Modified: webservices/pubscribe/trunk/src/site/content/xdocs/dev_guide/consumer.xml
URL: http://svn.apache.org/viewcvs/webservices/pubscribe/trunk/src/site/content/xdocs/dev_guide/consumer.xml?rev=226409&r1=226408&r2=226409&view=diff
==============================================================================
--- webservices/pubscribe/trunk/src/site/content/xdocs/dev_guide/consumer.xml (original)
+++ webservices/pubscribe/trunk/src/site/content/xdocs/dev_guide/consumer.xml Fri Jul 29 11:17:03 2005
@@ -36,7 +36,7 @@
         org.apache.ws.resource.properties.ResourcePropertySet resourcePropertySet = ((org.apache.ws.resource.PropertiesResource)getResource()).getResourcePropertySet();
 
         //get the property
-        org.apache.ws.resource.properties.ResourceProperty resourceProperty = resourcePropertySet.get(ConsumerPortPropertyQNames.LASTMESSAGE);
+        org.apache.ws.resource.properties.ResourceProperty resourceProperty = resourcePropertySet.get(ConsumerPropertyQNames.LASTMESSAGE);
         resourceProperty.clear();//clear old notifs
         
         //add the new entry
@@ -54,12 +54,19 @@
 		<section>
 			<title>Modify the Resource Class</title>
 			<p>The resource class is used to setup and initialize any resource properties. For the consumer example,  the resource class is not used to setup and initialize the 
-			<code>LASTMESSAGE</code> resource property, but instead  the service class is used to perform these operations. If you choose to use the resource class, you should update the 
-			<code>init()</code> method to add your properties to the <code>ResourcePropertySet</code> The following sample code is not required for the consumer example but demonstrates a 
-			possible implementation.
+			<code>LASTMESSAGE</code> resource property, but instead  the service class is used to perform these operations. If you choose to use the resource class, you should 
+			update the <code>init()</code> method to add your properties to the <code>ResourcePropertySet</code>. The following sample code 
+			is required for the consumer example. Below the consumer example code is an example of setting up and initializing resource properties in the resource class.
 			</p>
 			<source>
-   public void init()
+public void init()
+    {
+        super.init();               
+    }
+   			</source>
+   			<p>Generic example of setting and initialing resource properties.</p>
+   			<source>
+public void init()
     {
         super.init();               
 
@@ -71,8 +78,8 @@
 
 
 	try{	
-		// init the {http://ws.apache.org/resource/example/NotifConsumer}LastMessage Resource Property
-		resourceProperty = resourcePropertySet.get(ConsumerPortPropertyQNames.LASTMESSAGE);
+		// init the {http://ws.apache.org/resource/example/NotifConsumer}YourResourceProperty Property
+		resourceProperty = resourcePropertySet.get(ConsumerPortPropertyQNames.YourResourceProperty);
 		
 		}
 	catch (Exception e)