Author: kidz
Date: Tue Aug  2 07:06:04 2005
New Revision: 227009

URL: http://svn.apache.org/viewcvs?rev=227009&view=rev
Log:
Support for muse-ext properties, refactored for home interface changes

Modified:
    
webservices/muse/trunk/src/examples/enterprise/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/IntegrationserverHome.java
    
webservices/muse/trunk/src/examples/enterprise/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/IntegrationserverPropertyQNames.java
    
webservices/muse/trunk/src/examples/enterprise/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/IntegrationserverResource.java
    
webservices/muse/trunk/src/examples/enterprise/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/IntegrationserverService.java
    
webservices/muse/trunk/src/examples/enterprise/services/integrationserver/src/wsdl/integrationserver.wsdl

Modified: 
webservices/muse/trunk/src/examples/enterprise/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/IntegrationserverHome.java
URL: 
http://svn.apache.org/viewcvs/webservices/muse/trunk/src/examples/enterprise/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/IntegrationserverHome.java?rev=227009&r1=227008&r2=227009&view=diff
==============================================================================
--- 
webservices/muse/trunk/src/examples/enterprise/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/IntegrationserverHome.java
 (original)
+++ 
webservices/muse/trunk/src/examples/enterprise/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/IntegrationserverHome.java
 Tue Aug  2 07:06:04 2005
@@ -1,7 +1,6 @@
 

 package org.apache.ws.muse.example.integrationserver;

 

-import org.apache.ws.muse.example.ExampleConstants;

 import org.apache.ws.muse.example.resourceadmin.properties.CreateParamsType;

 import org.apache.ws.resource.Resource;

 import org.apache.ws.resource.ResourceContext;

@@ -26,16 +25,16 @@
 

     /**  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://ws.apache.org/muse/example/integrationserver}integrationserver";);

-        

-    /** 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://ws.apache.org/muse/example/integrationserver}IntegrationServerPortType";);
    

-        

+

+    /** 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://ws.apache.org/muse/example/integrationserver}IntegrationServerPortType";);

+

     /** The WSDL Port name associated with the resource. This is useful for 
building EPR's. **/

     public static final String PORT_NAME = "integrationserver";

-        

+

     /** 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 QName RESOURCE_ID = 
javax.xml.namespace.QName.valueOf("{http://ws.apache.org/muse/example/integrationserver}ResourceID";);

         /**

      * A NamespaceVerionHolder which maintains the QNames of Spec Wsdls

@@ -44,9 +43,9 @@
         /** 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;

-    

+

     /** A variable to hold the factory resource object */

-    

+

     private IntegrationserverResource m_serverResource = null;

 

     public void init() throws Exception

@@ -61,14 +60,17 @@
        {

        if (m_serverResource == null)

        {

+               Object resourceId = SERVICE_NAME.toString();

+               System.out.println("integrationsever id= " + resourceId);

                try

                {

-                       //m_serverResource = 
(IntegrationserverResource)createInstance(null);

-                       m_serverResource = new IntegrationserverResource( 
createParams );

+                       // We create an instance of Integration server with the 
resourceId, needed for bookkping done by resourceAdmin

+                       // But Integration server is a singleton, we do not 
want to use ResourceID in the EPR, we will create EPR with null as resouceId

+                       m_serverResource = new IntegrationserverResource( 
resourceId, createParams );

                        //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() , aKey, 
SPEC_NAMESPACE_SET.getAddressingNamespace());

-                       EndpointReference epr = 
getEndpointReference(resourceId);

+                       

+                       EndpointReference epr = getEndpointReference(null);

                    
((IntegrationserverResource)m_serverResource).setEndpointReference( epr );

                    m_serverResource.init();

                                add(m_serverResource);

@@ -80,22 +82,22 @@
        }

        return m_serverResource;

        }

-    

+

     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;

@@ -108,7 +110,7 @@
     private static Map s_resources;

 

     /**

-     * Returns a map of all FilesystemResource instances. Used by the [EMAIL 
PROTECTED] org.apache.ws.resource.impl.AbstractResourceHome}

+     * Returns a map of all IntegrationServer instances. Used by the [EMAIL 
PROTECTED] org.apache.ws.resource.impl.AbstractResourceHome}

      * superclass.

      */

     protected synchronized final Map getResourceMap()


Modified: 
webservices/muse/trunk/src/examples/enterprise/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/IntegrationserverPropertyQNames.java
URL: 
http://svn.apache.org/viewcvs/webservices/muse/trunk/src/examples/enterprise/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/IntegrationserverPropertyQNames.java?rev=227009&r1=227008&r2=227009&view=diff
==============================================================================
--- 
webservices/muse/trunk/src/examples/enterprise/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/IntegrationserverPropertyQNames.java
 (original)
+++ 
webservices/muse/trunk/src/examples/enterprise/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/IntegrationserverPropertyQNames.java
 Tue Aug  2 07:06:04 2005
@@ -1,3 +1,18 @@
+/*=============================================================================*

+ *  Copyright 2005 The Apache Software Foundation

+ *

+ *  Licensed under the Apache License, Version 2.0 (the "License");

+ *  you may not use this file except in compliance with the License.

+ *  You may obtain a copy of the License at

+ *

+ *      http://www.apache.org/licenses/LICENSE-2.0

+ *

+ *  Unless required by applicable law or agreed to in writing, software

+ *  distributed under the License is distributed on an "AS IS" BASIS,

+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

+ *  See the License for the specific language governing permissions and

+ *  limitations under the License.

+ 
*=============================================================================*/

 package org.apache.ws.muse.example.integrationserver;

 

 import javax.xml.namespace.QName;

@@ -19,24 +34,28 @@
             new QName( 
"http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd";,
 "TopicExpressionDialects", "wsnt");        

             QName RESOURCEID =

             new QName( 
"http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd";, 
"ResourceId", "muws-p1-xs");        

+            QName CREATIONTIME =

+            new QName( "http://ws.apache.org/namespaces/muse/muws-ext-1.xsd";, 
"CreationTime", "ws-ext");        

             QName RESOURCEHOSTNAME =

             new QName( "http://ws.apache.org/namespaces/muse/muws-ext-1.xsd";, 
"ResourceHostname", "ws-ext");        

             QName VERSION =

             new QName( 
"http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd";, "Version", 
"muws-p2-xs");        

-            QName MANAGEABILITYCAPABILITY =

-            new QName( 
"http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd";, 
"ManageabilityCapability", "muws-p1-xs");        

             QName CAPTION =

             new QName( 
"http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd";, "Caption", 
"muws-p2-xs");        

+            QName MANAGEABILITYCAPABILITY =

+            new QName( 
"http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd";, 
"ManageabilityCapability", "muws-p1-xs");        

             QName DESCRIPTION =

             new QName( 
"http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd";, 
"Description", "muws-p2-xs");        

-            QName OPERATIONALSTATUS =

-            new QName( 
"http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd";, 
"OperationalStatus", "muws-p2-xs");        

             QName FIXEDTOPICSET =

             new QName( 
"http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd";,
 "FixedTopicSet", "wsnt");        

+            QName OPERATIONALSTATUS =

+            new QName( 
"http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd";, 
"OperationalStatus", "muws-p2-xs");        

             QName CURRENTTIME =

             new QName( 
"http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd";, 
"CurrentTime", "muws-p2-xs");        

             QName RESOURCETYPE =

             new QName( "http://ws.apache.org/namespaces/muse/muws-ext-1.xsd";, 
"ResourceType", "ws-ext");        

+            QName OWNER =

+            new QName( "http://ws.apache.org/namespaces/muse/muws-ext-1.xsd";, 
"Owner", "ws-ext");        

             QName SERVERNAME =

             new QName( 
"http://ws.apache.org/muse/example/integrationserver/properties";, "ServerName", 
"ins-prop");        

             QName RELATIONSHIP =


Modified: 
webservices/muse/trunk/src/examples/enterprise/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/IntegrationserverResource.java
URL: 
http://svn.apache.org/viewcvs/webservices/muse/trunk/src/examples/enterprise/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/IntegrationserverResource.java?rev=227009&r1=227008&r2=227009&view=diff
==============================================================================
--- 
webservices/muse/trunk/src/examples/enterprise/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/IntegrationserverResource.java
 (original)
+++ 
webservices/muse/trunk/src/examples/enterprise/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/IntegrationserverResource.java
 Tue Aug  2 07:06:04 2005
@@ -36,32 +36,25 @@
 

 {

 

-    /**

+     /**

      * 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();

 

-    /**

-     * The value for the ImplementationProfile property *

-     */

+

+     /**  The value for the ImplementationProfile property **/

 

     public static final String RESOURCE_TYPE = "IntegrationServer";

 

-    /**

-     * The value for the Caption property *

-     */

+    /**  The value for the Caption property **/

 

     public static final String CAPTION = "Integration Server";

 

-    /**

-     * The value for the Version property *

-     */

+    /**  The value for the Version property **/

 

     public static final String VERSION = "1.0";

 

-    /**

-     * The value for the Description property

-     */

+    /** The value for the Description property */

 

     public static final String DESCRIPTION = "Integration Server root for the 
WSDM Application management";

 

@@ -69,11 +62,11 @@
 

     private static final Log LOG = LogFactory.getLog( 
IntegrationserverResource.class.getName() );

 

-    public IntegrationserverResource( CreateParamsType params )

+    public IntegrationserverResource( Object resourceId, CreateParamsType 
params)

     {

-        setID( null );

-        // params can have any important information for the creation of 
Resource

-        // in this example it is not used

+       setID( resourceId );

+       // params can have any important information for the creation of 
Resource

+       // in this example it is not used

     }

 

     /**

@@ -84,286 +77,292 @@
         super.init();

 

         /**

-         * The ResourcePropertySet which contains all the defined 
ResourceProperties

+                * The ResourcePropertySet which contains all the defined 
ResourceProperties

+                */

+               org.apache.ws.resource.properties.ResourcePropertySet 
resourcePropertySet = getResourcePropertySet();

+               org.apache.ws.resource.properties.ResourceProperty 
resourceProperty = null;

+

+

+       try{

+

+               // 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.

+

+

+            /**

+            * Initializes the Topic, TopicExpressionDialects and FixedTopicSet 
resource properties

+                * </br>

+                * FixedTopicSet will be set based on the value returned from 
the [EMAIL PROTECTED] TopicSpaceSet#isFixed()} method.

+                * </br>

+                * Topic will have all root topics in the TopicSpaceSet, set to 
Simple dialect AND all child topics set to

+                * Concrete dialect.

+                * </br>

+                *

+        * TopicExpressionDialects will be set to the engine's known Topic 
Dialects acquired from the TopicExpressionEngine

+        *

+        * If this is not the behavior you would like, you will need to remove 
the following line of code and initialize the properties

+        * individually.

          */

-        org.apache.ws.resource.properties.ResourcePropertySet 
resourcePropertySet = getResourcePropertySet();

-        org.apache.ws.resource.properties.ResourceProperty resourceProperty = 
null;

+           TopicSpaceSet aSet = getTopicSpaceSet();

 

-        try

-        {

-

-            // 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.

-

-

-            /**

-             * Initializes the Topic, TopicExpressionDialects and 
FixedTopicSet resource properties

-             * </br>

-             * FixedTopicSet will be set based on the value returned from the 
[EMAIL PROTECTED] TopicSpaceSet#isFixed()} method.

-             * </br>

-             * Topic will have all root topics in the TopicSpaceSet, set to 
Simple dialect AND all child topics set to

-             * Concrete dialect.

-             * </br>

-             *

-             * TopicExpressionDialects will be set to the engine's known Topic 
Dialects acquired from the TopicExpressionEngine

-             *

-             * If this is not the behavior you would like, you will need to 
remove the following line of code and initialize the properties

-             * individually.

-             */

-            TopicSpaceSet aSet = getTopicSpaceSet();

-

-            /*  MUWS TopicSpace is returned by MuwsUtils.addRelationshipTopics 
- This utility operation adds relationship topics support. I

-             *  nternaly the code :

-             *  TopicSpace muwsTopicSpace = new TopicSpaceImpl( 
MuwsConstants.NSURI_MUWS_PART2_TOPICS )

-             *  aSet.addTopicSpace( muwsTopicSpace ) is executed. We are 
adding more MUWS topics to this

-             *         TopicSpace.

-            */

-            TopicSpace muwsTopicSpace = MuwsUtils.addRelationshipTopics( aSet 
);

-

-            ManagementEventTopic identityCapability = new 
XmlBeansManagementEventTopicImpl(

-                    IdentityCapability.TOPIC_NAME );

-            muwsTopicSpace.addTopic( identityCapability );

-

-            ManagementEventTopic manageabilityCharacteristicsCapability = new 
XmlBeansManagementEventTopicImpl(

-                    ManageabilityCharacteristicsCapability.TOPIC_NAME );

-            muwsTopicSpace.addTopic( manageabilityCharacteristicsCapability );

-

-            ManagementEventTopic operationalStatusCapability = new 
XmlBeansManagementEventTopicImpl(

-                    OperationalStatusCapability.TOPIC_NAME );

-            muwsTopicSpace.addTopic( operationalStatusCapability );

-

-            ManagementEventTopic muwsDescriptionCapability = new 
XmlBeansManagementEventTopicImpl(

-                    DescriptionCapability.TOPIC_NAME );

-            muwsTopicSpace.addTopic( muwsDescriptionCapability );

-

-            ManagementEventTopic metricCapability = new 
XmlBeansManagementEventTopicImpl( MetricsCapability.TOPIC_NAME );

-            muwsTopicSpace.addTopic( metricCapability );

-

-

-//MOWS TopicSpace

-            TopicSpace mowsTopicSpace = new TopicSpaceImpl( 
MowsConstants.NSURI_MOWS_TOPICS );

-            getTopicSpaceSet().addTopicSpace( mowsTopicSpace );

-

-            ManagementEventTopic mowsMetricsCapability = new 
XmlBeansManagementEventTopicImpl(

-                    MetricsCapability.TOPIC_NAME );

-            mowsTopicSpace.addTopic( mowsMetricsCapability );

-

-

-            // init the 
{http://ws.apache.org/muse/example/integrationserver/properties}ListenPort 
Resource Property

-            resourceProperty = resourcePropertySet.get( 
IntegrationserverPropertyQNames.LISTENPORT );

-            
org.apache.ws.muse.example.integrationserver.properties.ListenPortDocument 
prop_listenport = 
org.apache.ws.muse.example.integrationserver.properties.ListenPortDocument.Factory.newInstance();

-            prop_listenport.setListenPort( getPort() );

-            resourceProperty.add( prop_listenport );

-

-

-            // init the 
{http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd}ResourceId 
Resource Property

-            resourceProperty = resourcePropertySet.get( 
IntegrationserverPropertyQNames.RESOURCEID );

-            
org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ResourceIdDocument 
prop_resourceid = 
org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ResourceIdDocument.Factory.newInstance();

-            prop_resourceid.setResourceId( getID().toString() );

-            resourceProperty.add( prop_resourceid );

-            resourceProperty.addChangeListener( identityCapability );

-

-

-            // init the 
{http://org.apache.ws.namespaces.muse.muwsExt1}ResourceHostname Resource 
Property

-            resourceProperty = resourcePropertySet.get( 
IntegrationserverPropertyQNames.RESOURCEHOSTNAME );

-            org.apache.ws.namespaces.muse.muwsExt1.ResourceHostnameDocument 
prop_resourcehostname = 
org.apache.ws.namespaces.muse.muwsExt1.ResourceHostnameDocument.Factory.newInstance();

-            prop_resourcehostname.setResourceHostname( getHostName() );

-            resourceProperty.add( prop_resourcehostname );

-

-

-            // init the 
{http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd}Version 
Resource Property

-            resourceProperty = resourcePropertySet.get( 
IntegrationserverPropertyQNames.VERSION );

-            
org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.VersionDocument 
prop_version = 
org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.VersionDocument.Factory.newInstance();

-            prop_version.setVersion( VERSION );

-            resourceProperty.add( prop_version );

-            resourceProperty.addChangeListener( muwsDescriptionCapability );

-

-

-            // init the 
{http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd}Caption 
Resource Property

-            resourceProperty = resourcePropertySet.get( 
IntegrationserverPropertyQNames.CAPTION );

-            
org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.CaptionDocument 
prop_caption = 
org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.CaptionDocument.Factory.newInstance();

-            org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.LangString 
lStringC = LangString.Factory.newInstance();

-            lStringC.setStringValue( CAPTION );

-            lStringC.setLang( "en" );

-            prop_caption.setCaption( lStringC );

-            resourceProperty.add( prop_caption );

-            resourceProperty.addChangeListener( muwsDescriptionCapability );

-

-

-            // init the 
{http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd}ManageabilityCapability
 Resource Property

-            resourceProperty = resourcePropertySet.get( 
IntegrationserverPropertyQNames.MANAGEABILITYCAPABILITY );

-            
org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ManageabilityCapabilityDocument
 prop_manageabilitycapability = 
org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ManageabilityCapabilityDocument.Factory.newInstance();

-            prop_manageabilitycapability.setManageabilityCapability( 
IdentityCapability.URI );

-            resourceProperty.add( prop_manageabilitycapability );

-

-            resourceProperty.addChangeListener( 
manageabilityCharacteristicsCapability );

-            prop_manageabilitycapability = 
ManageabilityCapabilityDocument.Factory.newInstance();

-            prop_manageabilitycapability.setManageabilityCapability(

-                    org.apache.ws.muws.v1_0.capability.MetricsCapability.URI );

-            resourceProperty.add( prop_manageabilitycapability );

-

-            prop_manageabilitycapability = 
ManageabilityCapabilityDocument.Factory.newInstance();

-            prop_manageabilitycapability.setManageabilityCapability( 
RelationshipsCapability.URI );

-            resourceProperty.add( prop_manageabilitycapability );

-

-            prop_manageabilitycapability = 
ManageabilityCapabilityDocument.Factory.newInstance();

-            prop_manageabilitycapability.setManageabilityCapability( 
DescriptionCapability.URI );

-            resourceProperty.add( prop_manageabilitycapability );

-

-            prop_manageabilitycapability = 
ManageabilityCapabilityDocument.Factory.newInstance();

-            prop_manageabilitycapability.setManageabilityCapability( 
OperationalStatusCapability.URI );

-            resourceProperty.add( prop_manageabilitycapability );

-

-            prop_manageabilitycapability = 
ManageabilityCapabilityDocument.Factory.newInstance();

-            prop_manageabilitycapability.setManageabilityCapability( 
MetricsCapability.URI );

-            resourceProperty.add( prop_manageabilitycapability );

-

-            prop_manageabilitycapability = 
ManageabilityCapabilityDocument.Factory.newInstance();

-            prop_manageabilitycapability.setManageabilityCapability( 
ExampleConstants.MUWS_EXT_CAPABILITY_URI );

-            resourceProperty.add( prop_manageabilitycapability );

-

-            resourceProperty.addChangeListener( 
manageabilityCharacteristicsCapability );

-

-            // init the 
{http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd}Description 
Resource Property

-            resourceProperty = resourcePropertySet.get( 
IntegrationserverPropertyQNames.DESCRIPTION );

-            
org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.DescriptionDocument 
prop_description = 
org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.DescriptionDocument.Factory.newInstance();

-            org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.LangString 
lString = LangString.Factory.newInstance();

-            lString.setStringValue( DESCRIPTION );

-            lString.setLang( "en" );

-            prop_description.setDescription( lString );

-            resourceProperty.add( prop_description );

-            resourceProperty.addChangeListener( muwsDescriptionCapability );

-

-

-            // init the 
{http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd}OperationalStatus
 Resource Property

-            resourceProperty = resourcePropertySet.get( 
IntegrationserverPropertyQNames.OPERATIONALSTATUS );

-            
org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.OperationalStatusDocument 
prop_operationalstatus = 
org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.OperationalStatusDocument.Factory.newInstance();

-            prop_operationalstatus.setOperationalStatus( 
OperationalStatusDocument.OperationalStatus.AVAILABLE );

-            resourceProperty.add( prop_operationalstatus );

-            resourceProperty.addChangeListener( operationalStatusCapability );

-

-

-

-            // init the 
{http://org.apache.ws.namespaces.muse.muwsExt1}ResourceType Resource Property

-            resourceProperty = resourcePropertySet.get( 
IntegrationserverPropertyQNames.RESOURCETYPE );

-            org.apache.ws.namespaces.muse.muwsExt1.ResourceTypeDocument 
prop_resourcetype = 
org.apache.ws.namespaces.muse.muwsExt1.ResourceTypeDocument.Factory.newInstance();

-            prop_resourcetype.setResourceType( RESOURCE_TYPE );

-            resourceProperty.add( prop_resourcetype );

-

-

-            // init the 
{http://ws.apache.org/muse/example/integrationserver/properties}ServerName 
Resource Property

-            resourceProperty = resourcePropertySet.get( 
IntegrationserverPropertyQNames.SERVERNAME );

-            
org.apache.ws.muse.example.integrationserver.properties.ServerNameDocument 
prop_servername = 
org.apache.ws.muse.example.integrationserver.properties.ServerNameDocument.Factory.newInstance();

-            prop_servername.setServerName( CAPTION + " - " + getHostName() );

-            resourceProperty.add( prop_servername );

-

-            // init the 
{http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd}CurrentTime 
ResourceProperty

-            resourceProperty = resourcePropertySet.get( 
IntegrationserverPropertyQNames.CURRENTTIME );

-            CurrentTimeDocument currentTimeDocument = 
CurrentTimeDocument.Factory.newInstance();

-            currentTimeDocument.setCurrentTime( Calendar.getInstance() );

-            resourceProperty.add( currentTimeDocument );

-            resourceProperty.setCallback( new 
org.apache.ws.resource.lifetime.callback.CurrentTimeCallback() );

-            resourceProperty.addChangeListener( metricCapability );

-

-        }

-        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() );

-        }

+           /*  MUWS TopicSpace is returned by MuwsUtils.addRelationshipTopics 
- This utility operation adds relationship topics support. I

+            *  nternaly the code :

+            *  TopicSpace muwsTopicSpace = new TopicSpaceImpl( 
MuwsConstants.NSURI_MUWS_PART2_TOPICS )

+            *  aSet.addTopicSpace( muwsTopicSpace ) is executed. We are adding 
more MUWS topics to this

+            *  TopicSpace.

+           */

+           TopicSpace muwsTopicSpace = MuwsUtils.addRelationshipTopics( aSet );

+

+        ManagementEventTopic identityCapability = new 
XmlBeansManagementEventTopicImpl( IdentityCapability.TOPIC_NAME );

+        muwsTopicSpace.addTopic( identityCapability );

+

+        ManagementEventTopic manageabilityCharacteristicsCapability = new 
XmlBeansManagementEventTopicImpl( 
ManageabilityCharacteristicsCapability.TOPIC_NAME );

+        muwsTopicSpace.addTopic( manageabilityCharacteristicsCapability );

+

+        ManagementEventTopic operationalStatusCapability = new 
XmlBeansManagementEventTopicImpl(OperationalStatusCapability.TOPIC_NAME );

+        muwsTopicSpace.addTopic( operationalStatusCapability );

+

+        ManagementEventTopic muwsDescriptionCapability = new 
XmlBeansManagementEventTopicImpl( DescriptionCapability.TOPIC_NAME );

+        muwsTopicSpace.addTopic( muwsDescriptionCapability );

+

+        ManagementEventTopic metricCapability = new 
XmlBeansManagementEventTopicImpl(MetricsCapability.TOPIC_NAME );

+        muwsTopicSpace.addTopic( metricCapability );

+

+

+        //MOWS TopicSpace

+        TopicSpace mowsTopicSpace = new TopicSpaceImpl( 
MowsConstants.NSURI_MOWS_TOPICS );

+        getTopicSpaceSet().addTopicSpace( mowsTopicSpace );

+

+        ManagementEventTopic mowsMetricsCapability = new 
XmlBeansManagementEventTopicImpl( MetricsCapability.TOPIC_NAME );

+        mowsTopicSpace.addTopic( mowsMetricsCapability );

+

+

+               // init the 
{http://ws.apache.org/muse/example/integrationserver/properties}ListenPort 
Resource Property

+               resourceProperty = 
resourcePropertySet.get(IntegrationserverPropertyQNames.LISTENPORT);

+               
org.apache.ws.muse.example.integrationserver.properties.ListenPortDocument 
prop_listenport = 
org.apache.ws.muse.example.integrationserver.properties.ListenPortDocument.Factory.newInstance();

+               prop_listenport.setListenPort(getPort());

+               resourceProperty.add(prop_listenport);

+

+

+               // init the 
{http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd}ResourceId 
Resource Property

+               resourceProperty = 
resourcePropertySet.get(IntegrationserverPropertyQNames.RESOURCEID);

+               
org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ResourceIdDocument 
prop_resourceid = 
org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ResourceIdDocument.Factory.newInstance();

+               prop_resourceid.setResourceId(getID().toString());

+               resourceProperty.add(prop_resourceid);

+               resourceProperty.addChangeListener( identityCapability );

+

+

+               // init the 
{http://org.apache.ws.namespaces.muse.muwsExt1}ResourceHostname Resource 
Property

+               resourceProperty = 
resourcePropertySet.get(IntegrationserverPropertyQNames.RESOURCEHOSTNAME);

+               org.apache.ws.namespaces.muse.muwsExt1.ResourceHostnameDocument 
prop_resourcehostname = 
org.apache.ws.namespaces.muse.muwsExt1.ResourceHostnameDocument.Factory.newInstance();

+               prop_resourcehostname.setResourceHostname(getHostName());

+               resourceProperty.add(prop_resourcehostname);

+

+

+               // init the 
{http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd}Version 
Resource Property

+               resourceProperty = 
resourcePropertySet.get(IntegrationserverPropertyQNames.VERSION);

+               
org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.VersionDocument 
prop_version = 
org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.VersionDocument.Factory.newInstance();

+               prop_version.setVersion(VERSION);

+               resourceProperty.add(prop_version);

+               resourceProperty.addChangeListener(muwsDescriptionCapability);

+

+

+               // init the 
{http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd}Caption 
Resource Property

+               resourceProperty = 
resourcePropertySet.get(IntegrationserverPropertyQNames.CAPTION);

+               
org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.CaptionDocument 
prop_caption = 
org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.CaptionDocument.Factory.newInstance();

+               org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.LangString 
lStringC = LangString.Factory.newInstance();

+               lStringC.setStringValue(CAPTION);

+               lStringC.setLang("en");

+               prop_caption.setCaption(lStringC);

+               resourceProperty.add(prop_caption);

+               resourceProperty.addChangeListener(muwsDescriptionCapability);

+

+

+               // init the 
{http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd}ManageabilityCapability
 Resource Property

+               resourceProperty = 
resourcePropertySet.get(IntegrationserverPropertyQNames.MANAGEABILITYCAPABILITY);

+               
org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ManageabilityCapabilityDocument
 prop_manageabilitycapability = 
org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ManageabilityCapabilityDocument.Factory.newInstance();

+               prop_manageabilitycapability.setManageabilityCapability( 
IdentityCapability.URI );

+               resourceProperty.add(prop_manageabilitycapability);

+

+               resourceProperty.addChangeListener( 
manageabilityCharacteristicsCapability );

+               prop_manageabilitycapability = 
ManageabilityCapabilityDocument.Factory.newInstance();

+               prop_manageabilitycapability.setManageabilityCapability( 
org.apache.ws.muws.v1_0.capability.MetricsCapability.URI );

+        resourceProperty.add( prop_manageabilitycapability );

+

+        prop_manageabilitycapability = 
ManageabilityCapabilityDocument.Factory.newInstance();

+        prop_manageabilitycapability.setManageabilityCapability( 
RelationshipsCapability.URI );

+        resourceProperty.add( prop_manageabilitycapability );

+

+        prop_manageabilitycapability = 
ManageabilityCapabilityDocument.Factory.newInstance();

+        prop_manageabilitycapability.setManageabilityCapability( 
DescriptionCapability.URI );

+        resourceProperty.add( prop_manageabilitycapability );

+

+        prop_manageabilitycapability = 
ManageabilityCapabilityDocument.Factory.newInstance();

+        prop_manageabilitycapability.setManageabilityCapability(  
OperationalStatusCapability.URI);

+        resourceProperty.add( prop_manageabilitycapability );

+

+        prop_manageabilitycapability = 
ManageabilityCapabilityDocument.Factory.newInstance();

+               prop_manageabilitycapability.setManageabilityCapability( 
MetricsCapability.URI );

+               resourceProperty.add(prop_manageabilitycapability);

+

+        prop_manageabilitycapability = 
ManageabilityCapabilityDocument.Factory.newInstance();

+        prop_manageabilitycapability.setManageabilityCapability(  
ExampleConstants.MUWS_EXT_CAPABILITY_URI);

+        resourceProperty.add( prop_manageabilitycapability );

+

+        resourceProperty.addChangeListener( 
manageabilityCharacteristicsCapability );

+

+               // init the 
{http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd}Description 
Resource Property

+               resourceProperty = 
resourcePropertySet.get(IntegrationserverPropertyQNames.DESCRIPTION);

+               
org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.DescriptionDocument 
prop_description = 
org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.DescriptionDocument.Factory.newInstance();

+               org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.LangString 
lString = LangString.Factory.newInstance();

+               lString.setStringValue(DESCRIPTION);

+               lString.setLang("en");

+               prop_description.setDescription(lString);

+               resourceProperty.add(prop_description);

+               resourceProperty.addChangeListener(muwsDescriptionCapability);

+

+

+               // init the 
{http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd}OperationalStatus
 Resource Property

+               resourceProperty = 
resourcePropertySet.get(IntegrationserverPropertyQNames.OPERATIONALSTATUS);

+               
org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.OperationalStatusDocument 
prop_operationalstatus = 
org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.OperationalStatusDocument.Factory.newInstance();

+               
prop_operationalstatus.setOperationalStatus(OperationalStatusDocument.OperationalStatus.AVAILABLE);

+               resourceProperty.add(prop_operationalstatus);

+               resourceProperty.addChangeListener(operationalStatusCapability);

+

+

+

+               // init the 
{http://org.apache.ws.namespaces.muse.muwsExt1}ResourceType Resource Property

+               resourceProperty = 
resourcePropertySet.get(IntegrationserverPropertyQNames.RESOURCETYPE);

+               org.apache.ws.namespaces.muse.muwsExt1.ResourceTypeDocument 
prop_resourcetype = 
org.apache.ws.namespaces.muse.muwsExt1.ResourceTypeDocument.Factory.newInstance();

+               prop_resourcetype.setResourceType(RESOURCE_TYPE);

+               resourceProperty.add(prop_resourcetype);

+

+

+               // init the 
{http://ws.apache.org/muse/example/integrationserver/properties}ServerName 
Resource Property

+               resourceProperty = 
resourcePropertySet.get(IntegrationserverPropertyQNames.SERVERNAME);

+               
org.apache.ws.muse.example.integrationserver.properties.ServerNameDocument 
prop_servername = 
org.apache.ws.muse.example.integrationserver.properties.ServerNameDocument.Factory.newInstance();

+               prop_servername.setServerName(CAPTION + " - " + getHostName());

+               resourceProperty.add(prop_servername);

+

+               // init the 
{http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd}CurrentTime 
ResourceProperty

+        resourceProperty = 
resourcePropertySet.get(IntegrationserverPropertyQNames.CURRENTTIME);

+        CurrentTimeDocument currentTimeDocument = 
CurrentTimeDocument.Factory.newInstance();

+        currentTimeDocument.setCurrentTime(Calendar.getInstance());

+        resourceProperty.add(currentTimeDocument);

+        resourceProperty.setCallback(new 
org.apache.ws.resource.lifetime.callback.CurrentTimeCallback());

+        resourceProperty.addChangeListener(metricCapability);

+

+        // init the {http://ws.apache.org/namespaces/muse/muws-ext-1.xsd}Owner 
Resource Property

+        resourceProperty = 
resourcePropertySet.get(IntegrationserverPropertyQNames.OWNER);

+               org.apache.ws.namespaces.muse.muwsExt1.OwnerDocument prop_owner 
= org.apache.ws.namespaces.muse.muwsExt1.OwnerDocument.Factory.newInstance();

+               org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.LangString 
oString =  LangString.Factory.newInstance(  );

+               oString.setStringValue( ExampleConstants.INT_SERVER_OWNER );

+               oString.setLang( "en" );

+        prop_owner.setOwner( oString );

+               resourceProperty.add(prop_owner);

+

+               // init the 
{http://ws.apache.org/namespaces/muse/muws-ext-1.xsd}CreationTime Resource 
Property

+               resourceProperty = 
resourcePropertySet.get(IntegrationserverPropertyQNames.CREATIONTIME);

+               org.apache.ws.namespaces.muse.muwsExt1.CreationTimeDocument 
prop_creationtime = 
org.apache.ws.namespaces.muse.muwsExt1.CreationTimeDocument.Factory.newInstance();

+               prop_creationtime.setCreationTime(Calendar.getInstance(  ));

+               resourceProperty.add(prop_creationtime);

+

+               }

+       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());

+       }

 

     }

 

     protected String getHostName()

-    {

-        String name = null;

-        try

-        {

-            java.net.InetAddress localMachine = 
java.net.InetAddress.getLocalHost();

-            name = localMachine.getCanonicalHostName();

-        }

-        catch ( java.net.UnknownHostException uhe )

-        {

-            LOG.error( "Error getting HostName" );

-        }

+       {

+               String name = null;

+               try

+               {

+                       java.net.InetAddress localMachine =     
java.net.InetAddress.getLocalHost();

+                       name = localMachine.getCanonicalHostName(  );

+               }

+               catch(java.net.UnknownHostException uhe)

+               {

+                       LOG.error("Error getting HostName");

+               }

 

-        return name;

-    }

+               return name;

+       }

 

-    protected long getPort() throws Exception

+    protected long getPort() throws  Exception

     {

-        long portNum = 8080L;

-        return portNum;

+       long portNum = 8080L;

+       return portNum;

     }

 

-    public void setRelationship(

-            
org.apache.ws.muse.example.resourceadmin.properties.SetRelationshipDocument 
requestDoc ) throws Exception

+

+    public void 
setRelationship(org.apache.ws.muse.example.resourceadmin.properties.SetRelationshipDocument
 requestDoc )throws Exception

     {

-        org.apache.ws.resource.properties.ResourcePropertySet 
resourcePropertySet = getResourcePropertySet();

-        org.apache.ws.resource.properties.ResourceProperty resourceProperty = 
null;

-        resourceProperty = resourcePropertySet.get( 
IntegrationserverPropertyQNames.RELATIONSHIP );

-        
org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.RelationshipDocument 
prop_relationship = 
org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.RelationshipDocument.Factory.newInstance();

-        RelationshipType relationshipType = 
prop_relationship.addNewRelationship();

-        relationshipType.setType( requestDoc.getSetRelationship().getType() );

-

-        RelationshipParticipantType[] partTo = 
requestDoc.getSetRelationship().getRelationshipTo().getParticipantArray();

-        int numOfToParticipants = partTo.length;

-        if ( numOfToParticipants > 0 )

-        {

-            //There is the from participant - will be in the first position in 
the array,

-            // there needs to be at least one participant to, can be more.

-            RelationshipParticipantType[] participants = new 
RelationshipParticipantType[numOfToParticipants + 1];

-            participants[0] = 
requestDoc.getSetRelationship().getRelationshipFrom().getParticipant();

-            for ( int i = 0; i < numOfToParticipants; i++ )

-            {

-                participants[i + 1] = partTo[i];

-            }

-            relationshipType.setParticipantArray( participants );

-            resourceProperty.add( prop_relationship );

-        }

-        else

-        {

-            throw new Exception( "Missing Relationship Participant" );

-        }

+       org.apache.ws.resource.properties.ResourcePropertySet 
resourcePropertySet = getResourcePropertySet();

+               org.apache.ws.resource.properties.ResourceProperty 
resourceProperty = null;

+               resourceProperty = 
resourcePropertySet.get(IntegrationserverPropertyQNames.RELATIONSHIP);

+               
org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.RelationshipDocument 
prop_relationship = 
org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.RelationshipDocument.Factory.newInstance();

+               RelationshipType relationshipType = 
prop_relationship.addNewRelationship();

+               
relationshipType.setType(requestDoc.getSetRelationship().getType());

+

+               RelationshipParticipantType [] partTo = 
requestDoc.getSetRelationship().getRelationshipTo().getParticipantArray();

+               int numOfToParticipants = partTo.length;

+               if(numOfToParticipants > 0)

+               {

+                       //There is the from participant - will be in the first 
position in the array,

+                       // there needs to be at least one participant to, can 
be more.

+                       RelationshipParticipantType [] participants = new 
RelationshipParticipantType[numOfToParticipants + 1];

+                       participants[0] = 
requestDoc.getSetRelationship().getRelationshipFrom().getParticipant();

+                       for( int i=0; i<numOfToParticipants; i++)

+                               participants[i+1 ] = partTo[i];

+                   relationshipType.setParticipantArray( participants);

+                       resourceProperty.add(prop_relationship);

+                       if ( LOG.isDebugEnabled() )

+                {

+                    LOG.debug( "SetRelationship -   " + prop_relationship );

+                }

+               }

+               else

+                       throw new Exception ("Missing Relationship 
Participant");

 

     }

 

-    public void removeRelationship(

-            
org.apache.ws.muse.example.resourceadmin.properties.RemoveRelationshipDocument 
requestDoc )

-            throws Exception

+    public void 
removeRelationship(org.apache.ws.muse.example.resourceadmin.properties.RemoveRelationshipDocument
 requestDoc )throws Exception

     {

-        // get participants of relationship to be removed

-        RelationshipType relationshipRemove = 
requestDoc.getRemoveRelationship().getRelationship();

+       // get participants of relationship to be removed

+       RelationshipType relationshipRemove = 
requestDoc.getRemoveRelationship().getRelationship();

+

+               // get the relationship property from properties set

+               // then walk all relationships and compare them with the 
relationship which needs to be removed.

+               // when the match exist the relationship will be removed from 
the relationship properties list

+               // this will genarate realtionshipremoved notification

+       org.apache.ws.resource.properties.ResourcePropertySet 
resourcePropertySet = getResourcePropertySet();

+               org.apache.ws.resource.properties.ResourceProperty 
resourceProperty = null;

+               resourceProperty = 
resourcePropertySet.get(IntegrationserverPropertyQNames.RELATIONSHIP);

+

+

+               if (resourceProperty.isEmpty())

+                       return;

+               for ( int i=0; i < resourceProperty.size(); i++)

+               {

+                       Object relationObj = resourceProperty.get(i);

+                       if ( relationObj instanceof RelationshipType)

+                       {

+                               RelationshipType relationship = 
(RelationshipType)relationObj;

+                               if( 
ExampleUtils.CompareRelationships(relationshipRemove, relationship ))

+                               {

+                                       resourceProperty.remove(relationObj);

+                                       //continue to walk - you can have more 
then one this same relationship

+                                       //the notification will be sent to 
wsdm:RelationshipsCapability/RelationshipDeleted topic

+                               }

+

+                       }

+               }

+ }

 

-        // get the relationship property from properties set

-        // then walk all relationships and compare them with the relationship 
which needs to be removed.

-        // when the match exist the relationship will be removed from the 
relationship properties list

-        // this will genarate realtionshipremoved notification

-        org.apache.ws.resource.properties.ResourcePropertySet 
resourcePropertySet = getResourcePropertySet();

-        org.apache.ws.resource.properties.ResourceProperty resourceProperty = 
null;

-        resourceProperty = resourcePropertySet.get( 
IntegrationserverPropertyQNames.RELATIONSHIP );

-

-        if ( resourceProperty.isEmpty() )

-        {

-            return;

-        }

-        for ( int i = 0; i < resourceProperty.size(); i++ )

-        {

-            Object relationObj = resourceProperty.get( i );

-            if ( relationObj instanceof RelationshipType )

-            {

-                RelationshipType relationship = (RelationshipType) relationObj;

-                if ( ExampleUtils.CompareRelationships( relationshipRemove, 
relationship ) )

-                {

-                    resourceProperty.remove( relationObj );

-                    //continue to walk - you can have more then one this same 
relationship

-                    //the notification will be sent to 
wsdm:RelationshipsCapability/RelationshipDeleted topic

-                }

 

-            }

-        }

-    }

 

 }


Modified: 
webservices/muse/trunk/src/examples/enterprise/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/IntegrationserverService.java
URL: 
http://svn.apache.org/viewcvs/webservices/muse/trunk/src/examples/enterprise/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/IntegrationserverService.java?rev=227009&r1=227008&r2=227009&view=diff
==============================================================================
--- 
webservices/muse/trunk/src/examples/enterprise/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/IntegrationserverService.java
 (original)
+++ 
webservices/muse/trunk/src/examples/enterprise/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/IntegrationserverService.java
 Tue Aug  2 07:06:04 2005
@@ -1,10 +1,7 @@
 package org.apache.ws.muse.example.integrationserver;

 

 import org.apache.ws.resource.ResourceContext;

-import org.apache.xmlbeans.XmlObject;

-import org.apache.xmlbeans.XmlException;

 

-import javax.xml.rpc.JAXRPCException;

 

 /**

  * This class should be generated ONCE (and not overwritten) to maintain 
user-added code.


Modified: 
webservices/muse/trunk/src/examples/enterprise/services/integrationserver/src/wsdl/integrationserver.wsdl
URL: 
http://svn.apache.org/viewcvs/webservices/muse/trunk/src/examples/enterprise/services/integrationserver/src/wsdl/integrationserver.wsdl?rev=227009&r1=227008&r2=227009&view=diff
==============================================================================
--- 
webservices/muse/trunk/src/examples/enterprise/services/integrationserver/src/wsdl/integrationserver.wsdl
 (original)
+++ 
webservices/muse/trunk/src/examples/enterprise/services/integrationserver/src/wsdl/integrationserver.wsdl
 Tue Aug  2 07:06:04 2005
@@ -136,6 +136,8 @@
                   

                   <element ref="ws-ext:ResourceType" minOccurs="1" 
maxOccurs="1" /> 

                   <element ref="ws-ext:ResourceHostname" minOccurs="1" 
maxOccurs="1" /> 

+                  <element ref="ws-ext:CreationTime" minOccurs="1" 
maxOccurs="1" /> 

+                  <element ref="ws-ext:Owner" minOccurs="1" maxOccurs="1" /> 

                   

                   <!--   SPECIFIC PROPERTIES DEFINED IN INTEGRATIONSERVER.XSD 
-->

                   




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to