Under development, english not reviewed, please report errors.
You can download the driver binaries to both, Axis 1.4 and GT. Please visit the Downloads Section of our Web Site.
All jars required to run an OGSA-DAI client where packed inside the jars, but we run into some problems where some ClassNotFoundException appeared, one of these errors was seen when using the driver with an Web Application deployed in Tomcat 5.0.x. You can also put the prerequisities in your CLASSPATH, see Section 'C.1.21. What do I need in my CLASSPATH to be able to run OGSA-DAI clients or compile OGSA-DAI client examples?' of the OGSA-DAI documentation.
After downloading put the driver in your classpath, and it is ready to use. Indeed you don't need any other jar to use the driver, but there is some exceptions as mentioned before.
You can download the sources and compile it to get the jars. Follow the steps bellow:
In this version of the driver you will need to install the JDBC Metadata Activity, that was developed for support the driver to get metadata regarding the exposed relational database. To install it download it from our Downloads section.
You will need the OGSA-DAI 3.0 package, download it and unpack it, if you already have it, move to the directory of OGSA-DAI package. Inside the directory of the OGSA-DAI you must create a directory, and move the Activitiy jar.
After, you need to run the following commands to deploy the activities in OGSA-DAI:
We are supposing you are using OGSA-DAI deployed into the Globus Toolkit 4 container. To see how to deploy activities in other scenarios, for example, if you are using Tomcat, see Section'16.1.8. Deploying an activity' at the OGSA-DAI 3.0 documentation.
Now you must configure your data resource to use the Activity we just deployed. To do that run the following command:
once more, we are supposing you are using OGSA-DAI deployed in GT4, to see how to do that in other scenarios see Section '16.1.9. Extending the supported activities of a resource' at the OGSA-DAI 3.0 Documentation. At this point, the driver can be used to access the specified resource.
The Driver class is br.usp.pcs.lahpc.ogsadai.jdbc.Driver. When writing a program that use the driver, before get a connection you should call the following method:
To get a connection you should inform the driver the URL of the resource, this URL have the following structure, bellow an example:
Note: the port number, the driver doesn't set a default port number yet, you must allways provide the port number.
The characters before the first two slashs references the protocol to be used, in this case jdbc:ogsadai:gsi, after the protocol we inform the machine that holds the data resource prefixed by two slashs, in our case //example.com. The following lines are the directory in the container where the dai resources were deployed, in our case /wsrf/services/dai/. The last characters, just after the last slash is the id of the relational data resource, in our case lbb
To use GT4 security with the driver, you should have a valid proxy and a valid certificate, if everything is working in your system, run the comand:
Type the passphrase of the certificate. After that, you must change the URL of the database in your application adding gsi in the protocol at the URL, for example:
Note: the port number, the driver doesn't set a default port number yet, you must allways provide the port number.