mao lao

Greenhorn
+ Follow
since Nov 26, 2002
Merit badge: grant badges
For More
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 mao lao

a question about this, Can I just use command line to start rmiregistry?
like >start rmiregistry 1099
and then start the database server?
[ September 27, 2003: Message edited by: mao lao ]
Hi, Andrew
After reread the specification I realized that client id should be used and yes, the unreferenced is a good idea
SUN: If an attempt is made to unlock a record that has not been locked by this connection, then no action is be taken
so it implies that ConnectionFactory is the design they want. right?
Thank you, Andrew.
I will rethink about the client crash.
Hello, friends:
I have 4 question about the design choice.
1. the security manager,
because I do not want dynamic download, so no policy file will be used.
Do I still need the following code in server side?

2. Exception handling
I decide to use DataInterface extends remote, both local and remote implements it, so client need to handle RemoteException even in locale mode. It is OK? I think it is same as someone just use Exception in both mode.
3. Book seat
I want to put doBook() in Data class or in server side, so do not need to care about if client crash or not, even though I think for this assignment there is no need to handle client crash, becaurse otherwise maybe we have to rollback the transaction , but in case SUN suddenly test this case, if one client dead when read, modify, the whole server will freeze
of cause put business logic in Data class is not a good idea, but it is clear and simple. in reality put business logic in server side is ok, it that correct?
4 about lockManager
I think subclass Data class in remote side that have lock and unlock is similiar with a new class LockManger if not use singleton(I think singleton is not necessary in this case),
Is that ok for me to implement it like this?
Thanks for any help
[ September 02, 2003: Message edited by: mao lao ]
Thanks.
I read some post, someone said because of using singleton, so it is very easy to handle multi-client, what is that mean?
I think even not using singleton, because in fact it is only one instance, using synchronized method is enough to handle multi-client, am I missing something?
[ August 31, 2003: Message edited by: mao lao ]
Hi, guys?
I searched singleton on this forum
some people say use singleton on Data and LockManager and passed
others say not good to use singleton, also passed
but I am not so clear about this, if I use RMI, after init the instance of the RemotDataImpl and bound it to the server, the application only have one instance and it init only one LockManager instance, it is in fact a singleton even not use sinagleton pattern to do it.( for this assignment only).
So is there any difference between using or not using singleton?
It is acturally only one instance, even there are so many clients use it, is that right, I am really confusing about this.
Thanks
[ August 30, 2003: Message edited by: mao lao ]
[ August 30, 2003: Message edited by: mao lao ]
Thanks, Andrew
yes, it should be a link there, I forgot
by the way, any comments about my structure?
Thanks
so it is the third one
Thank you
SUN says

Note that only exact matches need to be handled


so if db.db has "foo", only "foo" needed
also I think u need use distinct, so 30 thousands record do not mean 30 thousands items in your combobox
hello, everyone:
I know this question has already been discussed, but cannot find it.
the assignmnet says :
This implementation should include a class that implements the same public mehthods as the Data class

I am not sure what is this mean.
At first I thought the structure like this

so client only need handle facade, know nothing about the data class
but after read carefully about this specification, I am confused.
do I need a class in the client side that implements all the method of the DataInterface so every method connect the server through the network,

or just DataInterface on the client side like this?

It looks like most people choose the last choice(in various ways)
thanks
I download the Application Developer v5