Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How does Applets communicate with server?

 
Tejas Jain
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What protocol it use? Can I use RMI or socket within applet?
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Applets can use any communication channel any Java code can use - HTTP, sockets, web services, JMS, email, RMI, ...

Of course, an applet are only allowed to connect to the host where they were served from, so if they need to access some other server then they'll need to be signed, or the local security policy altered. See HowCanAnAppletReadFilesOnTheLocalFileSystem for more details.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!