I prepared this in case some of you not very understand RMI, so if you are very familiar with it, you can just ignore this email.
wishing Dear Prof.Kevin can help to point mistakes out.
Here's an sample code of RMI with 4 java class: interface, remote method going to be called, client and server including almost everything we need (well, except org.w3c and sql), nothing but few lines!
This is from a Chinese website.
I just translate the explanation from Chinese into English, so that all of you can read.^_^
Since we are database subsystem, most likely, other subsystem are our "clients" so, 1 and 2 may be the things that we need to implement:
wishing Dear Prof.Kevin can help to point mistakes out.
Here's an sample code of RMI with 4 java class: interface, remote method going to be called, client and server including almost everything we need (well, except org.w3c and sql), nothing but few lines!
This is from a Chinese website.
I just translate the explanation from Chinese into English, so that all of you can read.^_^
Since we are database subsystem, most likely, other subsystem are our "clients" so, 1 and 2 may be the things that we need to implement:
1. Create remote interface(HelloInterface.java)
/*Everyone of us will need this!*/
/*Everyone of us need this!! is't just the sub_database!*/
If you want to know how to set up a RMI sever pls continue: nothing but few methods!
simple?^_^
now let's take a look at what the client will do?
now again, I must emphasize to you all that, the technical part is very easy for this course, hard part is you must get connection with the corresponding subsystem closely! and do not forget your documentation!!
all technical problem, (RMI, MYSQL,DOM,SQL)I believe all of us can handle them easily!
I'm try to learn org.w3c.dom now, so next time I will provide an sample code of how to handle xml using DOM(one of the mechanism to handle xml in java).
again If anyone is also very interesting to learn those technical problem, please do so, and then share your experience to all of us.
okay, after read through this, If anyone wish to be the lead developer of RMI, please inform Prof Kevin and me.^_^
Thanks!
/*Everyone of us will need this!*/
java code:
2.the class who actually implement remote method!
/*Everyone of us need this!! is't just the sub_database!*/
If you want to know how to set up a RMI sever pls continue: nothing but few methods!
simple?^_^
now let's take a look at what the client will do?
4. client find the remote object,and call its method(HelloClient)
java code
oh my god. Amazing!? that's all thing we are going to made, simple~?^_^
now again, I must emphasize to you all that, the technical part is very easy for this course, hard part is you must get connection with the corresponding subsystem closely! and do not forget your documentation!!
all technical problem, (RMI, MYSQL,DOM,SQL)I believe all of us can handle them easily!
I'm try to learn org.w3c.dom now, so next time I will provide an sample code of how to handle xml using DOM(one of the mechanism to handle xml in java).
again If anyone is also very interesting to learn those technical problem, please do so, and then share your experience to all of us.
okay, after read through this, If anyone wish to be the lead developer of RMI, please inform Prof Kevin and me.^_^
Thanks!
Best wishes!
Zhang Shu Hao (Mr.)
Nanyang Technological University
Computer Engineering- Year 2
HP: (+65) 98702513 or (+86) 13688017816
Email: shzhang1@e.ntu.edu.sg
Zhang Shu Hao (Mr.)
Nanyang Technological University
Computer Engineering- Year 2
HP: (+65) 98702513 or (+86) 13688017816
Email: shzhang1@e.ntu.edu.sg