public void store ( Activations metadata , XMLStreamWriter writer ) throws Exception { if ( metadata != null && writer != null ) { writer . writeStartElement ( XML . ELEMENT_RESOURCE_ADAPTERS ) ; for ( Activation a : metadata . getActivations ( ) ) { writer . writeStartElement ( XML . ELEMENT_RESOURCE_ADAPTER ) ; if ( a . getId ( ) != null ) writer . writeAttribute ( XML . ATTRIBUTE_ID , a . getValue ( XML . ATTRIBUTE_ID , a . getId ( ) ) ) ; writer . writeStartElement ( XML . ELEMENT_ARCHIVE ) ; writer . writeCharacters ( a . getValue ( XML . ELEMENT_ARCHIVE , a . getArchive ( ) ) ) ; writer . writeEndElement ( ) ; storeCommon ( a , writer ) ; writer . writeEndElement ( ) ; } writer . writeEndElement ( ) ; } }
Store a - ra . xml file