I can think of a few:

  • From a webserver, use the Commons FileUpload library and provide a custom class that sends bytes to the EJB instead of the file system.
  • From a console program, loop through buffers of the file, and send chunks of the file to the EJB

Does this mean that you have to create a TCP-like idea for your EJB, to make sure everything got there and is in order?

How well does it handle failures?

What kinds of failures could occur?

Is it really worth it?

Links I’ve found here.

comments powered by Disqus