Prakash Chauhan

Greenhorn
+ Follow
since Aug 15, 2006
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Prakash Chauhan

Thanks Jeroen

I got the mistake. I have not opened the rmi registry.

by commpiling all class &
using following command

rmic HelloServer
start rmiregistry
java RegisterIt
java HelloClient

I am getting the result. Thanks once again.
16 years ago
By keeping firewall turnoff same problem is coming. How do i come to know that RMI registry is not running ? I am registring the server object to the RMI registry using the following method.

Naming.rebind("HelloServer",obj);

Have a look at my program too.

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

interface HelloInterface extends Remote {
public String sayHello( ) throws RemoteException ;
}

class HelloServer extends UnicastRemoteObject implements HelloInterface{
public HelloServer( ) throws RemoteException {
super( );
}

public String sayHello( ) throws RemoteException {
return "Hello world, the current system time is" +new Date( );
}
}


public class RegisterIt {
public static void main(String [ ] args) {
try
{
HelloServer obj = new HelloServer( );
System.out.println("object instatiated" +obj);
Naming.rebind("HelloServer",obj);
System.out.println("Hello server bound in registry");
}

catch (Exception e)
{
System.out.println(e);
}
}
}
16 years ago
Hi all,

One RMI program is giving me following error while registring the server ojbect to the rmi registry.

Can anybody help me out.

---------- New Program run ----------
object instatiatedHelloServer[UnicastServerRef [liveRef: [endpoint:[10.12.46.245:4780](local),objID:[0]]]]
Connection refused to host: 10.12.46.245; nested exception is:
java.net.ConnectException: Connection refused: connect

Thanks in advance.
16 years ago
Hi,

I want to start jsp & servlets, please suggest me good tutorials & text books.

Thanks in advance
16 years ago
JSP
I got the deprecated method with respect to line no. Thanks a lot.
16 years ago
Hi,

I am getting following error at compile time. What does it shows & how to remove this error.

Thanks in advance
PC


---------- NewProgramcompile ----------
Note: TCP_Finger_Client.java uses or overrides a deprecated API.
Note: Recompile with -Xlint eprecation for details.

Output completed (4 sec consumed) - Normal Termination
16 years ago
Thanks for your sun site tutorial. There is no dough sun sight is one of the best site for java, but it takes lots of time to understand the each topic.

Infect I am looking for some short tutorial which can give me basic idea of this topic (threading & networking). After getting the basic idea I can directly implement in my project. No need for revolving round in long textbook or long tutorial. Just revolves round in project.
16 years ago
Hi all,

I know the basic concepts of java. Now I want to practise the concepts of Threads & Networking. Can anyone suggest me the good/simple material from where i can do practise on above mentioned topics.

Thanks in advance.
[ August 15, 2006: Message edited by: PrakashC ]
16 years ago