Forums Register Login

NX:Question about RandomAccessFile

+Pie Number of slices to send: Send
I am doing the UrlyBird project, the server give each client a new Data instance, so should the Data implements Serializable?( it already implements DBMain, is it allow to implement more than one DBMain interface?) And, inside the Data class, there's a RandomAccessFile object, it doesn't implement Seriliazable, so what should I do?
Thanks.
+Pie Number of slices to send: Send
 


Should the Data implements Serializable?


I dont think Data need to implements Serializable unless you will send this object / instance through the network.


it already implements DBMain, is it allow to implement more than one DBMain interface?


Yes becos the instruction does not mention anything about multiple inheritance.


inside the Data class, there's a RandomAccessFile object, it doesn't implement Seriliazable, so what should I do?


Why you need to do so?
An object that requires to implement Serializable ONLY IF it will be sent through the network. Will you need to send a RAF object via RMI?
Hope this help.
Nick.
+Pie Number of slices to send: Send
I think I should rewrite my question again (forgive my English):
Each client has an own RAF object to access remote database, many people use factory pattern, the server register only one factory, and each client get a database connection using the factory referrence, what's that connection? Is it a new Data object or a wrapped class? I am confused?
My previous laptop never exploded like that. Read this tiny ad while I sweep up the shards.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 544 times.
Similar Threads
B&S: find/search
how to define criteria for search
get all records in GUI in B&S
NX: Question about data adapter
NX:Contractor About RemoteException
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 19, 2024 00:32:18.