Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Local/Remote Database Connection Mode

 
Rudy Yeung
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In view of connecting to the database, do you provide the radio boxes on the GUI for one of these options or simply specify the connection mode in the comnmand line argument or it actually does not matter on either of those two methods?
 
Dilip kumar
Ranch Hand
Posts: 360
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm planning to display Dialog box with 2 options buttons and message "Please select the operating mode :" as soon as application starts. Based upon this value the main screen can fetch data from db. Any suggestions ?
 
Sam Wong
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Both GUI and command line are acceptable though command line is probably more popular of the two approaches. Remember, the dialog box you present wouldn't just be 2 radio buttons. It would need text box(es) to allow for parameters like codebase, port, server, etc.
 
asad ali
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I had used menu on the client GUI to select the mode. This way the client can change the mode without exiting the GUI.
 
Surya Narayana
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using a combobox which contains 2 options. Network Mode and Non Network Mode. Whenever user selects an options the complete user screen updates. Any Suggestions ?

Suri
 
Kalichar Rangantittu
Ranch Hand
Posts: 240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a problem here. Should the user know the name of the remote database service or not? Should they be able to enter it on startup or should it be hardcoded within?
Also, I have this ConnectionFactory that is exported at the Service side to a name
rmi://localhost:1234//ConnectionFactory.
This ConnectionFactory will factory a database connection. Thus the client will ask the remote database factory for a connection. When this request is made, I want the connect factory to be generic in the sense it will work for all other databases also. So in the case of our FBN database the client would request, ConnectionFactory.getRemoteConnection(conenctionName);
This connectionName is not the location of the database on the remote end but a name. The factory contains name/dblocation mapping and will factory the correct database. Whats the best way to do this? Hard coding names is not the best way I would think??? Any suggestions?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic