#set( $propchange = $propChange) #set( $termination = $resourceTermination) #if($termination ) /** * This method enables the ResourceTermination Topic for notifications * about this resource's termination. If you would not like this * behaviour either comment or remove the line of code. */ try { org.apache.ws.notification.topics.util.TopicUtils.addResourceTerminationTopic( getTopicSpaceSet(), this, SPEC_NAMESPACE_SET ); } catch (Exception e) { throw new javax.xml.rpc.JAXRPCException("Unable to init the ResourceTermination topic. Cause: " + e.getLocalizedMessage(), e); } #end #if($propchange ) /** * 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); } #end