We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>
+ Link For Assignments, GDBs & Online Quizzes Solution
+ Link For Past Papers, Solved MCQs, Short Notes & More
Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion
How to Add New Discussion in Study Group ? Step By Step Guide Click Here.
Suppose you are a software developer at tele Sales.Inc whose business is to promote sales of other firms and get commission on this behalf. Recently your company has contracted with Teralink for its products sale. Teralink is Telecom Company which is introducing new modems. Both the companies are one building a part. Your boss wants to have a private and secure interaction with Teralink’s Director therefore he demands you to develop software by which he can send messages, daily information of stock prices and sales in the form of sales objects and files of monthly sales. Luckily Teralink is also using java based applications .As Teralink is newly established so initially it is using (UTP) Cable CAT-3 for LAN connections. As the business is in progress your boss has given you enough time for this project.
Considering this situation in your mind which one of the following technologies you will use to develop interaction among these companies either sockets or RMI? Support your choice with suitable reasons.
Note: A concise, coherent and to the point answer is preferred over lengthy comments having irrelevant details. Comments, posted on regular Lesson's MDB or sent through email will NOT be considered in any case. Any request about such an acceptance will not be catered.
Best of Luck!
.+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)
+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)+ Click Here to Search (Looking For something at vustudents.ning.com?) + Click Here To Join (Our facebook study Group)
Socket programming - you have to handle exactly which sockets are being used, you specify TCP or UDP, you handle all the formatting of messages travelling between client and server. However, if you have an existing program that talks over sockets that you want to interface to, it doesn't matter what language it's written in, as long as message formats match.
RMI - hides much of the network specific code, you don't have to worry about specific ports used (but you can if you want), RMI handles the formatting of messages between client and server. However, this option is really only for communication between Java programs. (You *could* interface Java RMI programs with programs written in other languages, but there are probably easier ways to go about it...) RMI is at a higher level than sockets. RMI implementation uses sockets to make the actual communication. In RMI you use remote objects as they were available locally. You don't transfer bytes directly, you simply invoke methods. With sockets you must handle all communication. if you are extracting the network interface difference between RMI and SOCKETS than you will find not a big difference but if you will asking about the difference between purpose than there is alot of difference between them. if v want to explain simply than v can say dat RMI basically provide us Remote Method Calling through objects. As these objects are serialized so RMI maintain the state of information but in sockets our information state is not maintained. Sockets only provide the sending of data but RMI provide the complete use of that data that we have been sent. Socket programming is the message transfer mothodology using TCP or UDP between server and client depending on particular port. RMI(Remote Method Invocation) also does the same work but the differnce is it doesnot worry about the specific ports used for transformation of message.It is mainly used in case of java programming language whenever we need to call a method remotely through objects.RMI implementations may use socket as a communication protocol.
kitny word ka ho dono mai say ayk hi likhna hy
I also submitted ........ RMI
The Sockets are the low-level (transport level) abstraction by which a Java application interacts with the network, and by addition with remote clients and services. Socket support reliable byte stream and unreliable messaging services. They are typically used for TCP/IP and UDP/IP, though other networking protocol stacks. Because Sockets support CAT 3 LAN. RMI strongly recommends CAT 5 cable for LAN connection. In question there is cat 3 for LAN connection. RMI is for high-level Java-to-Java distributed computing. RMI ports are typically blocked by default, which means that there is a non-trivial amount of configuration effort in setting up RMI-based applications. So Sockets fulfills the company requirements. So I have to go for Sockets technology.
are JSSE and Sockets same things? if not then what is the difference between these two. Please reply ASAP
RMI IS THE RIGHT ANSWER SUBMITED