BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Problems showing my server RMI

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder CORBA/RMI
View previous topic :: View next topic  
Author Message
Anton
Guest





PostPosted: Wed Jun 29, 2005 2:53 pm    Post subject: Problems showing my server RMI Reply with quote



Hi,
I have created a litte application using the wizar of JBuilder

then I 've created an interface to use as remote

then I implments the main class created with JBuilder with my interface,
everything compile and I can execute but it doesn't show anything of my
program.
Here is the code

What can be wrong?

Thanks


package es.uned.dia.sd.practica.comparadorrmi;

import javax.swing.UIManager;
import java.awt.*;

import java.rmi.*;
import java.rmi.server.*;


//RemoteCompare is my Interface
public class ServidorFicheros extends UnicastRemoteObject implements
RemoteCompare {
boolean packFrame = false;
CompareResults cr = new CompareResults();
String directoryName = "";

//Construct the application
public ServidorFicheros() throws java.rmi.RemoteException {
main frame = new main();
//Validate frames that have preset sizes
//Pack frames that have useful preferred size info, e.g. from their
layout
if (packFrame) {
frame.pack();
}
else {
frame.validate();
}
//Center the window
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
Dimension frameSize = frame.getSize();
if (frameSize.height > screenSize.height) {
frameSize.height = screenSize.height;
}
if (frameSize.width > screenSize.width) {
frameSize.width = screenSize.width;
}
frame.setLocation((screenSize.width - frameSize.width) / 2,
(screenSize.height - frameSize.height) / 2);
frame.setVisible(true);
}
public CompareResults equal(String hash, String fileName, String
hashAlgorithm) throws RemoteException {
return cr;
}
public String getDirectoryName() throws RemoteException {
return directoryName;
}




//Main method
public static void main(String[] args) {
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
}
catch(Exception e) {
e.printStackTrace();
}
try {
if (System.getSecurityManager() == null){
System.setSecurityManager(new java.rmi.RMISecurityManager());
}

ServidorFicheros sf = new ServidorFicheros();
}catch(Exception e) {

}
}
}
Back to top
Paul Nichols[TeamB]
Guest





PostPosted: Tue Dec 13, 2005 8:38 am    Post subject: Re: Problems showing my server RMI Reply with quote



"Anton" <anton (AT) anton (DOT) com> wrote in message
news:42c27d85 (AT) newsgroups (DOT) borland.com...
Quote:
Hi,
I have created a litte application using the wizar of JBuilder

then I 've created an interface to use as remote

then I implments the main class created with JBuilder with my interface,
everything compile and I can execute but it doesn't show anything of my
program.
Here is the code

What can be wrong?

Thanks


What kind of exceptions are being thrown (if any). I did not see you making

any calls in your main method to the server.

Also, did you register the server?
Back to top
faiz
Guest





PostPosted: Sun Jan 29, 2006 7:44 pm    Post subject: Re: Problems showing my server RMI Reply with quote



"Paul Nichols[TeamB]" <paul (AT) comp (DOT) net> wrote:
Quote:

"Anton" <anton (AT) anton (DOT) com> wrote in message
news:42c27d85 (AT) newsgroups (DOT) borland.com...
Hi,
I have created a litte application using the wizar of JBuilder

then I 've created an interface to use as remote

then I implments the main class created with JBuilder with my interface,
everything compile and I can execute but it doesn't show anything of my
program.
Here is the code

What can be wrong?

Thanks


What kind of exceptions are being thrown (if any). I did not see you making
any calls in your main method to the server.

Also, did you register the server?



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder CORBA/RMI All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.