My code is below.  The file that I am marshalling to doesnt seem to change no mater what I do.  Below I refer to "Service" meaning a McGraw-Hill specific web service.  Any ideas?
 
 
public static void serializeConfiguration(MGHService service) {
        file://serialize state to file after changes (after calling the "setExecution" method)
        file://FIX CDATA ISSUE
 
        file://SERIALIZE
        Writer writer = null;
        try {
            writer = new FileWriter(getConfigFileDirectory() + service.getFileId());
            Marshaller.marshal(service, writer);
            writer.close();
        } catch (Exception e) {
            e.printStackTrace();
            try {
                writer.close();
            } catch (IOException ioe) {
               ioe.printStackTrace();
            }
        }finally{
             writer = null;
        }
    }

Reply via email to