IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.


#TechXchangePresenter
 View Only
Expand all | Collapse all

How to make a loaded driver reside in memory

  • 1.  How to make a loaded driver reside in memory

    Posted Fri August 18, 2006 02:24 PM

    Hi

    I have a 3rd party driver which I need to load every time I make a connection to a database. I would like to optimize it by loading the driver when a specific packade is loaded instead (only load the driver once).

    My question is: How can a make the driver “stay loaded”? If I load if from a normal java service (Class.forName(driver)), it automatically unloads when the service is finsished.

    Any ideas?

    Regards
    Mikael


    #Integration-Server-and-ESB
    #Adapters-and-E-Standards
    #webMethods


  • 2.  RE: How to make a loaded driver reside in memory

    Posted Fri August 18, 2006 04:28 PM

    If you place the driver in the \lib folder…the driver will get loaded when the server starts up and will stay loaded until the server goes down…i am not sure if this is what you are looking for…

    Hope this helps
    Anitha


    #Adapters-and-E-Standards
    #webMethods
    #Integration-Server-and-ESB


  • 3.  RE: How to make a loaded driver reside in memory

    Posted Mon August 21, 2006 10:04 AM

    Hi

    Thanks for the reply!

    It´s exactly what I´m looking for, however, the it does not seem to work.

    Another solution: I tried creating a new package and set a startup service that loaded the driver ( Class.forName(driver) ), and this seem to work. But I don´t know if it will stay loaded or if the garbage collector simply cleans it up after a while… ?

    regards
    Mikael


    #Integration-Server-and-ESB
    #Adapters-and-E-Standards
    #webMethods