【发布时间】:2012-05-12 06:17:51
【问题描述】:
我正在尝试在我的 web 应用程序中使用消息驱动的 bean,但每次它都会抛出这个异常:
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.
经过一番研究,我发现默认限制是-1,所以它必须是无限的。
我在 Glassfish 的管理控制台中到处查看,但没有找到消除此限制的方法。 甚至“新 JMS 资源”向导也不会询问有关此参数的任何内容。
有什么办法可以解决吗?
【问题讨论】:
标签: glassfish glassfish-3 message-driven-bean