Yucca Nel wrote:An example of what I am asking...
/**
* Locates a Contractor based on a user defined search query.
*/
Could also be....
/**
* Locates a record based on a user search query.
*/
Yucca Nel wrote:I am very confused. I am told to only use JFC classes. AWT does not fall under JFC. Am I allowed to use AWT:Dimension and AWT.Tookit? About the Jcomponent thing I was not sure if it fell under the same category as J2EE which is just my speculation. Are we allowed to use JUnit?
Yucca Nel wrote:But for future reference to others there are the new layoutStyle
which are part of the JFC. We are allowed to JComponents?
Yucca Nel wrote:Heres what I am told to do.
It must be composed exclusively with components from the Java Foundation Classes (Swing components). But for future reference to others there are the new layoutStyle
which are part of the JFC. We are allowed to JComponents?
link ..... webpage
Zlatan Hajric wrote:
server where I have a server frame and start RMI
alone Client side (GUI) started and searches for a server , comunicates with the db via RMI
no args both server and client should start and no network connection. In my case I have no need to start the server. I can just start the client in local mode meaning it will use DataControlLocal.
No Am I way off here or is this ok. Note that my project is some 80%-90% finished![]()
Raf Szczypiorski wrote:Thank you for your reply.
I know the link you sent me to, but I noticed one thing:
The Code Conventions for the Java Programming Language document was revised and updated on April 20, 1999.
Is anyone strictly following these? For example, in the time when 19 inches widescreen displays are pretty common, do developers still limit their code to 80 lines?
jesal dosa wrote:Thanks Anne,
If you guys think its fine to leave the locking in during the standalone mode, then that seems acceptable to me as well. Thanks for you advice.
Ok then i will implement my locking in the data class. and will keep record locking even in standalone mode and as per per my previous reply i will use synchronized when implementing the DBmain interface in the data class
jesal dosa wrote:I seem to have found the answer to question 1
can sync data methods
So its fine to synchronize the read method. I hope so one can give me ideas about question 2
Question 2 I have lock and unlock methods in my DBMain interface but I want to use a locking class for the record locking.
a) can i ignore the locking methods in the interface i.e leave them empty
b) l have followed the classic example of a service interface containing a search and book method. Can i get way with just having locking implemented in the book method. I have two concrete classes implementing the service interface. The remoteServiceImp class and a ServiceImp class. The serivceImp contains the actual code for the search and book methods and the remoteSerivceImp just make a call to the serviceImp. ie
Ethem Yuksel wrote:Hi to all,
I've completed my assignment by picking sockets for the network layer. But i need a good reason for sockets against RMI. I am thinking because it was easier and easy for a junior to understand. But i am not sure if it is a good reason.
Any advices?
Fernando Franzini wrote:Hi Alex....Let me asked somenthing about RMI....there will we only one instance object bind inside RMI control and many remote proxy references ? .....like servlet inside servlet container ?
K. Tsang wrote:thanks Alex, from your description and the look of things, RMI is multithreaded already.
The thing I hope to do for my RMI server is to display messages as clients connect.
K. Tsang wrote:Hi all, I'm just curious is it true that the Swing API uses MVC pattern internally? I read books and articles that MVC this that in Swing blablabla. Similarly, for RMI, is it using the (Remote) Proxy pattern internally by saying "accessing remote objects as if they are local"?
If this is true, so if we use RMI, does it mean we automatically using Proxy pattern? Same for Swing using MVC pattern?