0 Replies Latest reply on Feb 13, 2005 12:56 AM by Andrej Tibaut

    How to send large XML file

    Andrej Tibaut Newbie

      In my code I generate XML file from a database (table --> XML) and want to send it as a JMS message to a MDB @ JBoss server.

      Max file size is 16MB.
      Because of the size the only reasonably way seems to be compressing the XML file using ZIP (Zipentry, compressed size is 500KB) or even better GZIP (GZIPOutputStream) from java.util.zip, then send it as an ObjectMessage to JMS queue.

      Now my question is what is better:
      1. Send the compressed XML file as ObjectMessage?
      2. Or even easier send the XML file uncompressed as TextMessage because serialization does some compression as well?

      Anybody with experience?!