Finally I was able to find a solution, BUT the solution is still a blackbox. If anyone have the answer to WHY it has failed/successful please update the thread. Till it is solved I will let the thread open.
Solution at a glance :
1. Captured the file contents as a byte arry and wrote it to a xml file in jboss tmp folder using FileOutputStream
2. When posting to the jboss Message queue, I used the explicitly wrote xml file (1st step) using a FileInputStream as a byte array and pass it as the Message body.
View: JSP page with a FormFile
Controller Class :UploadAction.java
Foot Note: I think it is something to do with the Linux/Windows default file saving type. eg: Windows default : ANSI.
BIT (C.Sturt), SCJP, SCWCD, SCBCD, A+, OCA
The first person to drink cow's milk. That started off as a dare from this tiny ad:
a bit of art, as a gift, that will fit in a stocking