I'm trying to use a message-driven bean in my webapp, but everytime it throws me this exception :
com.sun.messaging.jmq.jmsserver.util.BrokerException: [B4122]: Can not add message 1-127.0.1.1(b0:1a:c1:66:46:a9)-1-1336769823653 to destination PhysicalQueue [Queue]. The message size of 24968685 bytes is larger than the destination individual message byte limit (maxBytesPerMsg) of 10485760 bytes.
After some researches, I've found out that the default limit is -1
, so it has to be unlimited.
I've looked everywhere in Glassfish's admin console but withou finding a way to remove this limit. Even the "new JMS resource" wizard doesn't ask anything about this parameter.
Is there any way to fix it?