简体   繁体   中英

How do I use ActiveMQ Blob messages?

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM