This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
i want to send wave file from client to server and vice versa. i need reliable connection because the wave file is most important and confidential data once data lost we cannot get back..in this situation we can send using this option
1.socket programming disadvantages:complex coding 2.http WEB(filee upload) connectionless protocol(not reliable) 3.RMI and EJB in my knowledge RMI and EJB are just client call method from client to server.however in RMI and EJB we can use port also.but the protocal in ejb is vendor specific (in weblogic t3).how the client and server communicate.is it reliable connection?
4.JMS(like EJB) but we can send streaming message or else according to our own implementation we can send large file alse
that why i am choosing JMS for file transfer...please reply me
If your files are large, then it is not recommended to use JMS because InputStream and OutputStream are not supported. It is therefore almost impossible to send a large file without loading it into memory.
SCJP 1.4, SCWCD 1.3, SCBCD 1.3
Joined: Jul 19, 2007
no we can send large file without loading into memory please check this link