Regards, George
SCJP, SCJD, SCWCD, SCBCD
Originally posted by long lingyu:
It throws exception:
at java.rmi.Naming.lookup(Unknown Source)
at suncertify.db.DataFactory.getDatabase(DataFactory.java:83)
Marco Tedone<br />SCJP1.4,SCJP5,SCBCD,SCWCD
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Originally posted by long lingyu:
1.How can I keep the server active? in command line: start rmiregistry or in program? I don't know the method to keep the server active in program.
Take a look at this thread: Topic: RMI Binding on localhost
2.Should there need a security file for the client connection?
No, it shouldn't be necessary.
I have test a simple RMI program. It work good. The steps are:
a. start rmiregistry <port>
b. rmic -v1.2
c. run server
d. run client with arguement -Djava.security.policy
It run.
In the project,I can't connect the server. When I use createRegistry(port),there are no port in the netstat -an display. Why?
Take a look at this thread: Topic: NX: Keep server running
Regards, George
SCJP, SCJD, SCWCD, SCBCD
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
We cannot change unless we survive, but we will not survive unless we change. Evolving tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
|