Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

is EJB(stateful and stateles) and JMS connection oriented(TCP/IP) or connectionless?

 
Kaleeswaran Karuppusamy
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want know ejb and JMS is connection oriented or connectionless...
 
Scott Selikoff
author
Saloon Keeper
Posts: 4014
18
Eclipse IDE Flex Google Web Toolkit
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not sure I understand your question, could you go into my detail of your issue?
 
Kaleeswaran Karuppusamy
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Roger Chung-Wee
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Kaleeswaran Karuppusamy
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
no we can send large file without loading into memory
please check this link

http://weblogs.java.net/blog/guruwons/archive/2006/11/sending_large_f.html
 
Roger Chung-Wee
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It may be possible, but this is not a well-proven solution.

Are you sure that you are doing the right thing?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic