Solved

RPC in Visual Java

Posted on 1997-11-14
10
199 Views
Last Modified: 2010-04-16
How can I do a RPC (Remote Procedure Call) in Visual Java?
If RMI is the only way, then how can I add the RMI-classes to Visual Java?
0
Comment
Question by:mkaufman
  • 5
  • 5
10 Comments
 
LVL 5

Accepted Solution

by:
msmolyak earned 50 total points
ID: 1230513
You can code your own low-level RPC interface using Java's socket mechanism if you have strong reasons for not using RMI or CORBA (for example you want to do very fine performance tuning on a socket level).

If you want to use RMI, just use it, it is part of JDK 1.1 (there is a tutorial on Javasoft's web site on how to use it). I am not sure what you mean by "Visual Java", but again you do not need to add anythong special to your Java environment to use RMI. (You need to use java.rmi package when creating remote classes and a tool which generates stubs and skeletons which is provided with JDK).

Let me know if I did not answer your question.

Michael
0
 

Author Comment

by:mkaufman
ID: 1230514
Visual Java is the Microsoft Visual J++
0
 

Author Comment

by:mkaufman
ID: 1230515
Visual Java is the Microsoft Visual J++
0
 
LVL 5

Expert Comment

by:msmolyak
ID: 1230516
Hmm, I am not sure whether Microsoft supports RMI (they might not, check the documentation for Java SDK 2.0 in their homepage, I know that Internet Explorer 4.0 does not support it). You might be better off using JDK or Symantec Cafe which is based on JDK and certainly supports RMI.
0
 
LVL 5

Expert Comment

by:msmolyak
ID: 1230517
Another comment, I don't think that you can simply add RMI classes to environment whuch does not support it. The RMI support might be build into the Java VM.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:mkaufman
ID: 1230518
What is Symantec Cafe?
Is it a Visual Developer Environment?

0
 
LVL 5

Expert Comment

by:msmolyak
ID: 1230519
Symantec Cafe is not visual, but Visual Symantec Cafe is. They had just released version 2.0 of Visual Cafe which is a nice tool, supports JDK 1.1, JavaBeans and comes with huge set of visual controls.  Check them out at http://cafe.symantec.com.
You can also get reviews of VC in various Java magazines.
0
 

Author Comment

by:mkaufman
ID: 1230520
Is the Code that I've written in Microsoft Visual J++ compatible
with Visual Cafe?
0
 

Author Comment

by:mkaufman
ID: 1230521
What is a JavaBean?

0
 
LVL 5

Expert Comment

by:msmolyak
ID: 1230522
Code is compatible unless you used Java features which are unique to Microsoft such as RNI (native interface) or J/Direct (if you don't know what they are, you are not using them). Moreover, the class files should also be compatible, between dofferent environmnets. If you are using AFC, you would have to take AFC classes along to use them with Visual Cafe.

JavaBeans is standard which allows to create component-based software using Java. Check the JavaBeans spec on http://java.sun.com
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now