Large messages
I have an application which uses MDB and JMS, and puts entire files as messages on some queue which will be read by some other application for processing the file.
But it is giving me problems. Is it due to the fact that my messages (entire files) are too huge ?
Is it that MDB are efficient only for small messages and not for large messages ?
Please reply.
[385 byte] By [
devang83a] at [2007-10-2 17:12:53]

It's probably a setting on your queue / topic rather than a problem with the MDB. For example the default maximum message size for MQ is 4MB, but can be configured up to far greater sizes (I can't remember if there is a hard limit).
Some options alternatives to sending large messages
1. Split your message into smaller chunks
This may cause problems if you need to process the chunks in their original order (especially in a clustered environment)
2. Compress the message
3. Instead of sending the message, send a "notification of availablity" e.g. the PK of a database record, then let the consumer retrieve the message using good old fashioned JDBC.