Results 1 to 5 of 5

Thread: How to install the DB2 JDBC driver with Jython

  1. #1
    Join Date
    Feb 2010
    Posts
    181

    How to install the DB2 JDBC driver with Jython

    Hi all,

    I am using DB2 Universal Database that is JDBC Drivers Program has been proved to be a powerful, and get IBM to support the technology.I heard that Jython is the Python programming language, that is 100% pure Java Achieved. I want to now that how to install the DB2 JDBC driver with Jython. Thanks in advance.
    Last edited by Liliana; 21-02-2010 at 04:06 AM.

  2. #2
    Join Date
    Jan 2008
    Posts
    1,521

    Re: hHow to install the DB2 JDBC driver with Jython

    you need to install Jython 2.1 and JVM. If you add the Jython installation path to the platform on the PATH environment variable, the installation will be very easy. Enable DB2 UDB V8 in the SAMPLE database. Running with the DB2 with the release of db2sampl program to create the SAMPLE database, also available from the DB2 install the Tools menu FirstSteps to create. In addition, you must create DB2 ID / password. Check and reply.

  3. #3
    Join Date
    Feb 2008
    Posts
    1,852

    Re: hHow to install the DB2 JDBC driver with Jython

    Jython need to import each of a Java package, including the java.lang. Jython string you can use single quotes, you can also use double quotation marks. Jython's type is dynamic, so no need to con the type of declaration of java.sql.Connection. Simply use this code:

    Code:
    from java.lang import *
    from java.sql import *
    Class.forName ( "com.ibm.db2.jcc.DB2Driver"). NewInstance ()
    con123 = DriverManage123r.getConnection ( 'jdbc: db2: / / db2host: 50000/sample', 'username', 'password')

  4. #4
    Join Date
    May 2008
    Posts
    2,389

    How to install the DB2 JDBC driver with Jython

    The following example in the Windows 2000 using the SAMPLE database and type 2 CLI JDBC driver. You can use Lambda function. Check the code:
    Code:
    toStr = lambda e: e [ 'username']+','+ e [' password']+',$'+ str (e [ 'dateof birth'])
    f = open ( 'salaries123.txt', 'w')
    f.writelines ([toStr (e) + '\ n' for e in employeeList])
    finally:
    f.close ()

  5. #5
    Join Date
    Oct 2005
    Posts
    2,393

    Re: How to install the DB2 JDBC driver with Jython

    Jython benefited from a huge database, as well as Java, such as IBM DB2 JDBC DriversPrograms such as API, seamless integration. Based on its linguistic features, Jython is very suitable for automated testing and load testing tasks that require rapid application development. Jython is a very convenient supplement for rapid inspection and construct prototypes, testing, and to deal with those more suitable for the use of its method of coding task is useful. Best of luck.

Similar Threads

  1. JDBC Driver for Open Office Base
    By Rivan in forum Software Development
    Replies: 5
    Last Post: 21-07-2010, 05:18 AM
  2. Types of different JDBC driver in JAVA technology
    By GunFighter in forum Software Development
    Replies: 3
    Last Post: 11-09-2009, 02:11 PM
  3. How to install the JDBC driver
    By AlienKing in forum Software Development
    Replies: 2
    Last Post: 11-05-2009, 07:48 PM
  4. How to use Transaction Management in JDBC
    By VinFanatic in forum Software Development
    Replies: 3
    Last Post: 25-04-2009, 12:39 PM
  5. How JSP call JDBC database connection
    By Swetlano in forum Software Development
    Replies: 3
    Last Post: 28-02-2009, 01:46 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,955,780.65352 seconds with 17 queries