IBM Version 5 Universal Remote User Manual


 
278 The XML Files: Development of XML/XSL Applications Using WebSphere Studio
Figure 11-10 SQLToXMLds and XMLToSQLds
Class definition
Both SQLToXMLds and XMLToSQLds extend SQLToXML and XMLToXML. Each
class has a global variable to keep the datasource. The following code fragment
shows the class definition:
public class XMLToSQLds extends XMLToSQL{
private DataSource datasource;
}
public class SQLToXMLplus extends SQLToXML{
private DataSource datasource;
}
Getting the datasource
We add to methods to set datasource. We used two approaches to get the
datasource.
Tip: You need to add naming.jar from runtime library under
runtime/base_v5/lib.
Datasource
Application
SQLToXMLds
SQLToXML
DB
DB
JNDI
J2EE
Connection
Pooling
Query
Properties
-JdbcDriver
-LoginID
-Password
-JdbcServer
-Schema
-Action
-Recurse
XMLToSQLds
XMLToSQL
Datasource
SQL
Properties
-JdbcDriver
-LoginID
-Password
-JdbcServer
-Statement
-Format
-Recurse
Document
reformat