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 ki...@apache.org on 2005/07/12 21:29:39 UTC
svn commit: r216007 -
/webservices/muse/trunk/src/site/content/example/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/IntegrationserverResource.java
Author: kidz
Date: Tue Jul 12 12:29:37 2005
New Revision: 216007
URL: http://svn.apache.org/viewcvs?rev=216007&view=rev
Log:
Removed Relationship property initialization
Modified:
webservices/muse/trunk/src/site/content/example/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/IntegrationserverResource.java
Modified: webservices/muse/trunk/src/site/content/example/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/IntegrationserverResource.java
URL: http://svn.apache.org/viewcvs/webservices/muse/trunk/src/site/content/example/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/IntegrationserverResource.java?rev=216007&r1=216006&r2=216007&view=diff
==============================================================================
--- webservices/muse/trunk/src/site/content/example/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/IntegrationserverResource.java (original)
+++ webservices/muse/trunk/src/site/content/example/services/integrationserver/src/java/org/apache/ws/muse/example/integrationserver/IntegrationserverResource.java Tue Jul 12 12:29:37 2005
@@ -115,11 +115,14 @@
* individually.
*/
TopicSpaceSet aSet = getTopicSpaceSet();
- MuwsUtils.addRelationshipTopics(aSet);
-
- //MUWS TopicSpace
- TopicSpace muwsTopicSpace = new TopicSpaceImpl( MuwsConstants.NSURI_MUWS_PART2_TOPICS );
- aSet.addTopicSpace( muwsTopicSpace );
+
+ /* 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 );
@@ -245,18 +248,6 @@
prop_resourcetype.setResourceType(RESOURCE_TYPE);
resourceProperty.add(prop_resourcetype);
- // this is to satisfy the init
- 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();
- RelationshipDocument relationshipDocument = RelationshipDocument.Factory.newInstance();
- //add new type
- RelationshipType relationshipType = relationshipDocument.addNewRelationship();
- RelationshipTypeType relationshipTypeType = relationshipType.addNewType();
- XmlObject relationType = XmlObject.Factory.parse("<"+ExampleConstants.RELATIONSHIP_RELATION.getPrefix()+":"+ExampleConstants.RELATIONSHIP_RELATION.getLocalPart()+" xmlns:"+ExampleConstants.RELATIONSHIP_RELATION.getPrefix()+"=" + "\"" + ExampleConstants.RELATIONSHIP_RELATION.getNamespaceURI() + "\" />");
- XmlBeanUtils.addChildElement(relationshipTypeType, relationType);
- prop_relationship.setRelationship(relationshipType);
- resourceProperty.add(prop_relationship);
-
// init the {http://ws.apache.org/muse/example/integrationserver/properties}ServerName Resource Property
resourceProperty = resourcePropertySet.get(IntegrationserverPropertyQNames.SERVERNAME);
@@ -291,7 +282,7 @@
try
{
java.net.InetAddress localMachine = java.net.InetAddress.getLocalHost();
- name = localMachine.getHostName();
+ name = localMachine.getCanonicalHostName( );
}
catch(java.net.UnknownHostException uhe)
{
---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-dev-help@ws.apache.org