Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 24

Thread: DBRE and DB2400

  1. #11
    Join Date
    Dec 2005
    Posts
    930

    Default

    I believe I have resolved the issue, but will need you to test as I don't have access to a DB2/400 db as mentioned before. At least the driver is instantiated and not null

    Alan
    Alan Stewart
    Spring Roo Committer
    twitter @alankstewart

  2. #12
    Join Date
    Nov 2009
    Location
    Montreal, Quebec
    Posts
    398

    Default

    Well you're quicker than I was, lol.

    It Worked!!! It is absolutely genius! It had no trouble determining the nearly 400 schemas in my database. I ran both introspect and dbre on my personal schema which doesn't have too many tables in it, and it all worked out just fine.

    Truly an amazing tool! Btw, will you be in Chicago for SpringOne2GX?

  3. #13
    Join Date
    Dec 2005
    Posts
    930

    Default

    That's great news it worked for you. The timing was excellent as well, as Ben and myself had committed a lot of performance enhancements a few days ago (ROO-1506) which made schemas with 400+ tables perform a lot better than before.

    I can't make SpringOne unfortunately but Ben and Stefan will be there.
    Alan
    Alan Stewart
    Spring Roo Committer
    twitter @alankstewart

  4. #14
    Join Date
    Dec 2005
    Posts
    930

    Default

    I had a regression bug as raised by myself in ROO-1528 that affects the referencedColumnName in the @JoinColumn annotation, so get the code and do a new build or wait for RC1.
    Alan Stewart
    Spring Roo Committer
    twitter @alankstewart

  5. #15
    Join Date
    Dec 2005
    Posts
    6

    Default

    I've just downloaded the 1.1.0-RELEASE version of Roo and it appears to still have this issue. I'm new to Roo, so there's a strong chance I'm doing something wrong, but I am getting the error message described originally in this thread. Here are the steps I've taken


    roo> persistence setup --provider HIBERNATE --database DB2400

    I have edited database.properties to fill in the hostname, username, and password.

    I'm trying to introspect my library using the following:

    roo> database introspect --schema MISKCB
    No remote OBR repositories have matching add-ons matching your request
    JDBC driver not available for 'com.ibm.as400.access.AS400JDBCDriver'


    Anything I'm doing wrong?

  6. #16
    Join Date
    Dec 2005
    Posts
    6

    Default

    I spoke too soon. Just after posting, I came across an instruction to run the following:

    script install-jdbc-drivers.roo

    That installed whatever Roo was missing and now I can introspect successfully.

  7. #17
    Join Date
    Nov 2009
    Location
    Montreal, Quebec
    Posts
    398

    Default

    In case you're still wondering why you had to do this, the reason is because the JTOpen jars and a handful of other 3rd party database jars are quite large. The JTOpen I think is around 6MB+. Bundling all of those as OSGI wrapped bundles would result in a heavy download for the Roo distribution and could progressively get bigger as more database support is added. This script keeps things lightweight since not everybody wants those 3rd party libraries.

    btw, I'm glad to see I'm not the only one using DB2400

  8. #18
    Join Date
    Dec 2005
    Posts
    6

    Default

    That makes sense, but it does suggest that Roo should prompt you to run that script when you do the persistence setup and tell it you want to use DB2400. Or possibly when you get that "driver not found" error.

  9. #19
    Join Date
    Dec 2005
    Posts
    930

    Default

    Appended reminder about running install script to exception message
    Alan Stewart
    Spring Roo Committer
    twitter @alankstewart

  10. #20
    Join Date
    Dec 2005
    Posts
    930

    Default

    Out of interest, has anyone attempted to connect to DB2 for Windows/Linux using the DB2/400 driver?
    Alan Stewart
    Spring Roo Committer
    twitter @alankstewart

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •