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

svn commit: r178231 [2/3] - in /incubator/muse/trunk: ./ src/site/content/interop/ src/site/content/interop/src/java/com/dell/wsdm/demos/interop/x2005/x04/ src/site/content/interop/src/java/org/apache/ws/resource/example/ src/site/content/interop/src/java/org/apache/ws/resource/example/blackberry/ src/site/content/interop/src/java/org/everest/ src/site/content/interop/src/java/org/everestWeather/wsdm/samples/x2005/x04/schema/ src/site/content/interop/src/test/org/apache/ws/muws/interop/client/

Modified: incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/blackberry/BlackberryResource.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/blackberry/BlackberryResource.java?rev=178231&r1=178230&r2=178231&view=diff
==============================================================================
--- incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/blackberry/BlackberryResource.java (original)
+++ incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/blackberry/BlackberryResource.java Tue May 24 11:34:57 2005
@@ -1,14 +1,12 @@
-
 package org.apache.ws.resource.example.blackberry;
 
-import org.apache.ws.muws.v1_0.capability.OperationalStatusCapability;
+import org.apache.ws.muws.v1_0.MuwsConstants;
 import org.apache.ws.muws.v1_0.capability.ConfigurationCapability;
 import org.apache.ws.muws.v1_0.capability.IdentityCapability;
 import org.apache.ws.muws.v1_0.capability.MetricsCapability;
+import org.apache.ws.muws.v1_0.capability.OperationalStatusCapability;
 import org.apache.ws.muws.v1_0.topics.ManagementEventTopic;
 import org.apache.ws.muws.v1_0.topics.impl.XmlBeansManagementEventTopicImpl;
-import org.apache.ws.muws.v1_0.MuwsConstants;
-import org.apache.ws.resource.properties.ResourceProperty;
 import org.apache.ws.notification.topics.TopicSpace;
 import org.apache.ws.notification.topics.impl.TopicSpaceImpl;
 import org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ManageabilityCapabilityDocument;
@@ -34,143 +32,178 @@
     /**
      * A NamespaceVerionHolder which maintains the QNames of Spec Wsdls
      */
-    public static final org.apache.ws.notification.base.v1_2.impl.WsnNamespaceVersionHolderImpl SPEC_NAMESPACE_SET = new org.apache.ws.notification.base.v1_2.impl.WsnNamespaceVersionHolderImpl();
-    
+    public static final org.apache.ws.notification.base.v2004_06.impl.WsnNamespaceVersionHolderImpl SPEC_NAMESPACE_SET = new org.apache.ws.notification.base.v2004_06.impl.WsnNamespaceVersionHolderImpl();
+
     /**
      * Initializes this resource's state (properties, etc.).
      */
     public void init()
     {
         super.init();
-        
-        	
-
-   /**
-    * This method call will make all resource properties be exposed
-    * as Topics.  If you would like to change that behaviour you can 
-    * call TopicUtils.addResourcePropertyValueChangeTopic for each
-    * Topic you'd like to expose property change notifications for.
-    */
-    org.apache.ws.notification.topics.util.TopicUtils.addResourcePropertyValueChangeTopics( getResourcePropertySet(), getTopicSpaceSet() );
 
+        /**
+         * The ResourcePropertySet which contains all the defined ResourceProperties
+         */
         org.apache.ws.resource.properties.ResourcePropertySet resourcePropertySet = getResourcePropertySet();
+        org.apache.ws.resource.properties.ResourceProperty resourceProperty = null;
 
-        /** Capabilities **/
-        //Management Characteristics
-        ResourceProperty resourceProperty = resourcePropertySet.get(BlackberryPropertyQNames.MANAGEABILITYCAPABILITY);
-
-        //Identity Capability
-        ManageabilityCapabilityDocument manageabilityCapabilityDocument = ManageabilityCapabilityDocument.Factory.newInstance();
-        manageabilityCapabilityDocument.setManageabilityCapability(IdentityCapability.URI);
-        resourceProperty.add(manageabilityCapabilityDocument);
-
-        //MUWS2 Metrics Capability
-        manageabilityCapabilityDocument = ManageabilityCapabilityDocument.Factory.newInstance();
-        manageabilityCapabilityDocument.setManageabilityCapability(MetricsCapability.URI);
-        resourceProperty.add(manageabilityCapabilityDocument);
-
-        //Blackberry Metrics Capability
-        manageabilityCapabilityDocument = ManageabilityCapabilityDocument.Factory.newInstance();
-        manageabilityCapabilityDocument.setManageabilityCapability("http://pda.rim/BlackberryMetrics");
-        resourceProperty.add(manageabilityCapabilityDocument);
-
-        //Configuration
-        manageabilityCapabilityDocument = ManageabilityCapabilityDocument.Factory.newInstance();
-        manageabilityCapabilityDocument.setManageabilityCapability(ConfigurationCapability.URI);
-        resourceProperty.add(manageabilityCapabilityDocument);
-
-        //Blackberry Configuration Capability
-        manageabilityCapabilityDocument = ManageabilityCapabilityDocument.Factory.newInstance();
-        manageabilityCapabilityDocument.setManageabilityCapability("http://pda.rim/BlackberryConfiguration");
-        resourceProperty.add(manageabilityCapabilityDocument);
-
-        //Status Capability
-        manageabilityCapabilityDocument = ManageabilityCapabilityDocument.Factory.newInstance();
-        manageabilityCapabilityDocument.setManageabilityCapability(OperationalStatusCapability.URI);
-        resourceProperty.add(manageabilityCapabilityDocument);
-
-
-        /** Topics **/
-        //MUWS TopicSpace
-        TopicSpace muwsTopicSpace = new TopicSpaceImpl( MuwsConstants.NSURI_MUWS_PART2_TOPICS );
-        getTopicSpaceSet().addTopicSpace(muwsTopicSpace);
-
-        ManagementEventTopic operationalStatusCapability = new XmlBeansManagementEventTopicImpl(
-                "OperationalStatusCapability" );
-        muwsTopicSpace.addTopic( operationalStatusCapability );
-        ManagementEventTopic metricsCapability = new XmlBeansManagementEventTopicImpl( "MetricsCapability" );
-        muwsTopicSpace.addTopic( metricsCapability );
-        ManagementEventTopic codeModuleSize = new XmlBeansManagementEventTopicImpl( "CodeModuleSize" );
-
-        //Blackberry TopicSpace
-        TopicSpace bbryTopicSpace = new TopicSpaceImpl( BlackberryPropertyQNames.ALLOCATEDSTORAGE.getNamespaceURI() );
-        getTopicSpaceSet().addTopicSpace(bbryTopicSpace);
-        bbryTopicSpace.addTopic(codeModuleSize);
-
-        /** Properties **/
-        resourceProperty = resourcePropertySet.get(BlackberryPropertyQNames.RESOURCEID);
-        ResourceIdDocument resourceIdDocument = ResourceIdDocument.Factory.newInstance();
-        resourceIdDocument.setResourceId( "urn:" +(String)getID());
-        resourceProperty.add(resourceIdDocument);
-
-        resourceProperty = resourcePropertySet.get(BlackberryPropertyQNames.ALLOCATEDSTORAGE);
-        AllocatedStorageDocument allocatedStorageDocument = AllocatedStorageDocument.Factory.newInstance();
-        allocatedStorageDocument.setAllocatedStorage(1024);
-        resourceProperty.add(allocatedStorageDocument);
-        resourceProperty.addChangeListener(metricsCapability);
-
-        //Calendar for use in a few properties
-        Calendar calendarInstance = Calendar.getInstance();
-
-       
-        //current time is done like in Apollo
-        resourceProperty = resourcePropertySet.get(BlackberryPropertyQNames.CURRENTTIME);
-        CurrentTimeDocument currentTimeDocument = CurrentTimeDocument.Factory.newInstance();
-        currentTimeDocument.setCurrentTime(calendarInstance);
-        resourceProperty.add(currentTimeDocument);
-        resourceProperty.setCallback( new org.apache.ws.resource.lifetime.callback.CurrentTimeCallback(  ) );
-        resourceProperty.addChangeListener(metricsCapability);
-
-        resourceProperty = resourcePropertySet.get(BlackberryPropertyQNames.DATE);
-        DateDocument dateDocument = DateDocument.Factory.newInstance();
-        DateDocument.Date date = dateDocument.addNewDate();
-        date.setDay(calendarInstance.get(Calendar.DAY_OF_MONTH));
-        date.setMonth(calendarInstance.get(Calendar.MONTH));
-        date.setYear(calendarInstance.get(Calendar.YEAR));
-        dateDocument.setDate(date);
-        resourceProperty.add(dateDocument);
-
-
-        resourceProperty = resourcePropertySet.get(BlackberryPropertyQNames.FREESTORAGE);
-        FreeStorageDocument freeStorageDocument = FreeStorageDocument.Factory.newInstance();        
-        freeStorageDocument.setFreeStorage(384);
-        resourceProperty.add(freeStorageDocument);
-        resourceProperty.addChangeListener(metricsCapability);
-
-
-        resourceProperty = resourcePropertySet.get(BlackberryPropertyQNames.OPERATIONALSTATUS);
-        OperationalStatusDocument operationalStatusDocument = OperationalStatusDocument.Factory.newInstance();
-        operationalStatusDocument.setOperationalStatus(OperationalStatusDocument.OperationalStatus.AVAILABLE);
-        resourceProperty.add(operationalStatusDocument);
-        resourceProperty.addChangeListener(operationalStatusCapability);
-
-        resourceProperty = resourcePropertySet.get(BlackberryPropertyQNames.TIME);
-        TimeDocument timeDocument = TimeDocument.Factory.newInstance();
-        TimeDocument.Time time = timeDocument.addNewTime();
-        time.setHour(calendarInstance.get(Calendar.HOUR_OF_DAY));//24 hr clock..no indication in spec
-        time.setMinute(calendarInstance.get(Calendar.MINUTE));
-        resourceProperty.add(timeDocument);
-
-        resourceProperty = resourcePropertySet.get(BlackberryPropertyQNames.TOTALCODEMODULESIZE);
-        TotalCodeModuleSizeDocument totalCodeModuleSizeDocument = TotalCodeModuleSizeDocument.Factory.newInstance();
-        totalCodeModuleSizeDocument.setTotalCodeModuleSize(256);
-        resourceProperty.add(totalCodeModuleSizeDocument);
-        resourceProperty.addChangeListener(codeModuleSize);
-        resourceProperty.addChangeListener(metricsCapability);
-        //todo this need a callback which MAY trigger a periodic change...we need this to generate a event..no indication how to trigger
-
+        try
+        {
+            /** Capabilities **/
+            //Management Characteristics
+            resourceProperty = resourcePropertySet.get(BlackberryPropertyQNames.MANAGEABILITYCAPABILITY);
+
+            //Identity Capability
+            ManageabilityCapabilityDocument manageabilityCapabilityDocument = ManageabilityCapabilityDocument.Factory.newInstance();
+            manageabilityCapabilityDocument.setManageabilityCapability(IdentityCapability.URI);
+            resourceProperty.add(manageabilityCapabilityDocument);
+
+            //MUWS2 Metrics Capability
+            manageabilityCapabilityDocument = ManageabilityCapabilityDocument.Factory.newInstance();
+            manageabilityCapabilityDocument.setManageabilityCapability(MetricsCapability.URI);
+            resourceProperty.add(manageabilityCapabilityDocument);
+
+            //Blackberry Metrics Capability
+            manageabilityCapabilityDocument = ManageabilityCapabilityDocument.Factory.newInstance();
+            manageabilityCapabilityDocument.setManageabilityCapability("http://pda.rim/BlackberryMetrics");
+            resourceProperty.add(manageabilityCapabilityDocument);
+
+            //Configuration
+            manageabilityCapabilityDocument = ManageabilityCapabilityDocument.Factory.newInstance();
+            manageabilityCapabilityDocument.setManageabilityCapability(ConfigurationCapability.URI);
+            resourceProperty.add(manageabilityCapabilityDocument);
+
+            //Blackberry Configuration Capability
+            manageabilityCapabilityDocument = ManageabilityCapabilityDocument.Factory.newInstance();
+            manageabilityCapabilityDocument.setManageabilityCapability("http://pda.rim/BlackberryConfiguration");
+            resourceProperty.add(manageabilityCapabilityDocument);
+
+            //Status Capability
+            manageabilityCapabilityDocument = ManageabilityCapabilityDocument.Factory.newInstance();
+            manageabilityCapabilityDocument.setManageabilityCapability(OperationalStatusCapability.URI);
+            resourceProperty.add(manageabilityCapabilityDocument);
+
+
+            /** Topics **/
+            //MUWS TopicSpace
+            TopicSpace muwsTopicSpace = new TopicSpaceImpl(MuwsConstants.NSURI_MUWS_PART2_TOPICS);
+            getTopicSpaceSet().addTopicSpace(muwsTopicSpace);
+
+            ManagementEventTopic operationalStatusCapability = new XmlBeansManagementEventTopicImpl("OperationalStatusCapability");
+            muwsTopicSpace.addTopic(operationalStatusCapability);
+            ManagementEventTopic metricsCapability = new XmlBeansManagementEventTopicImpl("MetricsCapability");
+            muwsTopicSpace.addTopic(metricsCapability);
+            ManagementEventTopic codeModuleSize = new XmlBeansManagementEventTopicImpl("CodeModuleSize");
+
+            //Blackberry TopicSpace
+            TopicSpace bbryTopicSpace = new TopicSpaceImpl(BlackberryPropertyQNames.ALLOCATEDSTORAGE.getNamespaceURI());
+            getTopicSpaceSet().addTopicSpace(bbryTopicSpace);
+            bbryTopicSpace.addTopic(codeModuleSize);
+
+            /** Properties **/
+            resourceProperty = resourcePropertySet.get(BlackberryPropertyQNames.RESOURCEID);
+            ResourceIdDocument resourceIdDocument = ResourceIdDocument.Factory.newInstance();
+            resourceIdDocument.setResourceId("urn:" + (String) getID());
+            resourceProperty.add(resourceIdDocument);
+
+            resourceProperty = resourcePropertySet.get(BlackberryPropertyQNames.ALLOCATEDSTORAGE);
+            AllocatedStorageDocument allocatedStorageDocument = AllocatedStorageDocument.Factory.newInstance();
+            allocatedStorageDocument.setAllocatedStorage(1024);
+            resourceProperty.add(allocatedStorageDocument);
+            resourceProperty.addChangeListener(metricsCapability);
+
+            //Calendar for use in a few properties
+            Calendar calendarInstance = Calendar.getInstance();
+
+
+            //current time is done like in Apollo
+            resourceProperty = resourcePropertySet.get(BlackberryPropertyQNames.CURRENTTIME);
+            CurrentTimeDocument currentTimeDocument = CurrentTimeDocument.Factory.newInstance();
+            currentTimeDocument.setCurrentTime(calendarInstance);
+            resourceProperty.add(currentTimeDocument);
+            resourceProperty.setCallback(new org.apache.ws.resource.lifetime.callback.CurrentTimeCallback());
+            resourceProperty.addChangeListener(metricsCapability);
+
+            resourceProperty = resourcePropertySet.get(BlackberryPropertyQNames.DATE);
+            DateDocument dateDocument = DateDocument.Factory.newInstance();
+            DateDocument.Date date = dateDocument.addNewDate();
+            date.setDay(calendarInstance.get(Calendar.DAY_OF_MONTH));
+            date.setMonth(calendarInstance.get(Calendar.MONTH));
+            date.setYear(calendarInstance.get(Calendar.YEAR));
+            dateDocument.setDate(date);
+            resourceProperty.add(dateDocument);
+
+
+            resourceProperty = resourcePropertySet.get(BlackberryPropertyQNames.FREESTORAGE);
+            FreeStorageDocument freeStorageDocument = FreeStorageDocument.Factory.newInstance();
+            freeStorageDocument.setFreeStorage(384);
+            resourceProperty.add(freeStorageDocument);
+            resourceProperty.addChangeListener(metricsCapability);
+
+
+            resourceProperty = resourcePropertySet.get(BlackberryPropertyQNames.OPERATIONALSTATUS);
+            OperationalStatusDocument operationalStatusDocument = OperationalStatusDocument.Factory.newInstance();
+            operationalStatusDocument.setOperationalStatus(OperationalStatusDocument.OperationalStatus.AVAILABLE);
+            resourceProperty.add(operationalStatusDocument);
+            resourceProperty.addChangeListener(operationalStatusCapability);
+
+            resourceProperty = resourcePropertySet.get(BlackberryPropertyQNames.TIME);
+            TimeDocument timeDocument = TimeDocument.Factory.newInstance();
+            TimeDocument.Time time = timeDocument.addNewTime();
+            time.setHour(calendarInstance.get(Calendar.HOUR_OF_DAY));//24 hr clock..no indication in spec
+            time.setMinute(calendarInstance.get(Calendar.MINUTE));
+            resourceProperty.add(timeDocument);
+
+            resourceProperty = resourcePropertySet.get(BlackberryPropertyQNames.TOTALCODEMODULESIZE);
+            TotalCodeModuleSizeDocument totalCodeModuleSizeDocument = TotalCodeModuleSizeDocument.Factory.newInstance();
+            totalCodeModuleSizeDocument.setTotalCodeModuleSize(256);
+            resourceProperty.add(totalCodeModuleSizeDocument);
+            resourceProperty.addChangeListener(codeModuleSize);
+            resourceProperty.addChangeListener(metricsCapability);
+        }
+        catch (Exception e)
+        {
+            throw new javax.xml.rpc.JAXRPCException("There was a problem in initializing your resource properties.  Please check your init() method. Cause: " + e.getLocalizedMessage());
+        }
+        // Resource Property {http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd}FixedTopicSet is implemented by the framework.
+        // Resource Property {http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd}Topic is implemented by the framework.
+        // Resource Property {http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd}TopicExpressionDialects is implemented by the framework.
+
+
+
+        /**
+         * This method call will make all resource properties be exposed
+         * as Topics.  If you would like to change that behaviour you can
+         * call TopicUtils.addResourcePropertyValueChangeTopic for each
+         * Topic you'd like to expose property change notifications for.
+         */
+        try
+        {
+            org.apache.ws.notification.topics.util.TopicUtils.addResourcePropertyValueChangeTopics(getResourcePropertySet(), getTopicSpaceSet());
+        }
+        catch (Exception e)
+        {
+            throw new javax.xml.rpc.JAXRPCException("Unable to init the ResourceProperty Changed topics. Cause: " + e.getLocalizedMessage(), e);
+        }
+
+        /**
+         * Initializes the Topic, TopicExpressionDialects and FixedTopicSet resource properties
+         *
+         * </br>
+         * <strong>NOTE this MUST be called last in the Resource.init() method to ensure all topics get registered</strong>
+         * </br>
+         * FixedTopicSet will be set based on the value returned from the {@see TopicSpaceSet#isFixed()} method.
+         * </br>
+         * Topic will have all root topics in the TopicSpaceSet, set to Simple dialect AND all child topics set ot
+         * Concrete dialect.
+         * </br>
+         *
+         * TopicExpressionDialects will be set to the engine's known Topic Dialects acquired from the TopicExpressionEngine
+         *
+         * @param topicSpaceSet
+         * @param propSet
+         */
+        org.apache.ws.notification.topics.util.TopicUtils.initNotificationProducerProperties(getTopicSpaceSet(), getResourcePropertySet());
     }
-
-
 
 }

Modified: incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/blackberry/BlackberryService.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/blackberry/BlackberryService.java?rev=178231&r1=178230&r2=178231&view=diff
==============================================================================
--- incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/blackberry/BlackberryService.java (original)
+++ incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/blackberry/BlackberryService.java Tue May 24 11:34:57 2005
@@ -7,38 +7,37 @@
  * If there is a change to the WSDL, then the generated implemented interfaces
  * (representing the "base" portTypes) will change, thus showing a compile error to the
  * user.
- *
+ * <p/>
  * NOTE: This class is generated. However, it will not be overwritten by subsequent
- *       calls to the code generator.
- *
+ * calls to the code generator.
  */
 public class BlackberryService
-   extends AbstractBlackberryService 
-   implements BlackberryCustomOperationsPortType
+        extends AbstractBlackberryService
+        implements BlackberryCustomOperationsPortType
 {
 
-   private ResourceContext m_resourceContext;
+    private ResourceContext m_resourceContext;
 
-   /**
-    * Creates a new {@link BlackberryService } object.
-    *
-    * @param resourceContext DOCUMENT_ME
-    */
-   public BlackberryService( ResourceContext resourceContext )
-   {
-      m_resourceContext = resourceContext;
-      init();
-   }
+    /**
+     * Creates a new {@link BlackberryService } object.
+     *
+     * @param resourceContext DOCUMENT_ME
+     */
+    public BlackberryService(ResourceContext resourceContext)
+    {
+        m_resourceContext = resourceContext;
+        init();
+    }
+
+    /**
+     * DOCUMENT_ME
+     *
+     * @return DOCUMENT_ME
+     */
+    public ResourceContext getResourceContext()
+    {
+        return m_resourceContext;
+    }
 
-   /**
-    * DOCUMENT_ME
-    *
-    * @return DOCUMENT_ME
-    */
-   public ResourceContext getResourceContext(  )
-   {
-      return m_resourceContext;
-   }
 
-      
 }

Modified: incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/blackberry/Blackberry_jndi-config.xml
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/blackberry/Blackberry_jndi-config.xml?rev=178231&r1=178230&r2=178231&view=diff
==============================================================================
--- incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/blackberry/Blackberry_jndi-config.xml (original)
+++ incubator/muse/trunk/src/site/content/interop/src/java/org/apache/ws/resource/example/blackberry/Blackberry_jndi-config.xml Tue May 24 11:34:57 2005
@@ -2,29 +2,29 @@
 
 <jndiConfig xmlns="http://www.apache.org/wsfx/wsrf/jndi/config">
 
-   <service name="blackberry">
-      <resource name="home" type="org.apache.ws.resource.example.blackberry.BlackberryHome">
-         <resourceParams>
-            <parameter>
-               <name>serviceClassName</name>
-               <value>org.apache.ws.resource.example.blackberry.BlackberryService</value>
-            </parameter>
-            <parameter>
-               <name>resourceClassName</name>
-               <value>org.apache.ws.resource.example.blackberry.BlackberryResource</value>
-            </parameter>
-            <parameter>
-               <name>wsdlTargetNamespace</name>
-               <value>http://ws.apache.org/resource/example/blackberry</value>
-            </parameter>
-            
-                        <parameter>
-               <name>resourceKeyName</name>
-               <value>{http://ws.apache.org/resource/example/blackberry}ResourceID</value>
-            </parameter>
-                     </resourceParams>
-      </resource>
-   </service>
+    <service name="blackberry">
+        <resource name="home" type="org.apache.ws.resource.example.blackberry.BlackberryHome">
+            <resourceParams>
+                <parameter>
+                    <name>serviceClassName</name>
+                    <value>org.apache.ws.resource.example.blackberry.BlackberryService</value>
+                </parameter>
+                <parameter>
+                    <name>resourceClassName</name>
+                    <value>org.apache.ws.resource.example.blackberry.BlackberryResource</value>
+                </parameter>
+                <parameter>
+                    <name>wsdlTargetNamespace</name>
+                    <value>http://ws.apache.org/resource/example/blackberry</value>
+                </parameter>
+
+                <parameter>
+                    <name>resourceKeyName</name>
+                    <value>{http://ws.apache.org/resource/example/blackberry}ResourceID</value>
+                </parameter>
+            </resourceParams>
+        </resource>
+    </service>
 
 </jndiConfig>
 

Modified: incubator/muse/trunk/src/site/content/interop/src/java/org/everest/AbstractWeatherStationSoapResource.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/interop/src/java/org/everest/AbstractWeatherStationSoapResource.java?rev=178231&r1=178230&r2=178231&view=diff
==============================================================================
--- incubator/muse/trunk/src/site/content/interop/src/java/org/everest/AbstractWeatherStationSoapResource.java (original)
+++ incubator/muse/trunk/src/site/content/interop/src/java/org/everest/AbstractWeatherStationSoapResource.java Tue May 24 11:34:57 2005
@@ -1,45 +1,50 @@
-
 package org.everest;
 
+import org.apache.ws.addressing.EndpointReference;
+
 /**
  * An abstract WeatherStationSoap WS-Resource.
  * <p/>
- * NOTE: This class is generated and is NOT meant to be modified. 
+ * NOTE: This class is generated and is NOT meant to be modified.
  */
-public abstract class AbstractWeatherStationSoapResource  implements org.apache.ws.resource.Resource {
-    
+public abstract class AbstractWeatherStationSoapResource implements org.apache.ws.resource.Resource
+{
+
     /**
      * The resource ID of the instance.
      */
     protected String m_id;
 
-            
-    
+    /**
+     * The EndpointReference for this resource *
+     */
+    protected EndpointReference m_endpointReference;
+
     /**
      * A list of termination listeners to be notified when the resource is terminated.
      */
-    private java.util.List m_terminationListeners = new java.util.ArrayList(); 
-     
-     
+    private java.util.List m_terminationListeners = new java.util.ArrayList();
+
+
     /**
      * DOCUMENT_ME
      *
      * @param id DOCUMENT_ME
      */
-    public void setID( Object id )
+    public void setID(Object id)
     {
-        if ( m_id != null )
+        if (m_id != null)
         {
-            throw new IllegalStateException( "This resource's ID has already been set." );
+            throw new IllegalStateException("This resource's ID has already been set.");
         }
 
         try
         {
             m_id = (String) id;
         }
-        catch ( ClassCastException cce )
+        catch (ClassCastException cce)
         {
-            throw new IllegalArgumentException( "Specified ID is not a String." );
+            throw new IllegalArgumentException("Specified ID is not a String.");
         }
     }
 
@@ -48,9 +53,9 @@
      *
      * @param listener DOCUMENT_ME
      */
-    public void addTerminationListener( org.apache.ws.resource.lifetime.ResourceTerminationListener listener)
-    {         
-         m_terminationListeners.add(listener);
+    public void addTerminationListener(org.apache.ws.resource.lifetime.ResourceTerminationListener listener)
+    {
+        m_terminationListeners.add(listener);
     }
 
     /**
@@ -65,21 +70,42 @@
 
     public void destroy()
     {
-	org.apache.ws.resource.lifetime.ResourceTerminationEvent rte = new org.apache.ws.resource.lifetime.impl.ResourceTerminationEventImpl(getID(),"Resource Destroyed");
-	for (int i = 0; i < m_terminationListeners.size(); i++)
-	{
-	    org.apache.ws.resource.lifetime.ResourceTerminationListener resourceTerminationEventListener = (org.apache.ws.resource.lifetime.ResourceTerminationListener) m_terminationListeners.get(i);
-	    resourceTerminationEventListener.terminationOccurred(rte);
-	}     
+        org.apache.ws.resource.lifetime.ResourceTerminationEvent rte = new org.apache.ws.resource.lifetime.impl.ResourceTerminationEventImpl(getID(), "Resource Destroyed");
+        for (int i = 0; i < m_terminationListeners.size(); i++)
+        {
+            org.apache.ws.resource.lifetime.ResourceTerminationListener resourceTerminationEventListener = (org.apache.ws.resource.lifetime.ResourceTerminationListener) m_terminationListeners.get(i);
+            resourceTerminationEventListener.terminationOccurred(rte);
+        }
         return;
     }
 
     public void init()
     {
-                
-        	
-              
+
+
+    }
+
+    /**
+     * Returns the EndpointReference associated with this Resource.
+     *
+     * @return The Resource's EndpointReference or null if the EndpointReference has not been set.
+     *         <p/>
+     *         Note: It is the responsibility of the Resource creator to set the EndpointReference (i.e. ResourceHome impl)
+     */
+    public EndpointReference getEndpointReference()
+    {
+        return m_endpointReference;
     }
 
-      
+    /**
+     * Sets the EndpointReference associated with this Resource.
+     *
+     * @param epr The Resource's EndpointReference.
+     *            <p/>
+     *            Note: It is the responsibility of the Resource creator to set the EndpointReference (i.e. ResourceHome impl)
+     */
+    public void setEndpointReference(EndpointReference epr)
+    {
+        m_endpointReference = epr;
+    }
 }

Modified: incubator/muse/trunk/src/site/content/interop/src/java/org/everest/AbstractWeatherStationSoapService.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/interop/src/java/org/everest/AbstractWeatherStationSoapService.java?rev=178231&r1=178230&r2=178231&view=diff
==============================================================================
--- incubator/muse/trunk/src/site/content/interop/src/java/org/everest/AbstractWeatherStationSoapService.java (original)
+++ incubator/muse/trunk/src/site/content/interop/src/java/org/everest/AbstractWeatherStationSoapService.java Tue May 24 11:34:57 2005
@@ -1,4 +1,3 @@
-
 package org.everest;
 
 import org.apache.ws.resource.ResourceContext;
@@ -10,82 +9,81 @@
 /**
  * This class should be generated on every "generation" against the WSDL.
  * This will ensure it is always up-to-date with the WSDL.
- *
+ * <p/>
  * NOTE: This class is generated and is NOT meant to be modified.
  */
 public abstract class AbstractWeatherStationSoapService
-    implements org.apache.ws.resource.handler.WsrfService, org.apache.ws.mows.v1_0.capability.ManageabilityReferencesCapability {
-
-   public static final String TARGET_NSURI = "http://everest.org/";
-   public static final String TARGET_NSPREFIX = "everest.org";
+        implements org.apache.ws.resource.handler.WsrfService, org.apache.ws.mows.v1_0.capability.ManageabilityReferencesCapability
+{
 
-   /**
-    * DOCUMENT_ME
-    */
-   private ServiceSoapMethodNameMap m_methodNameMap;
-
-   /**
-    * DOCUMENT_ME
-    */
-   private boolean m_isInitialized;
-
-   /**
-    * DOCUMENT_ME
-    *
-    * @param requestQname DOCUMENT_ME
-    *
-    * @return DOCUMENT_ME
-    */
-   public String getMethodName( QName requestQname )
-   {
-      if ( !m_isInitialized )
-      {
-         init(  );
-      }
-
-      return m_methodNameMap.getMethodName( requestQname );
-   }
-
-   /**
-    * DOCUMENT_ME
-    *
-    * @return DOCUMENT_ME
-    */
-   public abstract ResourceContext getResourceContext(  );
-
-   /**
-    * DOCUMENT_ME
-    *
-    * @return DOCUMENT_ME
-    */
-   public final SoapMethodNameMap getMethodNameMap(  )
-   {
-      return m_methodNameMap;
-   }
-   
-      /**
-       * DOCUMENT_ME
-       */
-   public void init(  )
-   {
-      m_methodNameMap    = new ServiceSoapMethodNameMap( getResourceContext(  ) );
-      m_methodNameMap.addMapping( javax.xml.namespace.QName.valueOf("{http://everest.org/}GetCurrentTemperature") , "GetCurrentTemperature" );
-      m_isInitialized      = true;
-   }
-   
-   
-      /**
-       * DOCUMENT_ME
-       *
-       * @return DOCUMENT_ME
-       */
-   protected final boolean isInitialized(  )
-   {
-         return m_isInitialized;
-   }
+    public static final String TARGET_NSURI = "http://everest.org/";
+    public static final String TARGET_NSPREFIX = "everest.org";
 
+    /**
+     * DOCUMENT_ME
+     */
+    private ServiceSoapMethodNameMap m_methodNameMap;
+
+    /**
+     * DOCUMENT_ME
+     */
+    private boolean m_isInitialized;
+
+    /**
+     * DOCUMENT_ME
+     *
+     * @param requestQname DOCUMENT_ME
+     * @return DOCUMENT_ME
+     */
+    public String getMethodName(QName requestQname)
+    {
+        if (!m_isInitialized)
+        {
+            init();
+        }
+
+        return m_methodNameMap.getMethodName(requestQname);
+    }
+
+    /**
+     * DOCUMENT_ME
+     *
+     * @return DOCUMENT_ME
+     */
+    public abstract ResourceContext getResourceContext();
+
+    /**
+     * DOCUMENT_ME
+     *
+     * @return DOCUMENT_ME
+     */
+    public final SoapMethodNameMap getMethodNameMap()
+    {
+        return m_methodNameMap;
+    }
+
+    /**
+     * DOCUMENT_ME
+     */
+    public void init()
+    {
+        m_methodNameMap = new ServiceSoapMethodNameMap(getResourceContext());
+        m_methodNameMap.addMapping(javax.xml.namespace.QName.valueOf("{http://everest.org/}GetCurrentTemperature"), "GetCurrentTemperature");
+        m_isInitialized = true;
+    }
+
+
+    /**
+     * DOCUMENT_ME
+     *
+     * @return DOCUMENT_ME
+     */
+    protected final boolean isInitialized()
+    {
+        return m_isInitialized;
+    }
 
 
-public abstract org.oasisOpen.docs.wsdm.x2004.x12.mows.wsdmMows.GetManageabilityReferencesResponseDocument getManageabilityReferences (org.oasisOpen.docs.wsdm.x2004.x12.mows.wsdmMows.GetManageabilityReferencesDocument request);
+    public abstract org.oasisOpen.docs.wsdm.x2004.x12.mows.wsdmMows.GetManageabilityReferencesResponseDocument getManageabilityReferences(org.oasisOpen.docs.wsdm.x2004.x12.mows.wsdmMows.GetManageabilityReferencesDocument request);
 
 }

Modified: incubator/muse/trunk/src/site/content/interop/src/java/org/everest/WeatherStationSoapCustomOperationsPortType.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/interop/src/java/org/everest/WeatherStationSoapCustomOperationsPortType.java?rev=178231&r1=178230&r2=178231&view=diff
==============================================================================
--- incubator/muse/trunk/src/site/content/interop/src/java/org/everest/WeatherStationSoapCustomOperationsPortType.java (original)
+++ incubator/muse/trunk/src/site/content/interop/src/java/org/everest/WeatherStationSoapCustomOperationsPortType.java Tue May 24 11:34:57 2005
@@ -1,15 +1,13 @@
-
 package org.everest;
 
 /**
  * Custom operations portType.
- *
+ * <p/>
  * NOTE: This class is generated and is NOT meant to be modified.
- *
  */
 public interface WeatherStationSoapCustomOperationsPortType
 {
-   
-      public org.everest.GetCurrentTemperatureResponseDocument GetCurrentTemperature( org.everest.GetCurrentTemperatureDocument requestDoc ) ;       
-   
+
+    public org.everest.GetCurrentTemperatureResponseDocument GetCurrentTemperature(org.everest.GetCurrentTemperatureDocument requestDoc);
+
 }

Modified: incubator/muse/trunk/src/site/content/interop/src/java/org/everest/WeatherStationSoapHome.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/interop/src/java/org/everest/WeatherStationSoapHome.java?rev=178231&r1=178230&r2=178231&view=diff
==============================================================================
--- incubator/muse/trunk/src/site/content/interop/src/java/org/everest/WeatherStationSoapHome.java (original)
+++ incubator/muse/trunk/src/site/content/interop/src/java/org/everest/WeatherStationSoapHome.java Tue May 24 11:34:57 2005
@@ -8,6 +8,7 @@
 import org.apache.ws.resource.ResourceUnknownException;
 import org.apache.ws.resource.impl.AbstractResourceHome;
 
+import javax.xml.namespace.QName;
 import java.io.Serializable;
 
 /**
@@ -19,32 +20,79 @@
 {
 
     /**
+     * The service endpoint name as registered with the SOAP Platform.  This is useful for building EPR's. *
+     */
+    public static final QName SERVICE_NAME = javax.xml.namespace.QName.valueOf("{http://everest.org/}WeatherStationSoap");
+
+    /**
+     * The management PortType associated with this resource. This is useful for building EPR's.*
+     */
+    public static final QName PORT_TYPE = javax.xml.namespace.QName.valueOf("{http://everest.org/}WeatherStationSoap");
+
+    /**
+     * The WSDL Port name associated with the resource. This is useful for building EPR's. *
+     */
+    public static final String PORT_NAME = "WeatherStationSoap";
+
+    /**
+     * The name of the resource key for this resource. *
+     */
+    public static final QName RESOURCE_KEY_NAME = javax.xml.namespace.QName.valueOf("{${resourcekey.NamespaceURI}}${resourcekey.LocalPart}");
+
+    /**
+     * A NamespaceVerionHolder which maintains the QNames of Spec Wsdls
+     */
+    public static final org.apache.ws.muws.v1_0.impl.WsdmNamespaceVersionHolderImpl SPEC_NAMESPACE_SET = new org.apache.ws.muws.v1_0.impl.WsdmNamespaceVersionHolderImpl();
+    /**
+     * A constant for the JNDI Lookup name for this home. *
+     */
+    public static final String HOME_LOCATION =
+            org.apache.ws.resource.JndiConstants.CONTEXT_NAME_SERVICES + "/" + SERVICE_NAME.getLocalPart() + "/" + org.apache.ws.resource.JndiConstants.ATOMIC_NAME_HOME;
+
+    /**
      * TODO
      *
      * @param resourceContext DOCUMENT_ME
-     *
      * @return DOCUMENT_ME
-     *
      * @throws ResourceException        DOCUMENT_ME
      * @throws ResourceContextException DOCUMENT_ME
      * @throws ResourceUnknownException DOCUMENT_ME
      */
-    public Resource getInstance( ResourceContext resourceContext )
+    public Resource getInstance(ResourceContext resourceContext)
             throws ResourceException,
-            ResourceContextException,
-            ResourceUnknownException
+                   ResourceContextException,
+                   ResourceUnknownException
     {
         ResourceKey key = resourceContext.getResourceKey();
         Resource resource = null;
         try
         {
-            resource = find( key );
+            resource = find(key);
         }
-        catch ( ResourceException re )
+        catch (ResourceException re)
         {
             //todo add any checking for key validity
         }
         return resource;
     }
 
+    public QName getServiceName()
+    {
+        return SERVICE_NAME;
+    }
+
+    public QName getPortType()
+    {
+        return PORT_TYPE;
+    }
+
+    public String getServicePortName()
+    {
+        return PORT_NAME;
+    }
+
+    public QName getResourceKeyNameQName()
+    {
+        return RESOURCE_KEY_NAME;
+    }
 }

Modified: incubator/muse/trunk/src/site/content/interop/src/java/org/everest/WeatherStationSoapResource.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/interop/src/java/org/everest/WeatherStationSoapResource.java?rev=178231&r1=178230&r2=178231&view=diff
==============================================================================
--- incubator/muse/trunk/src/site/content/interop/src/java/org/everest/WeatherStationSoapResource.java (original)
+++ incubator/muse/trunk/src/site/content/interop/src/java/org/everest/WeatherStationSoapResource.java Tue May 24 11:34:57 2005
@@ -1,4 +1,3 @@
-
 package org.everest;
 
 /**
@@ -10,7 +9,7 @@
 
 {
 
-    
+
     /**
      * Initializes this resource's state (properties, etc.).
      */

Modified: incubator/muse/trunk/src/site/content/interop/src/java/org/everest/WeatherStationSoapService.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/interop/src/java/org/everest/WeatherStationSoapService.java?rev=178231&r1=178230&r2=178231&view=diff
==============================================================================
--- incubator/muse/trunk/src/site/content/interop/src/java/org/everest/WeatherStationSoapService.java (original)
+++ incubator/muse/trunk/src/site/content/interop/src/java/org/everest/WeatherStationSoapService.java Tue May 24 11:34:57 2005
@@ -32,9 +32,7 @@
 
 import javax.naming.InitialContext;
 import javax.xml.namespace.QName;
-import java.util.ArrayList;
 import java.util.Calendar;
-import java.util.List;
 
 /**
  * This class should be generated ONCE (and not overwritten) to maintain user-added code. If there is a change to the
@@ -55,7 +53,7 @@
      *
      * @param resourceContext DOCUMENT_ME
      */
-    public WeatherStationSoapService( ResourceContext resourceContext )
+    public WeatherStationSoapService(ResourceContext resourceContext)
     {
         m_resourceContext = resourceContext;
         init();
@@ -71,52 +69,43 @@
         return m_resourceContext;
     }
 
-    public GetManageabilityReferencesResponseDocument getManageabilityReferences(
-            GetManageabilityReferencesDocument request )
+    public GetManageabilityReferencesResponseDocument getManageabilityReferences(GetManageabilityReferencesDocument request)
     {
         GetManageabilityReferencesResponseDocument getManageabilityReferencesResponseDocument = GetManageabilityReferencesResponseDocument.Factory.newInstance();
         GetManageabilityReferencesResponseDocument.GetManageabilityReferencesResponse getManageabilityReferencesResponse = getManageabilityReferencesResponseDocument.addNewGetManageabilityReferencesResponse();
-        QName resourceKeyName = QName.valueOf(
-                "{" + WeatherstationPropertyQNames.FCCID.getNamespaceURI() + "}ResourceID" );
+        QName resourceKeyName = QName.valueOf("{" + WeatherstationPropertyQNames.FCCID.getNamespaceURI() + "}ResourceID");
         EndpointReferenceType endpointReferenceType = getManageabilityReferencesResponse.addNewManageabilityEndpointReference();
         AttributedURI attributedURI = endpointReferenceType.addNewAddress();
-        attributedURI.setStringValue(
-                InteropConstants.SERVICES_URL + "/" + InteropConstants.WEATHERSTATION_SERVICE_NAME );
+        attributedURI.setStringValue(InteropConstants.SERVICES_URL + "/" + InteropConstants.WEATHERSTATION_SERVICE_NAME);
         ReferencePropertiesType referencePropertiesType = endpointReferenceType.addNewReferenceProperties();
-        XmlObject key1 = XmlBeanUtils.addChildElement( referencePropertiesType, resourceKeyName );
-        XmlBeanUtils.setValue( key1, InteropConstants.WEATHERSTATION_KEY1 );
+        XmlObject key1 = XmlBeanUtils.addChildElement(referencePropertiesType, resourceKeyName);
+        XmlBeanUtils.setValue(key1, InteropConstants.WEATHERSTATION_KEY1);
 
         EndpointReferenceType endpointReferenceType2 = getManageabilityReferencesResponse.addNewManageabilityEndpointReference();
         attributedURI = endpointReferenceType2.addNewAddress();
-        attributedURI.setStringValue(
-                InteropConstants.SERVICES_URL + "/" + InteropConstants.WEATHERSTATION_SERVICE_NAME );
+        attributedURI.setStringValue(InteropConstants.SERVICES_URL + "/" + InteropConstants.WEATHERSTATION_SERVICE_NAME);
         referencePropertiesType = endpointReferenceType2.addNewReferenceProperties();
-        key1 = XmlBeanUtils.addChildElement( referencePropertiesType, resourceKeyName );
-        XmlBeanUtils.setValue( key1, InteropConstants.WEATHERSTATION_KEY2 );
+        key1 = XmlBeanUtils.addChildElement(referencePropertiesType, resourceKeyName);
+        XmlBeanUtils.setValue(key1, InteropConstants.WEATHERSTATION_KEY2);
 
         return getManageabilityReferencesResponseDocument;
     }
 
-    public org.everest.GetCurrentTemperatureResponseDocument GetCurrentTemperature(
-            org.everest.GetCurrentTemperatureDocument getCurrentTemperatureRequestDoc )
+    public org.everest.GetCurrentTemperatureResponseDocument GetCurrentTemperature(org.everest.GetCurrentTemperatureDocument getCurrentTemperatureRequestDoc)
     {
         GetCurrentTemperatureResponseDocument getCurrentTemperatureResponseDocument = GetCurrentTemperatureResponseDocument.Factory.newInstance();
         GetCurrentTemperatureResponseDocument.GetCurrentTemperatureResponse getCurrentTemperatureResponse = getCurrentTemperatureResponseDocument.addNewGetCurrentTemperatureResponse();
-        Double aDouble = new Double( 101 );
-        getCurrentTemperatureResponse.setGetCurrentTemperatureResult( aDouble.doubleValue() );
+        Double aDouble = new Double(101);
+        getCurrentTemperatureResponse.setGetCurrentTemperatureResult(aDouble.doubleValue());
 
         try
         {
             InitialContext initialContext = new InitialContext();
-            WeatherstationHome home = (WeatherstationHome) initialContext.lookup( WeatherstationHome.HOME_LOCATION );
-            SimpleTypeResourceKey simpleTypeResourceKey = new SimpleTypeResourceKey(
-                    new QName( WeatherstationPropertyQNames.FCCID.getNamespaceURI(), "ResourceID" ),
-                    InteropConstants.WEATHERSTATION_KEY1 );
-            WeatherstationResource resource = (WeatherstationResource) home.find( simpleTypeResourceKey );
-            List topicPath = new ArrayList();
-            topicPath.add( "RequestProcessingObservations" );
-            Topic topic = resource.getTopicSpaceSet().getTopicSpace( MowsConstants.NSURI_MOWS_TOPICS ).getTopic(
-                    topicPath );
+            WeatherstationHome home = (WeatherstationHome) initialContext.lookup(WeatherstationHome.HOME_LOCATION);
+            SimpleTypeResourceKey simpleTypeResourceKey = new SimpleTypeResourceKey(new QName(WeatherstationPropertyQNames.FCCID.getNamespaceURI(), "ResourceID"),
+                                                                                    InteropConstants.WEATHERSTATION_KEY1);
+            WeatherstationResource resource = (WeatherstationResource) home.find(simpleTypeResourceKey);
+            Topic topic = resource.getTopicSpaceSet().getTopicSpace(MowsConstants.NSURI_MOWS_TOPICS).getTopic("RequestProcessingObservations");
             Calendar currentTime = Calendar.getInstance();
 
             //RequestProcessingNotification
@@ -127,41 +116,40 @@
             MessageInformationType requestInformationType = notif.addNewRequest();
             MessageContentType requestMessage = requestInformationType.addNewMessage();
             AnyXmlContentsType requestAnyXmlContentsType = requestMessage.addNewXml();
-            XmlBeanUtils.addChildElement( requestAnyXmlContentsType, getCurrentTemperatureRequestDoc );
+            XmlBeanUtils.addChildElement(requestAnyXmlContentsType, getCurrentTemperatureRequestDoc);
 
             //reply message
             MessageInformationType replyInformationType = notif.addNewReply();
             MessageContentType replyMessage = replyInformationType.addNewMessage();
             AnyXmlContentsType replyAnyXmlContentsType = replyMessage.addNewXml();
-            XmlBeanUtils.addChildElement( replyAnyXmlContentsType, getCurrentTemperatureResponseDocument );
+            XmlBeanUtils.addChildElement(replyAnyXmlContentsType, getCurrentTemperatureResponseDocument);
 
             //todo flesh out
             //StateInformation
             RequestProcessingStateInformationType requestProcessingStateInformationType = notif.addNewStateInformation();
             StateTransitionType stateTransitionType = requestProcessingStateInformationType.addNewStateTransition();
 
-            XmlObject currentState = XmlObject.Factory.parse(
-                    "<tns:temp xmlns:tns=\"http://tempcentral.com/temps\">Cool</tns:temp>" );
+            XmlObject currentState = XmlObject.Factory.parse("<tns:temp xmlns:tns=\"http://tempcentral.com/temps\">Cool</tns:temp>");
 
             StateType enteredState = stateTransitionType.addNewEnteredState();
-            XmlBeanUtils.addChildElement( enteredState, currentState );
+            XmlBeanUtils.addChildElement(enteredState, currentState);
 
             StateType prevState = stateTransitionType.addNewPreviousState();
-            XmlBeanUtils.addChildElement( prevState, currentState );
+            XmlBeanUtils.addChildElement(prevState, currentState);
 
-            stateTransitionType.setTransitionIdentifier( "urn:NONE" );
-            stateTransitionType.setTime( currentTime );
-            notif.setCurrentTime( currentTime );
-
-            Situation situation = new SituationImpl( new CategoryImpl( MuwsConstants.SITUATION_OTHER ) );
-            XmlBeansManagementEvent xme = new XmlBeansManagementEvent( situation );
-            ManagementEventDocument mgmtEvent = (ManagementEventDocument) ( (XmlObjectWrapper) xme ).getXmlObject();
+            stateTransitionType.setTransitionIdentifier("urn:NONE");
+            stateTransitionType.setTime(currentTime);
+            notif.setCurrentTime(currentTime);
+
+            Situation situation = new SituationImpl(new CategoryImpl(MuwsConstants.SITUATION_OTHER));
+            XmlBeansManagementEvent xme = new XmlBeansManagementEvent(situation);
+            ManagementEventDocument mgmtEvent = (ManagementEventDocument) ((XmlObjectWrapper) xme).getXmlObject();
             org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ManagementEventType managementEvent = mgmtEvent.getManagementEvent();
-            XmlBeanUtils.addChildElement( managementEvent, notifDocument );
+            XmlBeanUtils.addChildElement(managementEvent, notifDocument);
 
-            topic.publish( mgmtEvent );
+            topic.publish(mgmtEvent);
         }
-        catch ( Exception e )
+        catch (Exception e)
         {
             e.printStackTrace();
         }

Modified: incubator/muse/trunk/src/site/content/interop/src/java/org/everest/WeatherStationSoap_jndi-config.xml
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/interop/src/java/org/everest/WeatherStationSoap_jndi-config.xml?rev=178231&r1=178230&r2=178231&view=diff
==============================================================================
--- incubator/muse/trunk/src/site/content/interop/src/java/org/everest/WeatherStationSoap_jndi-config.xml (original)
+++ incubator/muse/trunk/src/site/content/interop/src/java/org/everest/WeatherStationSoap_jndi-config.xml Tue May 24 11:34:57 2005
@@ -2,31 +2,31 @@
 
 <jndiConfig xmlns="http://www.apache.org/wsfx/wsrf/jndi/config">
 
-   <service name="WeatherStationSoap">
-      <resource name="home" type="org.everest.WeatherStationSoapHome">
-         <resourceParams>
-            <parameter>
-               <name>serviceClassName</name>
-               <value>org.everest.WeatherStationSoapService</value>
-            </parameter>
-            <parameter>
-               <name>resourceClassName</name>
-               <value>org.everest.WeatherStationSoapResource</value>
-            </parameter>
-            <parameter>
-               <name>wsdlTargetNamespace</name>
-               <value>http://everest.org/</value>
-            </parameter>
-            
-            <parameter>
-               <name>resourceKeyName</name>
-               <value>{http://everest.org/}ResourceID</value>
-            </parameter>
-            
+    <service name="WeatherStationSoap">
+        <resource name="home" type="org.everest.WeatherStationSoapHome">
+            <resourceParams>
+                <parameter>
+                    <name>serviceClassName</name>
+                    <value>org.everest.WeatherStationSoapService</value>
+                </parameter>
+                <parameter>
+                    <name>resourceClassName</name>
+                    <value>org.everest.WeatherStationSoapResource</value>
+                </parameter>
+                <parameter>
+                    <name>wsdlTargetNamespace</name>
+                    <value>http://everest.org/</value>
+                </parameter>
 
-         </resourceParams>
-      </resource>
-   </service>
+                <parameter>
+                    <name>resourceKeyName</name>
+                    <value>{http://everest.org/}ResourceID</value>
+                </parameter>
+
+
+            </resourceParams>
+        </resource>
+    </service>
 
 </jndiConfig>
 

Modified: incubator/muse/trunk/src/site/content/interop/src/java/org/everestWeather/wsdm/samples/x2005/x04/schema/AbstractWeatherstationResource.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/interop/src/java/org/everestWeather/wsdm/samples/x2005/x04/schema/AbstractWeatherstationResource.java?rev=178231&r1=178230&r2=178231&view=diff
==============================================================================
--- incubator/muse/trunk/src/site/content/interop/src/java/org/everestWeather/wsdm/samples/x2005/x04/schema/AbstractWeatherstationResource.java (original)
+++ incubator/muse/trunk/src/site/content/interop/src/java/org/everestWeather/wsdm/samples/x2005/x04/schema/AbstractWeatherstationResource.java Tue May 24 11:34:57 2005
@@ -1,49 +1,56 @@
-
 package org.everestWeather.wsdm.samples.x2005.x04.schema;
 
+import org.apache.ws.addressing.EndpointReference;
+
 /**
  * An abstract Weatherstation WS-Resource.
  * <p/>
- * NOTE: This class is generated and is NOT meant to be modified. 
+ * NOTE: This class is generated and is NOT meant to be modified.
  */
-public abstract class AbstractWeatherstationResource  implements org.apache.ws.resource.PropertiesResource, org.apache.ws.notification.base.NotificationProducerResource {
-    
+public abstract class AbstractWeatherstationResource implements org.apache.ws.resource.PropertiesResource, org.apache.ws.notification.base.NotificationProducerResource
+{
+
     /**
      * The resource ID of the instance.
      */
     protected String m_id;
 
-        /**
+    /**
+     * The EndpointReference for this resource *
+     */
+    protected EndpointReference m_endpointReference;
+
+    /**
      * The set of properties associated with this resource.
      */
     protected org.apache.ws.resource.properties.ResourcePropertySet m_propSet;
-            
-    
+
+
     /**
      * A list of termination listeners to be notified when the resource is terminated.
      */
-    private java.util.List m_terminationListeners = new java.util.ArrayList(); 
-     
-     
+    private java.util.List m_terminationListeners = new java.util.ArrayList();
+
+
     /**
      * DOCUMENT_ME
      *
      * @param id DOCUMENT_ME
      */
-    public void setID( Object id )
+    public void setID(Object id)
     {
-        if ( m_id != null )
+        if (m_id != null)
         {
-            throw new IllegalStateException( "This resource's ID has already been set." );
+            throw new IllegalStateException("This resource's ID has already been set.");
         }
 
         try
         {
             m_id = (String) id;
         }
-        catch ( ClassCastException cce )
+        catch (ClassCastException cce)
         {
-            throw new IllegalArgumentException( "Specified ID is not a String." );
+            throw new IllegalArgumentException("Specified ID is not a String.");
         }
     }
 
@@ -52,9 +59,9 @@
      *
      * @param listener DOCUMENT_ME
      */
-    public void addTerminationListener( org.apache.ws.resource.lifetime.ResourceTerminationListener listener)
-    {         
-         m_terminationListeners.add(listener);
+    public void addTerminationListener(org.apache.ws.resource.lifetime.ResourceTerminationListener listener)
+    {
+        m_terminationListeners.add(listener);
     }
 
     /**
@@ -69,38 +76,38 @@
 
     public void destroy()
     {
-	org.apache.ws.resource.lifetime.ResourceTerminationEvent rte = new org.apache.ws.resource.lifetime.impl.ResourceTerminationEventImpl(getID(),"Resource Destroyed");
-	for (int i = 0; i < m_terminationListeners.size(); i++)
-	{
-	    org.apache.ws.resource.lifetime.ResourceTerminationListener resourceTerminationEventListener = (org.apache.ws.resource.lifetime.ResourceTerminationListener) m_terminationListeners.get(i);
-	    resourceTerminationEventListener.terminationOccurred(rte);
-	}     
+        org.apache.ws.resource.lifetime.ResourceTerminationEvent rte = new org.apache.ws.resource.lifetime.impl.ResourceTerminationEventImpl(getID(), "Resource Destroyed");
+        for (int i = 0; i < m_terminationListeners.size(); i++)
+        {
+            org.apache.ws.resource.lifetime.ResourceTerminationListener resourceTerminationEventListener = (org.apache.ws.resource.lifetime.ResourceTerminationListener) m_terminationListeners.get(i);
+            resourceTerminationEventListener.terminationOccurred(rte);
+        }
         return;
     }
 
     public void init()
     {
-                
-                org.everestWeather.wsdm.samples.x2005.x04.schema.WeatherStationPropertiesDocument propsDoc = org.everestWeather.wsdm.samples.x2005.x04.schema.WeatherStationPropertiesDocument.Factory.newInstance();
-        m_propSet = new org.apache.ws.resource.properties.impl.XmlBeansResourcePropertySet( propsDoc );
-		
-                
-	// initialize wsrl:Topic property
-	// TODO
-
-	// initialize wsrl:FixedTopicSet property
-	// TODO
-
-	// initialize wsrl:TopicExpressionDialects property
-	// TODO
-	
-              
+
+        org.everestWeather.wsdm.samples.x2005.x04.schema.WeatherStationPropertiesDocument propsDoc = org.everestWeather.wsdm.samples.x2005.x04.schema.WeatherStationPropertiesDocument.Factory.newInstance();
+        m_propSet = new org.apache.ws.resource.properties.impl.XmlBeansResourcePropertySet(propsDoc);
+
+
+        // initialize wsrl:Topic property
+        // TODO
+
+        // initialize wsrl:FixedTopicSet property
+        // TODO
+
+        // initialize wsrl:TopicExpressionDialects property
+        // TODO
+
+
     }
 
     /**
      * @see org.apache.ws.resource.PropertiesResource#setResourcePropertySet(org.apache.ws.resource.properties.ResourcePropertySet)
      */
-    public void setResourcePropertySet( org.apache.ws.resource.properties.ResourcePropertySet propSet )
+    public void setResourcePropertySet(org.apache.ws.resource.properties.ResourcePropertySet propSet)
     {
         m_propSet = propSet;
     }
@@ -111,12 +118,36 @@
     public org.apache.ws.resource.properties.ResourcePropertySet getResourcePropertySet()
     {
         return m_propSet;
-    }	
-	org.apache.ws.notification.topics.TopicSpaceSet m_topicSpaceSet = new org.apache.ws.notification.topics.impl.TopicSpaceSetImpl();
-	
-	public org.apache.ws.notification.topics.TopicSpaceSet getTopicSpaceSet() 
-	{
-		return m_topicSpaceSet;
-	}
-      
+    }
+
+    org.apache.ws.notification.topics.TopicSpaceSet m_topicSpaceSet = new org.apache.ws.notification.topics.impl.TopicSpaceSetImpl(true);
+
+    public org.apache.ws.notification.topics.TopicSpaceSet getTopicSpaceSet()
+    {
+        return m_topicSpaceSet;
+    }
+
+    /**
+     * Returns the EndpointReference associated with this Resource.
+     *
+     * @return The Resource's EndpointReference or null if the EndpointReference has not been set.
+     *         <p/>
+     *         Note: It is the responsibility of the Resource creator to set the EndpointReference (i.e. ResourceHome impl)
+     */
+    public EndpointReference getEndpointReference()
+    {
+        return m_endpointReference;
+    }
+
+    /**
+     * Sets the EndpointReference associated with this Resource.
+     *
+     * @param epr The Resource's EndpointReference.
+     *            <p/>
+     *            Note: It is the responsibility of the Resource creator to set the EndpointReference (i.e. ResourceHome impl)
+     */
+    public void setEndpointReference(EndpointReference epr)
+    {
+        m_endpointReference = epr;
+    }
 }

Modified: incubator/muse/trunk/src/site/content/interop/src/java/org/everestWeather/wsdm/samples/x2005/x04/schema/AbstractWeatherstationService.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/interop/src/java/org/everestWeather/wsdm/samples/x2005/x04/schema/AbstractWeatherstationService.java?rev=178231&r1=178230&r2=178231&view=diff
==============================================================================
--- incubator/muse/trunk/src/site/content/interop/src/java/org/everestWeather/wsdm/samples/x2005/x04/schema/AbstractWeatherstationService.java (original)
+++ incubator/muse/trunk/src/site/content/interop/src/java/org/everestWeather/wsdm/samples/x2005/x04/schema/AbstractWeatherstationService.java Tue May 24 11:34:57 2005
@@ -1,4 +1,3 @@
-
 package org.everestWeather.wsdm.samples.x2005.x04.schema;
 
 import org.apache.ws.muws.v1_0.capability.impl.RelationshipsCapabilityImpl;
@@ -13,129 +12,126 @@
 /**
  * This class should be generated on every "generation" against the WSDL.
  * This will ensure it is always up-to-date with the WSDL.
- *
+ * <p/>
  * NOTE: This class is generated and is NOT meant to be modified.
  */
 public abstract class AbstractWeatherstationService
-    implements org.apache.ws.resource.handler.WsrfService, org.apache.ws.resource.properties.v2004_06.porttype.GetMultipleResourcePropertiesPortType, org.apache.ws.resource.properties.v2004_06.porttype.GetResourcePropertyPortType, org.apache.ws.notification.base.v2004_6.porttype.NotificationProducerPortType {
+        implements org.apache.ws.resource.handler.WsrfService, org.apache.ws.resource.properties.v2004_06.porttype.GetMultipleResourcePropertiesPortType, org.apache.ws.resource.properties.v2004_06.porttype.GetResourcePropertyPortType, org.apache.ws.notification.base.v2004_06.porttype.NotificationProducerPortType
+{
 
-   public static final String TARGET_NSURI = "http://everest-weather.org/wsdm/samples/2005/04/schema";
-   public static final String TARGET_NSPREFIX = "schema";
+    public static final String TARGET_NSURI = "http://everest-weather.org/wsdm/samples/2005/04/schema";
+    public static final String TARGET_NSPREFIX = "schema";
 
-   /**
-    * DOCUMENT_ME
-    */
-   private ServiceSoapMethodNameMap m_methodNameMap;
-
-   /**
-    * DOCUMENT_ME
-    */
-   private boolean m_isInitialized;
-
-   /**
-    * DOCUMENT_ME
-    *
-    * @param requestQname DOCUMENT_ME
-    *
-    * @return DOCUMENT_ME
-    */
-   public String getMethodName( QName requestQname )
-   {
-      if ( !m_isInitialized )
-      {
-         init(  );
-      }
-
-      return m_methodNameMap.getMethodName( requestQname );
-   }
-
-   /**
-    * DOCUMENT_ME
-    *
-    * @return DOCUMENT_ME
-    */
-   public abstract ResourceContext getResourceContext(  );
-
-   /**
-    * DOCUMENT_ME
-    *
-    * @return DOCUMENT_ME
-    */
-   public final SoapMethodNameMap getMethodNameMap(  )
-   {
-      return m_methodNameMap;
-   }
-   
-      /**
-       * DOCUMENT_ME
-       */
-   public void init(  )
-   {
-      m_methodNameMap    = new ServiceSoapMethodNameMap( getResourceContext(  ) );
-      m_isInitialized      = true;
-   }
-   
-   
-      /**
-       * DOCUMENT_ME
-       *
-       * @return DOCUMENT_ME
-       */
-   protected final boolean isInitialized(  )
-   {
-         return m_isInitialized;
-   }
-
-   /**
-    * DOCUMENT_ME
-    *
-    * @param requestDoc DOCUMENT_ME
-    *
-    * @return DOCUMENT_ME
-    */
-   public org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetMultipleResourcePropertiesResponseDocument getMultipleResourceProperties( org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetMultipleResourcePropertiesDocument requestDoc )
-   {
-      return new org.apache.ws.resource.properties.v2004_06.porttype.impl.GetMultipleResourcePropertiesPortTypeImpl( getResourceContext(  ) ).getMultipleResourceProperties( requestDoc );
-   }
-
-   /**
-    * DOCUMENT_ME
-    *
-    * @param requestDoc DOCUMENT_ME
-    *
-    * @return DOCUMENT_ME
-    */
-   public org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetResourcePropertyResponseDocument getResourceProperty( org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetResourcePropertyDocument requestDoc )
-   {
-      return new org.apache.ws.resource.properties.v2004_06.porttype.impl.GetResourcePropertyPortTypeImpl( getResourceContext(  ) ).getResourceProperty( requestDoc );
-   }
-   /**
-    * DOCUMENT_ME
-    *
-    * @param requestDoc DOCUMENT_ME
-    *
-    * @return DOCUMENT_ME
-    */
-   public org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.SubscribeResponseDocument subscribe( org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.SubscribeDocument requestDoc )
-   {        
-       return new org.apache.ws.notification.base.v2004_6.porttype.impl.NotificationProducerPortTypeImpl( getResourceContext(  ) ).subscribe( requestDoc );
-   }
-
-   /**
-    * DOCUMENT_ME
-    *
-    * @param requestDoc DOCUMENT_ME
-    *
-    * @return DOCUMENT_ME
-    */
-   public org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.GetCurrentMessageResponseDocument getCurrentMessage( org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.GetCurrentMessageDocument requestDoc )
-   {
-       return new org.apache.ws.notification.base.v2004_6.porttype.impl.NotificationProducerPortTypeImpl( getResourceContext(  ) ).getCurrentMessage( requestDoc );
-   }
-    
-   public QueryRelationshipsByTypeResponseDocument queryRelationshipsByType( QueryRelationshipsByTypeDocument requestDoc )
-   {
-       return new RelationshipsCapabilityImpl(getResourceContext()).queryRelationshipsByType(requestDoc);
-   }
+    /**
+     * DOCUMENT_ME
+     */
+    private ServiceSoapMethodNameMap m_methodNameMap;
+
+    /**
+     * DOCUMENT_ME
+     */
+    private boolean m_isInitialized;
+
+    /**
+     * DOCUMENT_ME
+     *
+     * @param requestQname DOCUMENT_ME
+     * @return DOCUMENT_ME
+     */
+    public String getMethodName(QName requestQname)
+    {
+        if (!m_isInitialized)
+        {
+            init();
+        }
+
+        return m_methodNameMap.getMethodName(requestQname);
+    }
+
+    /**
+     * DOCUMENT_ME
+     *
+     * @return DOCUMENT_ME
+     */
+    public abstract ResourceContext getResourceContext();
+
+    /**
+     * DOCUMENT_ME
+     *
+     * @return DOCUMENT_ME
+     */
+    public final SoapMethodNameMap getMethodNameMap()
+    {
+        return m_methodNameMap;
+    }
+
+    /**
+     * DOCUMENT_ME
+     */
+    public void init()
+    {
+        m_methodNameMap = new ServiceSoapMethodNameMap(getResourceContext());
+        m_isInitialized = true;
+    }
+
+
+    /**
+     * DOCUMENT_ME
+     *
+     * @return DOCUMENT_ME
+     */
+    protected final boolean isInitialized()
+    {
+        return m_isInitialized;
+    }
+
+    /**
+     * DOCUMENT_ME
+     *
+     * @param requestDoc DOCUMENT_ME
+     * @return DOCUMENT_ME
+     */
+    public org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetMultipleResourcePropertiesResponseDocument getMultipleResourceProperties(org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetMultipleResourcePropertiesDocument requestDoc)
+    {
+        return new org.apache.ws.resource.properties.v2004_06.porttype.impl.GetMultipleResourcePropertiesPortTypeImpl(getResourceContext()).getMultipleResourceProperties(requestDoc);
+    }
+
+    /**
+     * DOCUMENT_ME
+     *
+     * @param requestDoc DOCUMENT_ME
+     * @return DOCUMENT_ME
+     */
+    public org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetResourcePropertyResponseDocument getResourceProperty(org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetResourcePropertyDocument requestDoc)
+    {
+        return new org.apache.ws.resource.properties.v2004_06.porttype.impl.GetResourcePropertyPortTypeImpl(getResourceContext()).getResourceProperty(requestDoc);
+    }
+
+    /**
+     * DOCUMENT_ME
+     *
+     * @param requestDoc DOCUMENT_ME
+     * @return DOCUMENT_ME
+     */
+    public org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.SubscribeResponseDocument subscribe(org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.SubscribeDocument requestDoc)
+    {
+        return new org.apache.ws.notification.base.v2004_06.porttype.impl.NotificationProducerPortTypeImpl(getResourceContext()).subscribe(requestDoc);
+    }
+
+    /**
+     * DOCUMENT_ME
+     *
+     * @param requestDoc DOCUMENT_ME
+     * @return DOCUMENT_ME
+     */
+    public org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.GetCurrentMessageResponseDocument getCurrentMessage(org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.GetCurrentMessageDocument requestDoc)
+    {
+        return new org.apache.ws.notification.base.v2004_06.porttype.impl.NotificationProducerPortTypeImpl(getResourceContext()).getCurrentMessage(requestDoc);
+    }
+
+    public QueryRelationshipsByTypeResponseDocument queryRelationshipsByType(QueryRelationshipsByTypeDocument requestDoc)
+    {
+        return new RelationshipsCapabilityImpl(getResourceContext()).queryRelationshipsByType(requestDoc);
+    }
 
 }

Modified: incubator/muse/trunk/src/site/content/interop/src/java/org/everestWeather/wsdm/samples/x2005/x04/schema/WeatherstationCustomOperationsPortType.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/interop/src/java/org/everestWeather/wsdm/samples/x2005/x04/schema/WeatherstationCustomOperationsPortType.java?rev=178231&r1=178230&r2=178231&view=diff
==============================================================================
--- incubator/muse/trunk/src/site/content/interop/src/java/org/everestWeather/wsdm/samples/x2005/x04/schema/WeatherstationCustomOperationsPortType.java (original)
+++ incubator/muse/trunk/src/site/content/interop/src/java/org/everestWeather/wsdm/samples/x2005/x04/schema/WeatherstationCustomOperationsPortType.java Tue May 24 11:34:57 2005
@@ -1,14 +1,12 @@
-
 package org.everestWeather.wsdm.samples.x2005.x04.schema;
 
 /**
  * Custom operations portType.
- *
+ * <p/>
  * NOTE: This class is generated and is NOT meant to be modified.
- *
  */
 public interface WeatherstationCustomOperationsPortType
 {
-   
-   
+
+
 }

Modified: incubator/muse/trunk/src/site/content/interop/src/java/org/everestWeather/wsdm/samples/x2005/x04/schema/WeatherstationHome.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/interop/src/java/org/everestWeather/wsdm/samples/x2005/x04/schema/WeatherstationHome.java?rev=178231&r1=178230&r2=178231&view=diff
==============================================================================
--- incubator/muse/trunk/src/site/content/interop/src/java/org/everestWeather/wsdm/samples/x2005/x04/schema/WeatherstationHome.java (original)
+++ incubator/muse/trunk/src/site/content/interop/src/java/org/everestWeather/wsdm/samples/x2005/x04/schema/WeatherstationHome.java Tue May 24 11:34:57 2005
@@ -6,12 +6,11 @@
 import org.apache.ws.resource.ResourceException;
 import org.apache.ws.resource.ResourceKey;
 import org.apache.ws.resource.ResourceUnknownException;
-import org.apache.ws.resource.JndiConstants;
 import org.apache.ws.resource.example.InteropConstants;
 import org.apache.ws.resource.impl.AbstractResourceHome;
 
+import javax.xml.namespace.QName;
 import java.io.Serializable;
-import java.math.BigInteger;
 
 /**
  * Home for Weatherstation WS-Resources.
@@ -20,37 +19,60 @@
         extends AbstractResourceHome
         implements Serializable
 {
-    private static final String SERVICE_NAME  = "weatherstation";
+    /**
+     * The service endpoint name as registered with the SOAP Platform.  This is useful for building EPR's. *
+     */
+    public static final QName SERVICE_NAME = javax.xml.namespace.QName.valueOf("{http://everest-weather.org/wsdm/samples/2005/04/schema}weatherstation");
+
+    /**
+     * The management PortType associated with this resource. This is useful for building EPR's.*
+     */
+    public static final QName PORT_TYPE = javax.xml.namespace.QName.valueOf("{http://everest-weather.org/wsdm/samples/2005/04/schema}WeatherStationPortType");
+
+    /**
+     * The WSDL Port name associated with the resource. This is useful for building EPR's. *
+     */
+    public static final String PORT_NAME = "weatherstation";
+
+    /**
+     * The name of the resource key for this resource. *
+     */
+    public static final QName RESOURCE_KEY_NAME = javax.xml.namespace.QName.valueOf("{${resourcekey.NamespaceURI}}${resourcekey.LocalPart}");
 
-    public static final String  HOME_LOCATION =
-     JndiConstants.CONTEXT_NAME_SERVICES + "/" + SERVICE_NAME + "/" + JndiConstants.ATOMIC_NAME_HOME;
+    /**
+     * A NamespaceVerionHolder which maintains the QNames of Spec Wsdls
+     */
+    public static final org.apache.ws.muws.v1_0.impl.WsdmNamespaceVersionHolderImpl SPEC_NAMESPACE_SET = new org.apache.ws.muws.v1_0.impl.WsdmNamespaceVersionHolderImpl();
+    /**
+     * A constant for the JNDI Lookup name for this home. *
+     */
+    public static final String HOME_LOCATION =
+            org.apache.ws.resource.JndiConstants.CONTEXT_NAME_SERVICES + "/" + SERVICE_NAME.getLocalPart() + "/" + org.apache.ws.resource.JndiConstants.ATOMIC_NAME_HOME;
 
 
     /**
      * TODO
      *
      * @param resourceContext DOCUMENT_ME
-     *
      * @return DOCUMENT_ME
-     *
      * @throws ResourceException        DOCUMENT_ME
      * @throws ResourceContextException DOCUMENT_ME
      * @throws ResourceUnknownException DOCUMENT_ME
      */
-    public Resource getInstance( ResourceContext resourceContext )
+    public Resource getInstance(ResourceContext resourceContext)
             throws ResourceException,
-            ResourceContextException,
-            ResourceUnknownException
+                   ResourceContextException,
+                   ResourceUnknownException
     {
         ResourceKey key = resourceContext.getResourceKey();
         Resource resource = null;
         try
         {
-            resource = find( key );
+            resource = find(key);
         }
-        catch ( ResourceException re )
+        catch (ResourceException re)
         {
-             Object id = key.getValue();
+            Object id = key.getValue();
             /**
              * Determine if the passed-in key is, in fact, something we expect.
              */
@@ -62,7 +84,7 @@
                     FCCIDDocument fccidDocument = FCCIDDocument.Factory.newInstance();
                     //set the same value for both instances
                     fccidDocument.setFCCID(InteropConstants.FCCID);
-                    ((WeatherstationResource)resource).setFCCID(fccidDocument);
+                    ((WeatherstationResource) resource).setFCCID(fccidDocument);
                 }
                 catch (Exception e)
                 {
@@ -80,4 +102,23 @@
 
     }
 
+    public QName getServiceName()
+    {
+        return SERVICE_NAME;
+    }
+
+    public QName getPortType()
+    {
+        return PORT_TYPE;
+    }
+
+    public String getServicePortName()
+    {
+        return PORT_NAME;
+    }
+
+    public QName getResourceKeyNameQName()
+    {
+        return RESOURCE_KEY_NAME;
+    }
 }

Modified: incubator/muse/trunk/src/site/content/interop/src/java/org/everestWeather/wsdm/samples/x2005/x04/schema/WeatherstationPropertyQNames.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/interop/src/java/org/everestWeather/wsdm/samples/x2005/x04/schema/WeatherstationPropertyQNames.java?rev=178231&r1=178230&r2=178231&view=diff
==============================================================================
--- incubator/muse/trunk/src/site/content/interop/src/java/org/everestWeather/wsdm/samples/x2005/x04/schema/WeatherstationPropertyQNames.java (original)
+++ incubator/muse/trunk/src/site/content/interop/src/java/org/everestWeather/wsdm/samples/x2005/x04/schema/WeatherstationPropertyQNames.java Tue May 24 11:34:57 2005
@@ -6,45 +6,44 @@
  * QNames of the resource properties defined by Weatherstation WSDL.
  * <p/>
  * NOTE: This class is generated and is NOT meant to be modified.
- *
  */
 public interface WeatherstationPropertyQNames
 {
 
-                QName CORRELATABLEPROPERTIES =
-                new QName( "http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd", "CorrelatableProperties", "muws-xs1");
-                QName MANAGEABILITYCAPABILITY =
-                new QName( "http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd", "ManageabilityCapability", "muws-xs1");
-                QName FCCID =
-                new QName( "http://everest-weather.org/wsdm/samples/2005/04/schema", "FCCID", "wsws-xs");
-                QName RESOURCEID =
-                new QName( "http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd", "ResourceId", "muws-xs1");
-                QName OPERATIONALSTATUS =
-                new QName( "http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd", "OperationalStatus", "muws-xs2");
-                QName CURRENTTIME =
-                new QName( "http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd", "CurrentTime", "muws-xs2");
-                QName RELATIONSHIP =
-                new QName( "http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd", "Relationship", "muws-xs2");
+    QName CORRELATABLEPROPERTIES =
+            new QName("http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd", "CorrelatableProperties", "muws-xs1");
+    QName MANAGEABILITYCAPABILITY =
+            new QName("http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd", "ManageabilityCapability", "muws-xs1");
+    QName FCCID =
+            new QName("http://everest-weather.org/wsdm/samples/2005/04/schema", "FCCID", "wsws-xs");
+    QName RESOURCEID =
+            new QName("http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd", "ResourceId", "muws-xs1");
+    QName OPERATIONALSTATUS =
+            new QName("http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd", "OperationalStatus", "muws-xs2");
+    QName CURRENTTIME =
+            new QName("http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd", "CurrentTime", "muws-xs2");
+    QName RELATIONSHIP =
+            new QName("http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd", "Relationship", "muws-xs2");
 
-                QName CURRENTOPERATIONALSTATE =
-                new QName( "http://docs.oasis-open.org/wsdm/2004/12/mows/wsdm-mows.xsd", "CurrentOperationalState", "mows-xs");
-                QName LASTOPERATIONALSTATETRANSITION =
-                new QName( "http://docs.oasis-open.org/wsdm/2004/12/mows/wsdm-mows.xsd", "LastOperationalStateTransition", "mows-xs");
-                QName ENDPOINTREFERENCE =
-                new QName( "http://docs.oasis-open.org/wsdm/2004/12/mows/wsdm-mows.xsd", "EndpointReference", "mows-xs");
-                QName ENDPOINTDESCRIPTIONS =
-                new QName( "http://docs.oasis-open.org/wsdm/2004/12/mows/wsdm-mows.xsd", "EndpointDescriptions", "mows-xs");
-                QName NUMBEROFREQUESTS =
-                new QName( "http://docs.oasis-open.org/wsdm/2004/12/mows/wsdm-mows.xsd", "NumberOfRequests", "mows-xs");
-                QName NUMBEROFSUCCESSFULREQUESTS =
-                new QName( "http://docs.oasis-open.org/wsdm/2004/12/mows/wsdm-mows.xsd", "NumberOfSuccessfulRequests", "mows-xs");
-                QName NUMBEROFFAILEDREQUESTS =
-                new QName( "http://docs.oasis-open.org/wsdm/2004/12/mows/wsdm-mows.xsd", "NumberOfFailedRequests", "mows-xs");
-                QName SERVICETIME =
-                new QName( "http://docs.oasis-open.org/wsdm/2004/12/mows/wsdm-mows.xsd", "ServiceTime", "mows-xs");
-                QName MAXRESPONSETIME =
-                new QName( "http://docs.oasis-open.org/wsdm/2004/12/mows/wsdm-mows.xsd", "MaxResponseTime", "mows-xs");
-                QName LASTRESPONSETIME =
-                new QName( "http://docs.oasis-open.org/wsdm/2004/12/mows/wsdm-mows.xsd", "LastResponseTime", "mows-xs");
+    QName CURRENTOPERATIONALSTATE =
+            new QName("http://docs.oasis-open.org/wsdm/2004/12/mows/wsdm-mows.xsd", "CurrentOperationalState", "mows-xs");
+    QName LASTOPERATIONALSTATETRANSITION =
+            new QName("http://docs.oasis-open.org/wsdm/2004/12/mows/wsdm-mows.xsd", "LastOperationalStateTransition", "mows-xs");
+    QName ENDPOINTREFERENCE =
+            new QName("http://docs.oasis-open.org/wsdm/2004/12/mows/wsdm-mows.xsd", "EndpointReference", "mows-xs");
+    QName ENDPOINTDESCRIPTIONS =
+            new QName("http://docs.oasis-open.org/wsdm/2004/12/mows/wsdm-mows.xsd", "EndpointDescriptions", "mows-xs");
+    QName NUMBEROFREQUESTS =
+            new QName("http://docs.oasis-open.org/wsdm/2004/12/mows/wsdm-mows.xsd", "NumberOfRequests", "mows-xs");
+    QName NUMBEROFSUCCESSFULREQUESTS =
+            new QName("http://docs.oasis-open.org/wsdm/2004/12/mows/wsdm-mows.xsd", "NumberOfSuccessfulRequests", "mows-xs");
+    QName NUMBEROFFAILEDREQUESTS =
+            new QName("http://docs.oasis-open.org/wsdm/2004/12/mows/wsdm-mows.xsd", "NumberOfFailedRequests", "mows-xs");
+    QName SERVICETIME =
+            new QName("http://docs.oasis-open.org/wsdm/2004/12/mows/wsdm-mows.xsd", "ServiceTime", "mows-xs");
+    QName MAXRESPONSETIME =
+            new QName("http://docs.oasis-open.org/wsdm/2004/12/mows/wsdm-mows.xsd", "MaxResponseTime", "mows-xs");
+    QName LASTRESPONSETIME =
+            new QName("http://docs.oasis-open.org/wsdm/2004/12/mows/wsdm-mows.xsd", "LastResponseTime", "mows-xs");
 
 }



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