• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Local/Remote Database Connection Mode

 
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 360
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ?
 
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 240
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic