I have a
Java application that must send a multipart mime message (one XML file and several HTML files) over HTTP. Our Cold Fusion server will manage the HTTP. All I want to do is use Java to prepare the multipart message, presumably in a file, and pass it to our Cold Fusion application, which will take care of the HTTP transmission.
I've looked through the Sun JavaMail documentation, and experimented a bit. But, it's still not clear to me that this is the right API for my needs.
So, I have two specific questions:
1) Does it even make sense to prepare an entire multipart package in a standalone way like I want to do, and then let the Cold Fusion HTTP server, managed by Cold Fusion code, take care of the transmission? Or, must the multipart preparation for some reason be tied in more tightly to the HTTP server?
2) What are the right Java packages/classes to do what I want?
Thanks for your help,
Ron