Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[dali-dev] Re: [dtp-dev] Re: [dtp-connect-dev] List out driver files from a ConnectionProfile object

Thank you Brian.  It works.  :)


Regards,
Jack
                                                                            
 /                                                                          
 /                                                                          
                                                                            
 /  Jack Fong                                                               
 /  jackfong@xxxxxxxxxx                                                     
 /                                                                          
 /  Software Developer, Rational/AIM WebSphere, Java EE Application Tools   
    IBM Canada Ltd.                                                         
 /  905-413-3930 (T/L 969)                                                  
 /  D3/RKB/8200/MKM                                                         
 /                                                                          
 /                                                                          
 /                                                                          
 /                                                                          
 /                                                                          
 /                                                                          
                                                                            
                                                                            
 / (Embedded image moved to file: pic13644.gif)  (Embedded image moved to   
 / file: pic07186.gif)                                                      
                                                                            






                                                                           
             brian.fitzpatrick                                             
             @sybase.com                                                   
             Sent by:                                                   To 
             dtp-dev-bounces@e         DTP Connectivity project            
             clipse.org                development list                    
                                       <dtp-connect-dev@xxxxxxxxxxx>       
                                                                        cc 
             06/20/2007 06:00          dali-dev@xxxxxxxxxxx,               
             PM                        dtp-dev@xxxxxxxxxxx                 
                                                                   Subject 
                                       [dtp-dev] Re: [dtp-connect-dev]     
             Please respond to         List out driver files from a        
              DTP development          ConnectionProfile       object      
               mailing list                                                
             <dtp-dev@eclipse.                                             
                   org>                                                    
                                                                           
                                                                           
                                                                           





Hi Jack!

Try something along these lines...

                IConnectionProfile profile = getConnectionProfile();
                String driverID = profile.getBaseProperties().getProperty(

ConnectionProfileConstants.PROP_DRIVER_DEFINITION_ID);
                DriverInstance driverInstance =

DriverManager.getInstance().getDriverInstanceByID(driverID);
                String jarList = driverInstance.getJarList();
                String[] jarListArray = driverInstance.getJarListAsArray();


Hope that helps!
--Fitz

Brian Fitzpatrick
Senior Software Engineer/DTP Committer
Sybase, Inc.

                                                                           
 Jack Fong <jackfong@xxxxxxxxxx>                                           
 Sent by:                                                                  
 dtp-connect-dev-bounces@xxxxxxxxxxx                                    To 
                                              dtp-dev@xxxxxxxxxxx,         
                                              dali-dev@xxxxxxxxxxx,        
 06/19/2007 03:51 PM                          dtp-connect-dev@xxxxxxxxxxx  
                                                                        cc 
                                                                           
           Please respond to                                       Subject 
       DTP Connectivity project               [dtp-connect-dev] List out   
           development list                   driver files from a          
     <dtp-connect-dev@xxxxxxxxxxx>            ConnectionProfile            
                                              object                       
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           






Hello,

Does anyone know how to list out the driver files from an
org.eclipse.datatools.connectivity.internal.ConnectionProfile object
please?

I am expecting something like:
C:\db-derby-10.2.2.0-bin\lib\derby.jar;C:\db-derby-10.2.2.0-bin\lib\derbyclient.jar


Thank you very much.


Regards,
Jack

/
/

/  Jack Fong
/  jackfong@xxxxxxxxxx
/
/  Software Developer, Rational/AIM WebSphere, Java EE Application Tools
   IBM Canada Ltd.
/  905-413-3930 (T/L 969)
/  D3/RKB/8200/MKM
/
/
/
/
/
/


/ (Embedded image moved to file: pic17710.gif)  (Embedded image moved to
/ file: pic03291.gif)



_______________________________________________
dtp-connect-dev mailing list
dtp-connect-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/dtp-connect-dev
(See attached file: pic17710.gif)(See attached file: pic03291.gif)
_______________________________________________
dtp-dev mailing list
dtp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/dtp-dev

Attachment: pic13644.gif
Description: GIF image

Attachment: pic07186.gif
Description: GIF image

Attachment: pic17710.gif
Description: GIF image

Attachment: pic03291.gif
Description: GIF image


Back to the top