Should I keep the type 1 driver?

I am an intern at FedEx, My project is to incorporate one of their databases on Microsoft Access with one of the Intranet website. The website should allow for a client to update the database, search for inquires, display recent inquires, ect... I used the sun.jdbc.odbc.JdbcOdbcDriver to do this. I have it working fine except that I have not implemented it on the network yet. However the purpose of the project is to update the database using different platforms and machines. Obviously once it is on the network, only a windows box will be able to update it, plus that database is limited to the functionality of the Microsoft driver. I guess my question is, will it be worth my time and effort to switch to a pure java driver or maybe even a type 3 without knowing much about the type 3 or 4 drivers. This means I would have to switch databases also. The current database is around 500 inquires. I am a CS major with an emphasis in java, I have never written any programs using JDBC before this one. It took me around a week to write this after reading up on JDBC. If so, any suggestions on what database and driver to switch to. If not, is their any thing that I should be aware of before putting it on the network? Any help will be much appreciated.

As of right now it only updates the database. I have not implemented the requests yet to make it three tiered. FedEx will pay for a more capable JDBC driver. I guess I don't like the bridge driver because when running the servlet off the network, you have to update the ODBC driver manager with your database. I felt the need for change because I was not aware that I could make it platform independent simply using the browser. I am currently using tomcat 5.0 to run the servlet. I think my design is pretty good. If you could please expand on having every browser connect to a servlet that would intercede with the database. Here is my design:
* File: ProblemsServlet.java
* Created on July 5,2004 7:21 AM
package problems;
import java.io.*;
import java.net.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.util.*;
import java.sql.*;
* @author michaelvogel
* @version
* The information management group at FedEx must meet the service objectives
* for computer operations specified in FedEx's business plan. This group
* monitors and maintains the on-line sufficient software by providing 24 x 7
* on-site and on-call production support to the on line system and database
* software to ensure on-line function availability. This allows them to diagnose
* problems and recommend corrective actions.
* IBM designed the operating systems FedEx uses to run this software. FedEx
* uses multiple main frames to run these operating systems. Like any operating
* system, these contain bugs and errors. When problems or errors occur with
* the operating systems, FedEx will submit a report to IBM explaining what
* happened. IBM then sends a report back containing the error or fix number,
* and either an explanation on how to fix it or a patch that will fix it.
* FedEx is to take every fix report sent by IBM and store it in a database
* using Microsoft Access. This is done so that FedEx can quickly search for
* the solution to an error before dealing with IBM.
* Class ProblemsServlet responsibility is to allow for a client to update
* the database, search for inquires, and display recent inquires. It creates
* a connection to Microsoft access using sun.jdbc.odbc.JdbcOdbcDrive, an ODBC
* bridge. A connection is made using class HttpServlet. Once a connection is
* established it updates the Problems.mdb.
public class ProblemsServlet extends HttpServlet {
private Statement statement = null;
private Connection connection = null;
String URL = "jdbc:odbc:Problems";
String userName = "anonymous";
String password = "guest";
/** Initializes the servlet.
public void init(ServletConfig config) throws ServletException {
super.init(config);
try{
Class.forName( "sun.jdbc.odbc.JdbcOdbcDriver" );
connection =
DriverManager.getConnection( URL, userName, password );
catch( Exception e ){
e.printStackTrace();
connection = null;
/** Destroys the servlet.
public void destroy() {
try{
connection.close();
catch( Exception e ){
System.err.println( "Problem closing the database" );
/** Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
* @param request servlet request
* @param response servlet response
protected void processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html");
PrintWriter out = response.getWriter();
out.println("<html>");
out.println("<head>");
out.println("<title>Servlet</title>");
out.println("</head>");
out.println("<body>");
out.println("</body>");
out.println("</html>");
out.close();
/** Handles the HTTP <code>GET</code> method.
* @param request servlet request
* @param response servlet response
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
processRequest(request, response);
/** Handles the HTTP <code>POST</code> method.
* @param request servlet request
* @param response servlet response
protected void doPost(HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException
String problemNumber, system, sev, status, version, vendor, date, fix,
action, customerImpact, description, comments;
problemNumber = req.getParameter( "Number");
system = req.getParameter( "System" );
sev = req.getParameter( "Sev" );
status = req.getParameter( "Status" );
version = req.getParameter( "Version" );
vendor = req.getParameter( "Vendor" );
date = req.getParameter( "Date" );
fix = req.getParameter( "Fix" );
action = req.getParameter( "Action" );
customerImpact = req.getParameter( "Imapct" );
description = req.getParameter( "Description" );
comments = req.getParameter( "Comments" );
PrintWriter output = res.getWriter();
res.setContentType( "text/html" );
boolean success = insertIntoDB("'"+ problemNumber + "','" + system +
"','" + sev + "','" + status + "','" + version + "','" + vendor +
"','" + date + "','" + fix + "','" + action + "','" +
customerImpact + "','" + description + "','" + comments +"'");
if ( success )
output.print( "<H2>Query add successfully!!</H2>" );
else
output.print( "<H2>An error occurred. " +
"Please try again later.<H2>" );
output.close();
* Creates the connection to the database. If a connection is established
* the values are inserted into the database in the correct fields.
* @param String values that represent the database fields
* @return true if connection is success and values are inserted correctly
* into the database. False is values do not match database fields.
private boolean insertIntoDB( String stringtoinsert )
try{
statement = connection.createStatement();
statement.execute(
"INSERT INTO Problems values (" + stringtoinsert + ");" );
statement.close();
catch ( Exception e ){
System.err.println( "ERROR: Problems with adding new entry" );
e.printStackTrace();
return false;
return true;
/** Returns a short description of the servlet.
public String getServletInfo() {
return "Short description";

Similar Messages

  • I am interested in buying a macbook laptop. I am confused however in which one I should buy for the type of work that I will be doing. I either am looking into getting a macbook pro or the macbook air. I am leaning more towards the air.

    I am interested in buying a macbook laptop. I am confused however in which one I should buy for the type of work that I will be doing. I either am looking into getting a macbook pro or the macbook air. I am leaning more towards the air.

    A basic MBA will be more than adequate.  Take into consideration that storage may be a long term issue unless you are not averse to traveling with an external HDD. 
    Ciao.

  • When I bought my D800, lightroom would not read my big files, so I had to transform them into DNG .. should I keep the DNG or the NEF files? Now, I started working only with the NEF, so I don't have this problem anymore -

    when I bought my D800, lightroom would not read my big NEF  files .. I went crazy…. so I found out I had to transform them into DNG .. should I keep the DNG or the NEF files? Now, I tried again and I am being able to work with the NEF files … don't understand…. anyway … I have to throw away some files … they are to big … should I throw the NEF or the DNGs? (as the DNGs are not edited yet…)

    Hard to say why you couldn't open them first time around...possibly low memory?
    In any event, as to the question about which to keep. This is a topic that is argued long and hard here and in other forums.
    For myself, I use only the NEF files and don't bother with DNG at all. Just can't see any long term advantage to force me to do all that extra work. Others feel that the "universal" format of DNG make it worthwhile.
    Either way, it's hard to justify keeping both (though a few people do).
    good luck
    tom

  • Should i keep the battery on when it is connected to the AC

    hello
    i have a question:
    my macbook is always vonnected to the ac,, i don't move it around"seldom"
    so i'm owndering,,will this affect my battery,,
    should i keep the battery on when it is connected to the AC?
    or should i remove it?
    thanks in advance

    Hi multiple 1,
    Modern battery technology now prevent battery becoming overcharged or create memory effect, so like First Magus said, it is ok to leave the battery in your macbook all the time.
    But apple also recommend user to use their battery once a while or calibrate to refresh the battery cell.
    Good Luck.

  • Should I keep the iPad or throw out my annoying tablet

    First when I got hrp my iPad 3 I was blown away with the retina display ans the design on the other hand the Samsung  tablet  Desighn was good and I don't need my fingers to touch the screen but is not 100% reyclable it's actually 20%. And if I do throw it out I'm just wasting money. Please help

    I have no idea what you are actually asking!
    Should I keep the iPad or throw out my annoying tablet
    By "tablet", do you mean the Samsung, or are you now referring to the iPad as a tablet?
    but is not 100% reyclable it's actually 20%  - and your point is?
    if I do throw it out I'm just wasting money - if you throw out something that works, simply because it's less recyclable then something else, then yes, you are wasting your money - and negating the value of re-cycling! 
    I'm not sure what "help" you need, nor what advice you expect anyone here to give, but if you want to chuck out either an iPad, or a Samsung tablet, send it to me!
    My address is:
    The third lamp post by the river
    Just outside London
    Europe
    Planet Earth
    and frankly, I think you should join the rest of us here on Planet Earth.

  • Should I put the new SSD drive in main HDD bay or the Superdrive/Optical bay for a Mid-2010 Macbook Pro?

    Hello All,
    I'm considering getting a new SSD drive to add on to my Mid-2010 Macbook Pro (13 inches, unibody), and wondering which one of the following two options I should really adapt: 
    (1) Replace the original OEM hard drive in the main bay with the new SSD drive, and then remove the Superdrive (or the optical CD drive) and to be fitted into an external enclosure for using it externally in the future, and then relocate the original OEM hard drive into the Superdrive position, so both the new SSD (preferably for running the OS and system files) and the old OEM hard drive (for storing media and documents for example) could be used; and
    (2) Keep the original OEM hard drive in place in the main drive, and buy a superdrive/optical drive caddy to goes with the new SSD drive, and together place the new SSD drive fitted inside the caddy into the position of the Superdrive/Optical CD drive, and configure the boot preference to be booting from the Superdrive/Optical Drive (which is now the SSD drive with OS and system files);
    I've done some researches and some suggested that option (2) is better approach for at least two reason: (a) the MBP main drive come with some sort of shock proof sensor, so placing the original optical hard drive in the main is better than placing it in the super/optical drive where there is NO shock sensing feature provided, and placing SSD in the super/optical drive, one doesn't really have to worry so much about shocks; and (b) as during the process of shutting down the MBP, for optical hard drive, some power will sometimes needed to finally spin down the drive, but if such optical hard drive is place in the superdrive, the power maybe cut off right away when MBP shut down, which may cause issue to the optical hard drive in a long run as it never properly spin it down.
    Then the main concern is that, if I adapt option (2) above, placing SSD in the super/optical drive bay and install and running the OS from there, will it decrease the performance (i.e. speed, latency, and etc.) as if i was to put the new SSD in the main drive?
    Also, any suggestions with respect to Samsung 840 EVO vs. Samsung 850 EVO (250GB)? any well-rated HD caddy aside from OWC for moving the main HDD to optical CD bay? and perhaps an external enclosure for the Superdrive?  Thanks in advance for any comment and/or suggestion. 
    - Jack

    Could you provide some rationale(s) behind it?  As far as I know, the mid 2010 Macbook Pro, the HDD is running via the SATA interface at running at 3.0 Gb/s, which is SATA II, and the Super-drive and/or the Optical drive, which is also running via SATA II interface, so I would assume the performance (i.e. primarily in speed) would be similar if not the same by placing the SSD drive in either one of the two places. 
    Also, wouldn't it be better by placing the SSD in the optical so the OEM HDD could be kept in the original main bay since it has the shock-sensing feature there?

  • How to install an SSD in a MacBook Pro and keep the original hard drive

    Step by step instructions on how to install a Crucial SSD as the primary drive in a MacBook Pro and use the original hard drive as a second drive in place of the optical drive.
    Apart from the time needed to back up your data and clone the original drive to the new SSD, you should be able complete this in less than an hour. 

    Verifying
    Install the SSD in the HDD slot
    Install the HDD in the optical slot
    Boot to the HDD and format the SSD
    Boot using Command R and restore the operating system from Time machine to the SSD
    Reformat the HDD and restore the data files to it.

  • (Copy 1) printer not keeping the exact same driver settings

    I am almost finished with a a Windows 7 image build that will be going out to multiple locations.  Found a "bug" of sorts.  During our build (done with Powershell) several printer drivers are installed, including a PS3 driver from Lexmark. 
    We have several custom size images for labels that will be printed all over the country.  When tested with that driver, it works just fine.  However, when an image is installed and we attach the Lexmark, we automatically get the infamous "(Copy
    1)" that kind of screws everything up.  Even though it shows it as using the EXACT same driver, on the original printer, we can create Custom Sizes up to 48" in length.  But on the "Copy 1" printer, we can only do Custom Sizes
    up to 14.17" in length.
    Why do we have to deal with the infinitely NOT helpful "Copy" printers in the first place?  And why is Windows 7 not copying the driver EXACTLY as the original printer??

    Hi,
    Have you used "PersistAllDeviceInstalls" setting to keep the drivers from the reference PC?
    The unattended-Setup setting: Microsoft-Windows-PnpSysPrep\PersistAllDeviceInstalls
    can save time by preventing Windows Setup from removing and reconfiguring the device state for identical hardware.
    Meanwhile, the hardware must be connected to identical locations and must use the same drivers, and the drivers must have a consistent, unique naming scheme. If the hardware is not identical, it would be problem result.
    Karen Hu
    TechNet Community Support

  • Should I keep the serial # label on the box?

    I am going to move and need to get rid off the box, should I take the serial # label off my PB box? Do I need to keep that label for any future use? Thank you!

    289/2735
    Hi gn23,
    Yes, keep this info, along with the bill that has the date and place of purchase.
    Most important of all:
    Visit the "Register My Product" link on this page:
    http://www.apple.com/support/
    It doesn't harm if registration was already OK, just to make sure.
    If some day you have a motherboard problem, what happens usually is that your serial number's infos get whipped from Memory.
    Not all repair shops reinstall the info, and some even disagree about whether setting a new number or resetting the original.
    --> This original info is good for the one who will buy your computer (used), especially if you sell it with the 2-years extended warranty.
    Welcome to the Discussions!
    Axl

  • How should i modify the hp54600a instrument driver for GPIB so i can use it for RS232 interface ?

    I try to modify the hp54600a instrument driver for GPIB, so i can use it with RS232. But somehow it didnt work. When i try to run the initilize it, the prgoram show VISA read error (time is up before the process is finish). How should I modify the VI so I can use it with RS232 interface ?

    First, check the instrument's user manual to see if the GPIB and serial command sets are the same. Also check to see what EOS(End of String) characters the instrument requires. Then, do a loopback test to test communication in LabVIEW.
    Search Results: Serial Loopback Test
    Ray K
    NI Applications EngineerMessage Edited by Molly K on 02-18-2005 10:57 PM

  • Should I keep the Macintosh HD icon on my desktop?

    For some reason, I put the Macintosh HD icon on my desktop.  I don't remember why.  Should I keep it there, and what is the reason?
    Thanks very much!!!!

    it's a personal preference. I always keep mine there.  Click on it and see what it gives you easy access to.

  • Mavericks is installed and runs well, but how long should I keep the small windows "Optimizing Your Mac" ? It has been now one month!!!

    Small window "Optimizing your Mac" (see below) has been on my Desktop for over a month now.
    How long should I keep it (... without "impacting the performance or the battery life")?

    Closing it when it first appeared wouldn't have stopped the 'optimization' so you could have closed it any time and can do so now - in any case optimization will have long since completed.

  • Should I keep the headphones plugged in at all times

    I have a classic 160GB iPod, which is really cool. I have since I brought it kept the headphones connected to avoid damage to the amplifier chip ..... do I need to be concerned. I have a Bose Sound dock and still keep the headphones connected when I dock ... again do I need to ?
    Finally I have just brought a Digital radio adapter which uses the docking connector but it has a headphone output which also acts as an aerial for the digital radio. So the question is do I need to use both headphone sockets or should I take care to avoid damaging the output amplifiers by not having headphone output impedance .....
    Any help appreciated from Apple engineering support to re-assure me

    Jules1963 wrote:
    I have since I brought it kept the headphones connected to avoid damage to the amplifier chip .....
    Huh!?? What are you talking about?
    Jules1963 wrote:
    I have a Bose Sound dock and still keep the headphones connected when I dock ... again do I need to ?
    No, you can safely unplug them. Besides, in my opinion, leaving headphones plugged in all the time risks physical damage to the headphone jack in the iPod from bumps and what not. Also I have heard several cases of people accidentally breaking off the headphone plug inside the headphone jack.
    Patrick

  • Should I keep the case on or off?

    HI all
    I am wondering if I should keep the iphone case I have which is a white incase for my 3gs on or off. I mean I have taken it off today just to remove my clear screen protector, I have now noticed dust and some tiny items around the corner of the screen and the chrome part, which I am now trying to clean out. Whats the best way to clean this phone? I am careful with my iphone, never dropped it on the concrete ground. Only might have dropped it in the car a few times and next to my bed. However it is always in a pocket with no keys or coins. What do you guys think?
    Thanks in advance.

    Why would you want to take your IP out of a case if you have it in a case to protect the finish?
    Re the clean screen protectors, I've never seen one that can be removed without picking up small pieces of dust. The deal for them is to put it on and leave it on until you want to replace it with a new protector.
    Re editing, I think you only have about 15 minutes to edit an entry and then you have to do a "reply" to add information/questions.

  • Using Macbook as a HTPC, should I keep the battery in it?

    So today, I had a quick brown out from the wind. Since the macbook I use connected to my TV as a HTPC doesn't have a battery, it instantly turned off.
    I took the battery our cause it got real real fat. There is known issue with these batteries that for some reason, they start to inflate so to speak, causing the battery to bevel and it looks like it has a tumor growing inside the case.
    I tossed the battery out cause it is a past its cycle anyway but I head that some of the time, this happens to batteries when they are plugged in to the power adapter all the time, which this was.
    Since I wont use the battery much, I can get a cheap generic battery so in the case of another power brown out, at least it wont kill the laptop, sort of a UPS backup.
    So what do you all think? Should I buy the new battery and not worry about the fat battery syndrome? Or throw in a few extra bucks and get a real UPS system just for the macbook?
    Thanks!

    One problem with running your MacBook without a battery is your MacBook will reduce the processor speed while it is operated with the battery out of it. See Mac Support article http://support.apple.com/kb/HT2332 and http://www.gearlog.com/2008/11/applenotebooks_take_hugeperf.php
    You can get a battery for less than $35 on eBay http://shop.ebay.com/i.html?LHBIN=1&_trkparms=65%253A12%257C66%253A2%257C39%253A1%257C72%253A4044&rt=nc&_nkw=m acbookbatterywhite&_dmpt=Laptop_Batteries&_sticky=1&_trksid=p3286.c0.m14&_sop=15&sc=1

Maybe you are looking for