This discussion is archived
3 Replies Latest reply: Jan 16, 2013 7:18 AM by JamesSutherland RSS

Toplink Migration from 9 to 11 G Problem

980749 Newbie
Currently Being Moderated
Hi all,

DatabaseLogin.setKey(farmProp.getTopLinkKey()); not availablem in Toplink 11 g and getting compile time error,

Can anyone tell me how do I fix that above piece of code in Toplink 11g

And also please share me any help URL where toplink connect to DB2 from java.



Regards
  • 1. Re: Toplink Migration from 9 to 11 G Problem
    cdelahun Pro
    Currently Being Moderated
    This must be an old application, as setKey was deprecated prior to TopLink 9 and replaced with setLicensePath, which were also deprecated prior to TopLink 9. TopLink 9 and later do not require keys or license files, so this code can be removed.

    What specific questions do you have connecting TopLink to DB2, and have you seen the documentation for TopLink here:
    http://www.oracle.com/technetwork/middleware/toplink/documentation/index.html

    Best Regards,
    Chris
  • 2. Re: Toplink Migration from 9 to 11 G Problem
    980749 Newbie
    Currently Being Moderated
    Thanx Chris,

    I had removed setKey do we still require setLicensePath, For now i have not added setLicensePath and just commented setKey .

    Now Toplink is able to connect but then I again getting below error when toplink is firing any query

    error log

    [1/10/13 3:49:35:662 PST] 00000026 SystemOut O [TopLink Info]: 2013.01.10 03:49:35.662--ServerSession(1451906698)-- login successful
    [1/10/13 3:49:35:662 PST] 00000026 SystemOut O *** In 2
    [1/10/13 3:49:35:662 PST] 00000026 SystemOut O
    TopLink logon to jdbc:db2://S1991393:50000/DEVFARM2 DB at: Jan 10, 2013 3:49:31 AM

    [1/10/13 3:49:35:662 PST] 00000026 SystemOut O server.acquireClientSession() ::ClientSession(null)
    [1/10/13 3:49:35:662 PST] 00000026 SystemOut O session ClientSession(null)


    Earlier db2 was connected using type 2 but after migration I am using type 4 for connecting db2

    I am not able to get session at this point server.acquireClientSession() this code was running before migration but now its failing

    Please let me know what went wrong and what i have to do to fix this earlier we were using toplink 9 and now its migrated to toplink 11 g

    Regards
  • 3. Re: Toplink Migration from 9 to 11 G Problem
    JamesSutherland Pro
    Currently Being Moderated
    Please include the full exception and stack trace.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points