Where and when is JDBC driver needed?

I'm just getting started with JDBC + MySQL. I'm writing applets. But where/when do I need to install the JDBC driver?
1. Only at compile time and only on the machine where I compile my java code.
2. On my webhosts server.
3. On the client as some sort of plug-in. Meaning everyone who views my web page would have to download & install something.
Thanks.

The JDBC driver will be downloaded to the client
machine in the codebase. The client has to havethat
class in order to connect to the server. So itdoes
add to the size of the download, it's just not
permanently installed on the client machine.
wrong.
NO you are WRONG again!!!
this is an APPLET not a SERVLET
this means....
(and really try to use your limited intelligence to read this next part carefully)
that the JDBC connection is coming from the client's machine where the applet is running.
this means that the applet will download the JDBC driver as part of what it needs to run.
if this is was a servlet then obviously the driver would only be needed on the server....
but it isn't
it's an applet
>
The database must be running on same server thatthe
applet came from, according to the sandbox
restrictions on an applet. You might haveadditional
security problems trying to connect to a different
port. wrongwrong again...
see above.
>>
I'd recommend against have an applet connectdirectly
to a database. Have the applet connect to anobject
running on the server that will do the database
connections and queries on its behalf. - MODdont know what you mean by an applet connect directly
to a database. how? the rest seems to be correct. to
be more precise, however, i must add that you would
need to use servlets in between an applet and the
server. an applet cannot connect to machines other
than the one that hosts it, yet the database can be
anywhere as long as it is visible by the jdbc code
residing on the hosting server. like you said
correctly, the jdbc code does not have to be
wodnloaded to the client machine, thus it adds
nothing to the size.
hope this helps.this almost contains some useful information...
to the original poster.
the stuff posted by duffymo is correct, stuff posted here (and elsewhere) by daFei is garbage and should be ignored.

Similar Messages

  • How to know where and when my account logged in by...

    Recently my account was used by someone and sent out a misleading message, which cause a great trouble to me. I sensed the one was in purpose. Can I check where and when my account was used on that date? How? Please help !!! waiting for your reply...

    hi dominic.
    thanks for the help and the links.
    there is something terribly lacking in mac UI with respect to this unless i am missing something. if i do a search in Spotlight i see results and even when i see the file i want to know something about i have to OPEN FINDER which shows a ton of results (including hundreds if not thousands of eml file that i have to call mac and probably pay to find out why they are still showing up when prefs in Spotlight say to not show them...)  and only then can i actively select the file and have it show a file path at the bottom of the finder window.
    this is maddening. isn't there an option to show this information in Spotlight or to show this information WHEN THE FILE IS OPEN (apologies for the caps). i mean, if i have a file open, maybe i don't know /where/ it came from for some reason.
    for instance, if i am in a hurry and i open the file directly from Spotlight i can edit it and save it but i still have no idea where it resides on my hard drive. similarly if i open a file directly from spotlight and DUPLICATE a file and i want to save it as Version 2 - i have to - - - - well i guess i have to run another search for the file i just opened and am working upon in order to just save the dang file to the same location the original is in?
    i mean, the links are showing that i should open Get Info but i think i need to see the file in finder to run this command anyway since i have to right click on the file itself.
    maybe i am missing something but can't MAC OS just show me the FILE PATH at the top of the document like it does in Finder and also show me the FILE PATH in Spotlight? seems like the current implementation is like a big game of hopscotch for no good reason except the information is not shown to the (power) user.
    maybe i am missing a new feature in ML or in Mavericks or maybe i am using the wrong terms in the original title?
    THANK YOU

  • RT - PID Gains - where and when to use them

    The attached is example code for controlling a temperature chamber. The question is where and when to use PID Gains? This code looks as though the PID Gain is used for the variable/parameter temperature (i.e. the temperature is the controlled variable).
    So would there be just one PID Gain per controlled variable/parameter (temperature in this case) or would each device controlling temperature in the system get a PID Gain?
    In this example, the fan and lamp are controlling the temperature.
    Attachments:
    Exercise 8-1.zip ‏171 KB

    Russ_in_Louisville wrote:
    I came here for help as this is where NI pointed me in their failure. I did not come here to get my "mental model" attacked.
    Can you accept that your model of the system might be wrong, though? In this thread from a few weeks ago, multiple experienced users told you that what you had on your block diagram was an array, and yet you insisted - repeatedly - that what you had was a cluster. Your model was that the item on the block diagram was a cluster, leading to the question "how do I get an index display on it?" which made no sense, because the item was in fact an array. And, when you finally realized you were wrong, you couldn't even admit it or thank the people who pointed out your error - it just "turned out" that the constant wasn't what you thought it was. I am trying to tell you that you are making a similar error here by asking questions about the system that do not correspond to what the system actually does.
    "Parameter/variable" isn't clear. There is correct terminology. A PID controller has, as inputs, a process variable and a setpoint. The process variable is the parameter you want to control, such as temperature. The setpoint is the desired value of the process variable. Let's say you do have a temperature control system where there is both a heating system and a cooling system (again, not the situation in your sample code). The two systems could both be driven by PID and share the same setpoint and process variable. Some control options for this system:
    - a single PID controller with one set of gains, where a negative output drives the cooling system and a positive output drives the heater (or some variation on this), if both the heater and chiller have similar performance characteristics.
    - two PID controllers, each with a set of gains, one controlling the heating and one controlling the cooler.
    - a combination of these two: a single controller with gains that are selected based on the setpoint or process variable, which is known as gain scheduling. The advantage to a single controller is that you'd never have the two controllers fighting each other.
    You could also have a code that controls several similar processes (for examply, multiple identical temperature chambers). In that situation you could have a single set of PID gains but multiple controllers each with a different setpoint and process variable.
    So there's not a simple yes/no answer to when you need a separate set of PID gains or an additional PID controller. It depends on the characteristics and design goals of your system. Does that help?

  • Requirements for JDBC Driver needed for SOA 8 }connection pool

    Hi,
    I have an AS400 jdbc driver. This driver is JDBC API version 2.x. Also is a Driver Type 4.
    What are the requirements of a JDBC Driver needed for connection pool in SOA 8?
    Thanks.
    Lorenzo Jimenez

    You can use pretty much any jdbc driver, including type 2 and type 4.
    You need to make sure your shared libraries needed by the driver are available to the appserver when you boot.
    Other than that, it is no different than configuring any other driver.

  • Error when SDM JDBC driver for Oracle

    When deploying the JDBC driver for Oracle on PI 7.0, I failed to achive. I got the following trace information from SDM.
    After checking the system directory structure, I found that very interesting thing. First I downloaded aii_af_jmsproviderlib.sda from the directory of ../SAP AG/0/3.0...and zip oracle jdbc driver into it, and I deployed the sda file with SDM back to the system with the option update deployed SDAs that hava any version. Curious the sda file was put into another directory of ../SAP AG/1/3.0... a new directory which was just created during the deployment.
    This never happen before and is this the reason why deploy failed.
    Aborted: development component 'com.sap.aii.af.jmsproviderlib'/'sap.com'/'SAP AG'/'7.0009.20060728142055.0000'/'1':Caught exception during deployment from SAP J2EE Engine's offline deploy API:com.sap.engine.tools.offlinedeploy.rdb.ODeploymentException: ERROR: Can't deploy component with sda /usr/sap/XID/DVEBMGS00/SDM/root/origin/sap.com/com.sap.aii.af.jmsproviderlib/SAP AG/1/7.0009.20060728142055.0000/aii_af_jmsproviderlib.sdajava.util.zip.ZipException: reading zip file central directory failed     at java.util.zip.ZipFile.open(Native Method)     at java.util.zip.ZipFile.<init>(ZipFile.java:123)     at java.util.zip.ZipFile.<init>(ZipFile.java:144)     at com.sap.engine.tools.offlinedeploy.rdb.OfflineComponentDeployImpl.deployComponent0(OfflineComponentDeployImpl.java:400)     at com.sap.engine.tools.offlinedeploy.rdb.OfflineComponentDeployImpl.deployComponent(OfflineComponentDeployImpl.java:266)     at com.sap.sdm.serverext.servertype.inqmy.extern.EngineOfflineDeployerImpl.performDeployment(EngineOfflineDeployerImpl.java:209)     at com.sap.sdm.serverext.servertype.inqmy.extern.EngineDeployerImpl.deploy(EngineDeployerImpl.java:96)     at com.sap.sdm.serverext.servertype.inqmy.EngineProcessor.executeAction(EngineProcessor.java:224)     at com.sap.sdm.app.proc.deployment.impl.PhysicalDeploymentActionExecutor.execute(PhysicalDeploymentActionExecutor.java:60)     at com.sap.sdm.app.proc.deployment.impl.DeploymentActionImpl.execute(DeploymentActionImpl.java:186)     at com.sap.sdm.app.proc.deployment.controllers.internal.impl.DeploymentExecutorImpl.execute(DeploymentExecutorImpl.java:48)     at com.sap.sdm.app.proc.deployment.states.eventhandler.ExecuteDeploymentHandler.executeAction(ExecuteDeploymentHandler.java:83)     at com.sap.sdm.app.proc.deployment.states.eventhandler.ExecuteDeploymentHandler.handleEvent(ExecuteDeploymentHandler.java:60)     at com.sap.sdm.app.proc.deployment.states.StateBeforeNextDeployment.processEvent(StateBeforeNextDeployment.java:127)     at com.sap.sdm.app.proc.deployment.states.InstContext.processEventServerSide(InstContext.java:73)     at com.sap.sdm.app.proc.deployment.states.InstContext.processEvent(InstContext.java:59)     at com.sap.sdm.app.view.controllers.DeployEventProcessor.processEvent(DeployEventProcessor.java:11)     at com.sap.sdm.client_server.deployserver.DeployCmdProcessor.processEvent(DeployCmdProcessor.java:264)     at com.sap.sdm.client_server.deployserver.DeployCmdProcessor.process(DeployCmdProcessor.java:108)     at com.sap.sdm.gui.server.GuiAdminRoleCmdProcessor.process(GuiAdminRoleCmdProcessor.java:72)     at com.sap.sdm.is.cs.session.server.SessionCmdProcessor.process(SessionCmdProcessor.java:67)     at com.sap.sdm.is.cs.cmd.server.CmdServer.execCommand(CmdServer.java:76)     at com.sap.sdm.client_server.launch.ServerLauncher$ConnectionHandlerImpl.handle(ServerLauncher.java:286)     at com.sap.sdm.is.cs.ncserver.NetCommServer.serve(NetCommServer.java:43)     at com.sap.sdm.is.cs.ncwrapper.impl.ServiceWrapper.serve(ServiceWrapper.java:39)     at com.sap.bc.cts.tp.net.Worker.run(Worker.java:50)     at java.lang.Thread.run(Thread.java:534) (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineOfflineDeployerImpl.performAction(DeploymentActionTypes).ODEXC)
    Deployment of com.sap.aii.af.jmsproviderlib finished with Error (Duration 25376 ms)

    Hi
    I used this document do deploy jdbc driver
    How To Install and Configure External Drivers for theJDBC & JMS Adapters ver3.01.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3867a582-0401-0010-6cbf-9644e49f1a10
    I used drivertoll to adding driver jars
    sds
    Marco Zerbini

  • Where I can download JDBC driver for AIX

    Only NT and SUN Solaris JDBC drivers are available in the download area. Where I can download JDBC driver for AIX 8.1.7?

    What if you try deleting the /Library/Printer/EPSON and the/Library/Caches/Epson/ folders and then reinstalling the updates?
    The scanner is shown as supported on
    http://support.apple.com/kb/HT3669
    Hope this helps.

  • Does JDBC Driver needs to be downloaded ?

    Does JDBC Driver needs to be downloaded in order to be used?

    Does JDBC Driver ....Huh?
    JDBC is an inteface. It is part of the standard API that should come with most JVMs.
    JDBC uses 'drivers' which are specific to the purpose at hand. The jdbc-odbc bridge driver comes with the Sun JVMs and has since at least version 1.1.4 (years ago.) Other drivers must be downloaded or acquired. For example the Oracle drivers can be downloaded from the Oracle site and they also come on the Oracle client install.

  • I connected my phone to computer and when I did I needed an update on my phone. when I did this all of my music on phone disappeared. How do I get my music back?

    I connected my phone to computer and when I did I needed an update on my phone. when I did this all of my music on phone disappeared. How do I get my music back?

    Resync it from your iTunes library.  Music is not included in your backup.
    http://support.apple.com/kb/HT4946

  • DatabaseMetaData.getTypeInfo ()=NULL when use JDBC Driver 9.2.0.5

    Why DatabaseMetaData.getTypeInfo () is NULL when use JDBC Driver 9.2.0.5 to connect Oracle 9.0.1.1.1 database?
    In the following links
    http://www.oracle.com/technology/tech/java/sqlj_jdbc/htdocs/jdbc_faq.htm#02_02
    the segment "Which JDBC drivers support which versions of Oracle Database?" tells us that JDBC Driver 9.2.0.5 can support Oracle 9.0.1.1.1 database.
    thanks!

    ERROR --- java.sql.SQLException: ORA-01722: &#26080;&#25928;&#25968;&#23383;

  • Update of MySQL and SQL Server JDBC Driver does not work in 1.2.1

    Hi,
    always after the update process is started i got the MySQL and SQL Server JDBC driver
    update notification.
    But all the time after i install the update i got the notification again but no errormessage
    that the update was maybe not successful ???
    Frank

    Ok
    then my subject was false
    i always try to update the extensions and now i can see that they are updated on the filesystem but the IDE does not recognize them as updated
    ....\sqldeveloper\sqldeveloper\extensions\oracle.sqldeveloper.thirdparty.drivers.mysql
    is available and new after the update process
    and under
    ...\sqldeveloper\sqldeveloper\tmp\update\oracle.sqldeveloper.thirdparty.drivers.mysql.5239.zip
    the downloaded zip file is also available.
    In the update window the message is that the extension with version 5206 is available
    Maybe that is the problem cause the downloaded files are version 11.1.1.5239
    if you look at the bundle.xml file inside the META-INF directory
    Frank

  • Can anyone tell me where and when SAP IS life sciences training is offered?

    Can anyone tell me where and when SAP IS life sciences training is offered?

    Dear Hari,
    Pls explore following URL;
    http://www.sap.com/services/education/catalog/industry/lifesciences.epx
    Bye and all the best,
    Muralidhara

  • Problem with Java 5 and Oracle 10g JDBC driver

    Hi All,
    Currently we upgrade our web application to Java 5 and Oracle 10.2 JDBC driver. And we encountered a bug, when the user entered the information through UI and data didn't store into database (Oracle 9i). The problem is that this bug is not happend so often maybe once a day and this did not happen before we upgraded to Java 5 and Oracle 10.2 JDBC driver. Does anyone encounter the same problem ? Is this Java 5 problem or Oracle JDBC driver problem ?
    Thanks,

    sounds like a database problem...
    Are you using a driver version that's supported for your database engine?
    What else did you change? We once ran into a major bug in our application that had for 5 years been masked by performance problems in our hardware and infrastructure.
    Once those were resolved the bug showed itself and caused tens of thousands of records to be erroneously inserted into our database every day.
    It's certainly NOT a problem with your JVM (if it's a decent one, like the Sun implementation).
    So it's either your database, your driver, your network (dropping packets???), or your application.
    The upgrade may just have exposed something that was already there.

  • Web Server 6.1 and ClassNotFoundException: oracle.jdbc.driver.OracleDriver

    I am trying to set up the Oracle jdbc on Sun ONE Web Server Enterprise Edition 6.1 but do not seem to be having any luck. It seems that OCI and thin fails.
    I have installed the Oracle client in the folder c:\oracle\ora92. I have selected the following items to install in the Oracle client: Oracle 9i Client 9.2.0.1.0, Common files, JDBC/OCI, JDBC/Thin, and Internet Directory Client. (I then downloaded ojdbc14.jar and placed it in jdbc\lib folder.)
    I am seeing the following error: ClassNotFoundException: oracle.jdbc.driver.OracleDriver
    From the following web page:
    <code>
    <%@page language="java"
    import="java.sql.*,
    oracle.jdbc.driver.*,
    oracle.sql.*
    "%>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>
    Hello World
    </title>
    </head>
    <body>
    <%
    //connections to ops2
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Connection conn = DriverManager.getConnection("jdbc:oracle:oci8:@wydot-ops2","username","password");
    Statement stmt = conn.createStatement();
    ResultSet rset = null;
    rset = stmt.executeQuery("SELECT AGENCY_NUMID,AGENCY_NAME FROM flightsch.state_agencies ORDER BY agency_name");
    while(rset.next())
    String ag_name = rset.getString("agency_name");
    %>
    <%= ag_name%>
    <%
    } //end of while loop
    rset.close();
    stmt.close();
    conn.close();
    %>
    </body>
    </html>
    </code>
    I have made the following entries into the Sun One Administration pages:
    Java Tab
    JVM path Settings
    Classpath suffix = c:\oracle\ora92\jdbc\lib
    Ignore Env Class Path = on
    Native Lib Path Prefix = c:\j2sdk1.4.2_02\lib
    Native Lib Path Suffix =
    JDBC Connection Pools
    Pool = jdbc-oracle-pool
    DataSource Classname = oracle.jdbc.pool.Oracle.DataSource
    URL = wydot-ops2
    User = username
    Password = password
    (Rest of items = defaults)

    oracle.jdbc.driver.OracleDriver is deprecated, you may be having an issue with that. Try oracle.jdbc.OracleDriver instead.
    Typically you don't need to registerDriver, just load the classes:
    Class.forName("oracle.jdbc.OracleDriver");
    WEB-INF/lib is the correct place to place application jar files, it is part of the automatic CLASSPATH for typical containers.

  • Where and When Should I Buy My 2GB Crucial RAM?

    hello all,
    I'm recently getting an iMac G5 and want to upgrade to 2GB with crucial memory. I'm wondering where or when I can find the best deals on them. If anyone knows it, please let me know. Thank you very much.
    (does this question violate the rule on this board? please ignore this post if it does)

    Buy it directly from Crucial.

  • Where should I put JDBC driver for MySQL

    I am trying to connect MySQL with JDBC 2.0 API. I have downloaded the driver file mm.mysql-2.0.4-bin. Where should I put this driver to make it run ?
    According to mysql.org, it says "Put mysql.jar in your classpath". I am confuse by classpath. Is it same as the path ? or is another system variable.
    thanks for clear my doubt. ^_^

    it is a different variable, but also in the same file (autoexec.bat) as path;
    set CLASSPATH=%classpath%;C:\JDK1.3.0_02\bin;c:\path\mm.mysql-2.0.4-bin
    Jamie

Maybe you are looking for