This implements a file upload service using JAX-RS. You can use/test this on CLI using curl:
curl -F file=@<FILE_NAME> http://localhost:8080/wildfly_jaxrs_fileupload/file/upload
Feel free to clone it to start your own java ee application.
happy coding, volker