如何使用 ActiveMQ Blob 消息?

发布于 2024-09-15 15:11:28 字数 645 浏览 2 评论 0原文

有人尝试过发送 ActiveMQ Blob 消息吗?

我在通过 AMQ Blob 消息将图像上传到 Web 应用程序时遇到问题。我遵循了他们的文档( http://activemq.apache.org/blob-messages.html)。我将上传 URL 设置为我想要文件去的 url(即: http://localhost:8080/ myapp/uploads),我不断收到异常:javax.jms.JMSException:PUT未成功:404未找到。

还有其他人经历过这种情况吗?

感谢您提供的任何帮助。

我正在使用:ActiveMQ 5.3.0 和 Struts 2.1.8.1(对于我的 Web 框架)

编辑:在会话上设置 blob 传输策略时,我收到 404 Not Found 异常。当将其更改为 activemq 连接时,我现在收到 403 Forbidden 错误。

Has anyone tried sending ActiveMQ Blob messages?

I am having trouble uploading images to a webapp through AMQ Blob messages. I followed their documentation ( http://activemq.apache.org/blob-messages.html ). I set the Upload URL to be the url i wanted the files to go (ie: http://localhost:8080/myapp/uploads) and i keep getting an exception: javax.jms.JMSException: PUT was not successful: 404 Not Found.

Has anyone else experienced this?

Thanks for any help you can offer.

I am using: ActiveMQ 5.3.0 and Struts 2.1.8.1 (for my web framework)

Edit : When setting the blob transfer policy on the session, i was getting a 404 Not Found exception. When changing it to the activemq connection, i am now getting a 403 Forbidden error.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

冷︶言冷语的世界 2024-09-22 15:11:28

你必须使用 http://localhost:8080/myapp/uploads/
不要忘记“/”;)

you have to use http://localhost:8080/myapp/uploads/
dont forget the "/" ;)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文