####a question about jdbc driver

A question about jdbc driver: for Oracle JDBC drivers which will not allow O/R
tools to access columns over 4 kb. This affects some of the functionality of my
application.A workaround is to use the my JDBC driver that acts as a wrapper to
ensure that columns over 4 kb read and persist properly. my JDBC driver determines
which actual driver to load based on the connection URL. If you pass in a URL
that contains the string jdbc:oracle:thin, it will know to load oracle.jdbc.driver.OracleDriver.
If the URL contains the string jdbc:db2, it will know to load COM.ibm.db2.jdbc.net.DB2Driver,
and so on.
now i have set CLASSPATH for my jdbc wapper,when I Creating and Configuring a
JDBC Connection Pool,i have to input my driver name such com.lawrence.driver.....then
i did,all
is well,then i restart my WLS,when load config.xml,some errors such as "No registered
driver accept URL:jdbc:oracle:thin:@localhost:1521:lawrence",if i set driver name
is oracle.jdbc.driver.OracleDriver,all is good,no any errors.
I find some questions like:
1.for WLS8.1 ,it is only find some registed driver?
2.why it cannot load my driver wapper when it is loading jdbc Connection Pool,but
when the WLS start is finished, i Creating and Configuring a JDBC Connection Pool
then it is right?

my JDBC driver like this:
public class myDriver implements Driver {
     public static String DB2_DRIVER = "COM.ibm.db2.jdbc.net.DB2Driver";
     public static String DB2_URL = "jdbc:db2:";
     public static String HYPERSONIC_DRIVER = "org.hsqldb.jdbcDriver";
     public static String HYPERSONIC_URL = "jdbc:hsqldb:";
     public static String MYSQL_DRIVER = "com.mysql.jdbc.Driver";
     public static String MYSQL_URL = "jdbc:mysql:";
     public static String ORACLE_DRIVER = "oracle.jdbc.driver.OracleDriver";
     public static String ORACLE_URL = "jdbc:oracle:";
     public static String POSTGRESQL_DRIVER = "org.postgresql.Driver";
     public static String POSTGRESQL_URL = "jdbc:postgresql:";
     public static String SQLSERVER_DRIVER =
          "com.microsoft.jdbc.sqlserver.SQLServerDriver";
     public static String SQLSERVER_URL = "jdbc:microsoft:";
     public boolean acceptsURL(String url) throws SQLException {
          return true;
     public synchronized Connection connect(String url, Properties props)
          throws SQLException {
          if (_driver == null) {
               Class driverClass = null;
               try {
                    if (url.startsWith(DB2_URL)) {
                         driverClass = Class.forName(DB2_DRIVER);
                    else if (url.startsWith(HYPERSONIC_URL)) {
                         driverClass = Class.forName(HYPERSONIC_DRIVER);
                    else if (url.startsWith(MYSQL_URL)) {
                         driverClass = Class.forName(MYSQL_DRIVER);
                    else if (url.startsWith(ORACLE_URL)) {
                         driverClass = Class.forName(ORACLE_DRIVER);
                    else if (url.startsWith(POSTGRESQL_URL)) {
                         driverClass = Class.forName(POSTGRESQL_DRIVER);
                    else if (url.startsWith(SQLSERVER_URL)) {
                         driverClass = Class.forName(SQLSERVER_DRIVER);
                    _driver = (Driver)driverClass.newInstance();
               catch (Exception e) {
                    throw new SQLException(e.getMessage());
          Connection con = _driver.connect(url, props);
          return new myConnection(con);
     public int getMajorVersion() {
          return _driver.getMajorVersion();
     public int getMinorVersion() {
          return _driver.getMinorVersion();
     public DriverPropertyInfo[] getPropertyInfo(String url, Properties props)
          throws SQLException {
          return _driver.getPropertyInfo(url, props);
     public boolean jdbcCompliant() {
          return _driver.jdbcCompliant();
     private Driver _driver;

Similar Messages

  • Question about JDBC in BlazeDS?

    stupid question: is their a JDBC driver already installed with BlazeDS? I am currently installing BlazeDS in tomcat. Do i need to install the connector j separately, or does this come with BlazeDS? thanks

    The turnkey install ships with samples that use the HyperSQL database. The JDBC driver for this databse can be found in tomcat\webapps\samples\WEB-INF\lib\hsqldb.jar. If you want to connect to a different database then you'll need to download and deploy the JDBC driver for that database.
    The non-turnkey install does not contain a JDBC driver.

  • Very basic questions about hard drives

    I'm upgrading from vintage Beige G3, so much of the jargon about internal drives is new to me.
    My MacPro will come with an OEM 160 GB drive. I will use this for my primary boot drive -- OS and Apps. All my data, photo files etc. will be kept on my second/third drives. I do not plan any sort of RAID setup. Windows is going nowhere near my Mac.
    For the extra drives --
    1) SATA? SATA II? What's the difference and is it critical?
    1a) What is a "raptor" drive?
    2) Does size matter (we're talking about GBs here, guys...)
    3) Reliability is more important to me than speed or noise. We're a long long way from any technical help or even UPS.
    4) Do new drives need to be formatted before using them internally?
    5) If I partition one of the extra drives so I can keep a clean, backup OS boot partition, I need to format it as GUID, correct? Or does that just apply to external firewire boot drives? Does it matter which partition will be the boot partition?
    6) I've read discussions about firmware requirements for some drives. What's that all about?
    I was leaning toward MaxLine Pro 500 GB drives, but have been reading (reading too much, perhaps?) and now have all the above questions/concerns. (Whatever happened to the good ol' days of "buy an IDE drive, insert, play"?)
    Thanks for your patience with these questions. I need to get it right the first time because of our remoteness!

    1. SATA 1 interface speed rated at 1.5 Gb/s; SATA II interface speed rated at 3.0 Gb/s.
    2. Drive ratings/performance is determined by many factors. You can best find out about individual drive performance by visiting http://www.storagereview.com/ to see their benchmark results on various drives. You will also find some helpful comparisons at http://www.barefeats.com/.
    3. As for drive specs see previous answer. Generally speaking within any manufacturer's category of drive models for a given size the fastest drive will be the most expensive. Manufacturer specs usually do not provide any idea about drive performance in real world situations. Only benchmark comparisons are really useful, and even those can be confusing.
    4. Yes, you can boot an Intel Mac from an APM partitioned drive. You simply cannot install OS X from the installer disc because it will refuse to install on a drive that has not been GUID partitioned.
    5. Some older Seagate 750 GB models were not working properly when installed in a RAID configuration on Mac Pro computers. Seagate provided a firmware update to fix the problem for those who already owned the affected drives.
    I don't know where you got the idea that Intel Macs were "picky about such things." Nor that installing drives in a beige G3 was a no-brainer. The old beige G3 required a lot of mechanical effort to mount a new drive internally. You not only had to connect all the various cables, but if you had two drives on the same ribbon cable each drive had to be jumpered properly - one as MASTER and one as SLAVE. Some older ATA hard drives had two different jumper settings for a MASTER - MASTER solo and MASTER w/SLAVE. Some beige G3 models wouldn't even boot OS X unless it was installed on a MASTER drive. And, you could not install OS X on a large drive except by partitioning the drive with an 8 GB partition for OS X that had to be the first partition on the drive. RAIDs may work or not depending on if you ran OS 9 or OS X. At least to me that wasn't the "good old days" unless you were comparing installing ATA drives to dealing with SCSI. I would say that in your particular case you were lucky, and you never tried putting two drives on the same ribbon cable. Oh, and I forgot about the size limiting jumper on most ATA large drives to limit capacity to 32 GBs because that's all that was supported by FAT32. Oh, yes, and the beige G3's disk controller did not support drives larger than 128 GBs.

  • Question about JDBC and Oracle 10g AL32UTF8

    Hey all,
    Currently I have a Java program that uses lib: ojdbc14.zip. It works fine for our Oracle 10g database, but when we converted our character set to AL32UTF8, our program seems to have stopped working properly. For instance, I grab a count(*), to see how many rows an ID has in a table. Then I take that list and display and count(*) that are greater than 0. Well, my first getString works properly to generate the select count(*) statements for all the tables in the database. But then when I execute those select count(*) I can grab out the number greater than 0. That's column 1. Then the owner name is displayed in column 2. and the table name is displayed in column 3. When I do a getString(2) we only get the first letter (sometimes) of the owner of the table. Same with the table name.
    For instance, before AL32UTF8
    getString(2): SCOTT
    getString(3): PEOPLE
    After
    getString(2): S
    getString(3): P
    Now to open my connection I use:
    static Connection conn;
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    conn = DriverManager.getConnection(connection_string, username, password);
    And to create query I use:
    Statement query_1 = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);
    Any help will be greatly appreciated. Thanks
    Sincerely,
    Mel

    orkun wrote:
    I was wondering whether it was a correct way :
    -retrieving data with resultset and putting them to an arraylist, then getting to jsf datatable.Your question/problem statement is unclear, but just lookup the DAO pattern.
    Is there any better way I can speed up retrieving data from databse ?Performance is a matter of good code and datamodel and decent hardware.

  • Question about hard drive, need help lol.

    Hey I'm kinda new to the MacBook world and have a stupid question. I am getting a late 2009 MacBook unibody (white polycarbonate, model MacBook 6.1... I believe) I am switching the original 250gb 5400 rpm hard drive out for a Seagate Momentus XT 750gb 7400 rpm hybrid hard drive. I want to keep everything on the original hard drive and just pop the new hard drive and start fresh with Snow Leopard. I'm going to purchase the SL cd from apple but I do not have the original  grey start up cd that came with it (my girlfriends little sister lost it). Do I need to call apple for that cd in order to start fresh on my new hard drive or is everything I need on the SL cd?
    Also how do I go about wiping the whole computer when I put the hard drive in and use SL? I want to essentially have a completely clean laptop with a new hard drive.
    Thanks for your help in advance.

    The SL disc you get from Apple will do everything you need. When you nstall the new hard drive there will be nothing to wipe, the drive is the only piece of that Mac hat stores anything so you don't need to worry about that. Post back and let me know how that hybrid drive works out....I'm interested.

  • Question about hard drives older xraid

    We have an "older" XRaid stocked with 14 250 GB drives, connected to an xserve with fiber channel. Our premium Applecare agreement for the XRaid expired a few months ago. Prior to that, when a drive would fail, I would simply get a replacement from Apple, but I always kept a good spare drive in a drive module so that I could swap it in while waiting for the new module. I expect some drives to start failing as they get older, and buying drives in Apple drive modules is very expensive (over $600 for a 250 GB drive, if you can even find them). So my plan is to just buy bare drives and pop them into the existing drive modules when needed. My questions are:
    Are these drives ATA's or SATA's?
    What is the maximum drive size that each drive can be? Can I pull out all 7 drives on one side or the other and replace them with, say, 500 GB drives? (obviously I would have to re-init the array). Any help would be appreciated.

    >Are these drives ATA's or SATA's?
    The XServe RAID uses ATA 133 drives.
    > What is the maximum drive size that each drive can be?
    That depends on the firmware version. If you haven't updated the firmware since you got the machine, then 250GB is as big as you can go. If up update the firmware you can use 750GB drives (the largest drive currently available in the XServe RAID).
    > I pull out all 7 drives on one side or the other and replace them with, say, 500 GB drives?
    If you're not worried about warranty/support or the integrity of your data, sure. Lots of people have reported success doing this. Just be careful regarding the drives you get. Do NOT jump on the cheapest, nastiest drive you can find - there's a reason why that 750GB drive costs $99. All drives are NOT the same. You need to make sure you get server-rated drives. Most consumer/home drives are rated for something like 50,000 hours MBTF at 20% utilization (your home machine isn't always on, and is often idle even when it is on). By comparison, server drives have a much higher MTBF at a higher utilization (as much as 500,000 hours at 80% utilization).
    If you don't care about drive failures then you can use the cheaper drives, just be prepared to deal with the failures.
    Also, make sure you get identical make/model drives for al disks in the array. Mismatching drives in an array is going to cause a huge performance hit since the drives are not in sync.

  • Question about Raptor drives

    I have a Mac Pro, obviously, and am considering using a Raptor drive for my boot drive.
    I am new to Raptor drives, so can someone explain a few of my questions so I can determine if it is worth my money and time?
    Basically, I am a photographer, shooting RAW, using Aperture and CS3. That is my main use of rthe computer. The files I shoot are from the Canon 1Ds Mark III and are huge (21 megapixel each).
    If I use a Raptor drive as my boot drive with my OS and apps on it, how will this affect my red write speed on my other 3 internal drives (which are all Seagate 1 terabytes).
    I also have an external RAID system for my ever growing library from Aperture as well. I shoot about 3 terabytes of images per year.
    Is a raptor drive going to help me? Or because I won't sroe much on the main boot drive, is this silly?
    Please, when explaining, or asking me for more information, try not to use TOO much tech speak. I know very little about this stuff.
    I am learning ...

    KevShootz wrote:
    Please, when explaining, or asking me for more information, try not to use TOO much tech speak. I know very little about this stuff.
    Then let me caution you against getting sucked into the speed-demon vortex. The minute you say Raptor, you immediately attract users who typically pay closer attention to their stop-watches than they do their retouching skills. Most don't even use Photoshop, which is why I recommend every photographer consult with MacGurus.com. The owners are photographers.
    My new MacPro is FAST, especially when compared to my G4 MDD. Would I notice the millisecond differences if I had a Raptor for boot? No. I don't own a stop-watch. I sold my Raptor on eBay.
    For photographers, memory seems to be the first key to speed. You may be better off budgeting for memory than trying to figure out how to put your OS safely on a Raptor so you can (not) see how much faster your system boots. Certainly, the more storage, the better. Be certain you understand the risks with RAID.
    MacGurus has some great literature for photographer workstations. Don't hesitate to give them a call and speak to Rick or Brian if you need detailed answers. They are one helpful business, probably the best resource for photographers in the marketplace.

  • Who can help me?I have a question about JDBC with SQL Server 2000.

    import java.sql.*;
    import java.util.*;
    public class sqltest{
    static public void main(String args[]){
    try{
    Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
    }catch(Exception e){
    e.printStackTrace();
    return;
    try{
    Connection conn=DriverManager.getConnection("jdbc:microsoft:sqlserver://CE800:1181;UseDatabaseName=supermarket;user=sa;Password=");
    Statement stmt = conn.createStatement();
    ResultSet rs = stmt.executeQuery("select * from customers");
    while(rs.next()){
    System.out.println(rs.getString("username"));
    conn.close();
    }catch(Exception e){
    e.printStackTrace();
    return;
    when I run it,error occured:
    D:\MyJava\sql>java sqltest
    java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Invalid object name 'customers'.
    at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)
    at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
    at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processErrorToken(Unknown Source)
    at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReplyToken(Unknown Source)
    at com.microsoft.jdbc.sqlserver.tds.TDSExecuteRequest.processReplyToken(Unknown Source)
    at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReply(Unknown Source)
    at com.microsoft.jdbc.sqlserver.SQLServerImplStatement.getNextResultType(Unknown Source)
    at com.microsoft.jdbc.base.BaseStatement.commonTransitionToState(Unknown Source)
    at com.microsoft.jdbc.base.BaseStatement.postImplExecute(Unknown Source)
    at com.microsoft.jdbc.base.BaseStatement.commonExecute(Unknown Source)
    at com.microsoft.jdbc.base.BaseStatement.executeQueryInternal(Unknown Source)
    at com.microsoft.jdbc.base.BaseStatement.executeQuery(Unknown Source)
    at sqltest.main(sqltest.java:15)
    Please help me,thanks a lot!

    Your code seems ok, you probably end up in another Database than you expect.
    Not sure about the the UseDatabaseName=supermarket clause in your connection string.
    You can confirm that get a connection to another database by changing your query to:
    SELECT * FROM supermarket.dbo.customers
    if this works you probably get a connection to master and should look closer at the UseDatabaseName=supermarket clause.
    You did try to run the query in the Query Analyzer i take it?
    Rgds

  • Question about NAS drives

    Im looking to get some network attached storage for my home. I have a 20 inch iMac that is hard wired and a 15 inch macbook pro (not 802.11N). I have a linksys 802.11N router that i have set up. I want to attach a NAS, and was thinking about this one
    http://www.westerndigital.com/en/products/Products.asp?DriveID=279
    My questions.
    1) Would it be fast enough?
    2) If i put my itunes library on it and stream that to my Apple TV (when it gets here) will there be any buffer time?
    3) I use FCP a lot and would use it as my capture disc, will that be fast?
    4) Are there any other drives i should look at first?
    As you can see im really worried about speed so anyone that can help please let me know. Thanks

    -

  • Questions about JDBC-Drivers

    Hi,
    I'm working with JDBC-Drivers for the first time.
    How can I get detailed information about the database, subprotocol etc. the driver supports. In ODBC there exist some information functions like SQLGetInfo to explore drivers. But there seems to be no way to do this with JDBC.
    Can anybody give me some advice how to get this information ?
    J�rgen

    Hi,
    after instantiating an object implementing the Driver interface I want to know what database this driver works for. If possible, this should be done without connecting to the database. I supposed a driver should store such information in itself but there seems no way to get this information.
    The Driver interface declares a method 'getPropertyInfo' to extract information about the possible properties for this driver. Unfortunately I didn't found any description what lookup strings can be used.
    Do you know how to go on ?
    Thanks and regards
    Jugi

  • Satellite A100-599 - question about display driver update

    Hi,
    I have a Satellite A100-599 with a NVIDIA 7600go graphic card and I have Bioshock like most of you the game crashes because of some problems with the graphic card drivers, no pb...in the meantime NVIDIA released some new patches to the Forceware and after I rechecked the Toshiba driver support database I saw a new release in the Display driver list for WinXp.
    One of them seems to be from 13/09/2007. I downloaded the drivers, installed them and after I checked the driver details in the Device manager list and to my surprise the details said the drivers are from 2006. I reinstalled the drivers and the same thing appeared. I checked the XML that was in the drivers archive and surprise ...the drivers are really the old ones from 2006. So my question is this: Do you have any Display Drivers for my model that work for Bioshock :D
    Regards,Marian

    I dont know if WE have. I think it would be took some long time to ask every single user: hey, do you have some drivers for blackmodjo? Ah, come on, please. Just a little bit of them... ;)
    No, I have a better idea. Its like cooking a meal. The ingredients: DriverCleaner Pro and the website www.laptopvideo2go.com and .... ta ta ta TAAAA a lot of patience
    To get some good "bio"shocked meal just follow this receipt:
    Go to
    http://www.laptopvideo2go.com/
    read before you do anything (YES, even before you continue BREATHING) the FAQ-section on that site (RECOMMENDEDRECOMMENDEDRECOMMENDED)
    and then download the drivers. Do it, yes...
    Then download drivercleaner by searching for it on www.google.com and THEN, read their Manual before doing anything else (Ok, you can continue breathing..)
    After reading their manual you will something like:
    1. Starting program, doing something, restarting machine
    2. starting in safe mode, starting that program, removing..yadayadayada
    3. Installing new driver
    3. Playing Bioshock
    4...
    5..no..6. Thanking me and giving me your first born.. ;)
    So, by cutting away around 40% of my humoristic stuff and following the constructive technical instructions from me you will be able to play bioshock.
    Greets :)

  • A question about JDBC and MySQL

    hello dear friends,ask a question:
    if in MySQL database, i have defined a clumon as TEXT data type.
    when i use JDBC, i use which kind of java data type to hold TEXT,
    i mean which getXXX() method i should use.
    is it possible i just use getObject() and cast it to a binarystream??
    thanks in advanced.

    use this:
    declare it 1st
    String x ="";
    then u can now get the value of the field...
    x = getString("<fieldName>");is there length limitation?
    for example, i want store a String which is got from a JTextArea, i also treat it as String and insert into the column with TEXT datatype like
    insert table_name (text_column) values( string_1)
    this works in JSP, should work in JAVA too...
    hope i helped... ^_^

  • Quick question about showing drive space

    Hi,
    Just got a quick query about showing remaining drive space on the desktop.
    Before I wiped my Pismo and reinstalled Tiger (bad kernel panic), my hard drive and any other connected drives (pen drive, iPod, iDisk, etc) showed up on my Desktop with the name and drive capacity and remaining space underneath the icon.
    Now I've reinstalled, the drive capacity and remaining space don't show up on the Desktop, and I can't find how to turn it on. I've been through Preferences several times and can't find an obvious switch. Have I missed something? I'm running Tiger 10.4.8 with the machine spec below.
    Thanks in advance,
    Rob Johnson

    Sometimes, for no obvious reason, the Finder can be slow to update. And sometimes it updates instantly. Why? "Only the Shadow knows...." or maybe the Apple programmers.
    Francine
    Francine
    Schwieder

  • Question about Raid Driver Update V1.3.8.0

    Hi.
    Can anyone tell me whats the deal or what are the advantages of doing an update to the RAID driver Toshiba Windows XP MCE 1.3.8.0 ?
    Also had another problem..i tried to install the refered driver and it made an error..my raid version is still the one i had prior and couldnt install this version.
    Any help would be cool.
    thanks

    As far as I know the RAID driver need to be installed at the begging of the OS installation.
    Unfortunately there are no any official documents about the corrections and advantages of any updates.
    But I believe the newer driver could be compatible with more motherboards and controller.

  • Question about current driv

    Hello,
    Sorry if this has been covered before, but I didn't recieve an installation CD with my Audigy 2 card when I got it years ago, and I have used the current, most recent Audigy 2 drivers on this website which say they are an improvement over the ones on the disk, to install the Audigy 2 on my PC for the first time (after a reformat). Do these have the same function as the ones from the installation disk?
    Also, the previous drivers released before the most recent ones state they allow EAX support and more, do I need to install these ones over the most recent ones I just talked about, or is everything I need in the most recent drivers?

    Thalin,
    If you can identify which Audigy 2 you have, (and find it in this list) you can download the install CD from here and install the creative software as well as the driver.Message Edited by Katman on 02-4-200604:2 PM

Maybe you are looking for