|
Comments
Did you read today's front page stories & breaking news?
SYS-CON.TV
|
Product Reviews ROAD: BeanBox by Specialized Software
ROAD: BeanBox by Specialized Software
By: Ed Zebrowski
Sep. 1, 1998 12:00 AM
So there it is - the opportunity of a lifetime. It seems that the local public utilities commission has allocated a hefty budget to a new project. They want to be able to "link" all of their users in the county utilities building to the same database. All they need is a good database administrator to come in and make it happen. This appears to be a pretty cut-and-dried job on the surface, but when you arrive you are horrified to learn that all is not as it seems. Most of the office employees are on a Windows NT network, the engineers upstairs need their UNIX system and, to make matters worse, Bessie down in records in the basement won't part with her Mac. (This truly is a government operation!) The development of database applications that must run on many different platforms points to one solution: Java! This is okay if you're a proficient Java programmer, but what if you're not? Fear not! Your problem is solved with ROAD:BeanBox from Specialized Software International. ROAD:BeanBox creates Java applications on the fly that will access data from JDBC-enabled database servers. It contains a rich set of data-access components and data-aware user interface (UI) components implemented in Java, using JavaBeans 1.0 technology. Best of all, advanced programming knowledge isn't required to use it.
Installation of ROAD:BeanBox
The version of ROAD:BeanBox I used was packaged on CD-ROM as a JAR file. When using the product with JDK 1.1.5, installation consisted of the following steps:
A great feature of ROAD:BeanBox is that, in addition to the JDK, it works with some GUI-based IDEs as well. I had pretty good results using it with Visual Café. To install ROAD:BeanBox through Visual Café, follow these steps:
The Application Wizard: Your Key to Quick Results
Installation of the Application Wizard through Visual Café is much the same as it is with the JDK: CLASSPATH=%CLASSPATH%;C:\ BeanBox\bbox.jar; CLASSPATH=%CLASSPATH%;C:\BeanBox\appwiz.jar.
At this point it's necessary to create a link to an ODBC data source with a DSN name pointing to that source. The method used here will vary depending on the database you're working with. To keep things simple, I'll run through the sample supplied with my copy of ROAD:BeanBox. It-s a Microsoft Access file named "admin.mdb." The sample is a good way to get a feel for this product. To run the sample take the following steps: ODBC driver = Microsoft Access Driver DataSource = sample Login name = prasad Password = doll1102 Database=C:\BeanBox\admin.mdb (Or whatever the absolute path to the file is on your system) The Application Wizard is initiated with JDK or Visual Caf with the same command: java TableAppWizard.TableAppWizard.
If all goes well, this will bring up the welcome screen to the Application Wizard. Clicking "Next," you will then come to the login screen. Here you must specify the data source name you created during ODBC setup. In our example, the information entered is: Clicking the "Next" button establishes the connection to the database. The "Customized Info" screen will now display. Entering "Employee" as Application Name will change the directory path to c:\employee.java. For Application Format select the radio button named "Single Row - Vertical." Clicking the "Next" button takes you to the "Table-Column Information" screen. Select the table "PRASAD.DEMO_EMPLOYEE." This will automatically change the index name to the appropriate SQL number. The Columns List box will be filled with the columns in the PRASAD.DEMO_EMPLOYEE table. Click the ">>" button to select all the columns for display in the generated application. When you press the "Next" button you should get a pop-up box confirming the launch of the Visual Designer. The Visual Designer is used to preview and/or modify the layout of the screen before the code is generated. The fields can be resized by clicking and dragging to suit your needs. Pressing "OK" will generate the code generation confirmation box. Then press "OK." Now it's time to compile the code you-ve generated. In JDK this is done with the command javac c:\Employee.java. This class file runs with java c:\Employee. If you-re using Visual Café, import the generated code into the project. Set the main class parameter of the "Project" tab to "Employee." You will now find the "Project" tab in the "Project Options" box. Build and execute the application according to the documentation supplied with Visual Café.
As you can see, it's possible to create a single table maintenance screen in a matter of minutes. It's also possible to create "multiple row" single-table applications as well as "master detail relationship" applications using ROAD:BeanBox. Although these are a little more involved, they come much easier and quicker than with most other methods. This benefits the user because it's not necessary to take the time to learn how to write complicated programs to access and manipulate data from a server. It also allows a significant reduction in testing and configuration time. Since the amount of code is less, the amount of time testing and adjusting the code is significantly reduced. The ability to perform database tasks with less code provides other benefits as well: ROAD:BeanBox is one of the neatest development tools I've seen. Although it has a full arsenal of powerful database access tools, you need only a very basic knowledge of the Java programming language to use it effectively. That alone makes it worth its weight in gold. Reader Feedback: Page 1 of 1
Latest Cloud Developer Stories
Subscribe to the World's Most Powerful Newsletters
Subscribe to Our Rss Feeds & Get Your SYS-CON News Live!
|
SYS-CON Featured Whitepapers
Most Read This Week
Breaking Cloud Computing News
|
|||||||||||||||||||||||||||||||||||||||||||||||||