Informix

From Resin 3.0

(Difference between revisions)
Jump to: navigation, search
(New page: * [http://www-3.ibm.com/software/data/informix/tools/jdbc/">IBM Informix drivers] <b>META-INF/resin-web.xml - non-XA</b> <code><pre> <web-app xmlns="http://caucho.com/ns/resin"> &l...)
 
 
Line 1: Line 1:
* [http://www-3.ibm.com/software/data/informix/tools/jdbc/">IBM Informix drivers]
+
* [http://www-3.ibm.com/software/data/informix/tools/jdbc IBM Informix drivers]
  
  
Line 10: Line 10:
 
     &lt;driver&gt;
 
     &lt;driver&gt;
 
       &lt;type&gt;com.informix.jdbcx.IfxConnectionPoolDataSource&lt;/type&gt;
 
       &lt;type&gt;com.informix.jdbcx.IfxConnectionPoolDataSource&lt;/type&gt;
       &lt;url&gt;jdbc:informix-sqli://123.45.67.89:1533/<em>dbname</em>&lt;/url\
+
       &lt;url&gt;jdbc:informix-sqli://123.45.67.89:1533/''dbname''&lt;/url&gt;
&gt;
+
 
       &lt;init-param param-name="INFORMIXSERVER" param-value="myserver"/&gt;
 
       &lt;init-param param-name="INFORMIXSERVER" param-value="myserver"/&gt;
       &lt;user&gt;<em>username</em>&lt;/user&gt;
+
       &lt;user&gt;''username''&lt;/user&gt;
       &lt;password&gt;<em>password</em>&lt;/password&gt;
+
       &lt;password&gt;''password''&lt;/password&gt;
 
     &lt;/driver&gt;
 
     &lt;/driver&gt;
 
   &lt;/database&gt;
 
   &lt;/database&gt;
Line 29: Line 28:
 
     &lt;xa&gt;true&lt;/xa&gt;
 
     &lt;xa&gt;true&lt;/xa&gt;
 
     &lt;driver type="com.informix.jdbcx.IfxXADataSource"&gt;
 
     &lt;driver type="com.informix.jdbcx.IfxXADataSource"&gt;
       &lt;url&gt;jdbc:informix-sqli://123.45.67.89:1533/<em>dbname</em>&lt;/url\
+
       &lt;url&gt;jdbc:informix-sqli://123.45.67.89:1533/<em>dbname</em>&lt;/url&gt;
&gt;
+
 
       &lt;init-param param-name="INFORMIXSERVER" param-value="myserver"/&gt;
 
       &lt;init-param param-name="INFORMIXSERVER" param-value="myserver"/&gt;
       &lt;user&gt;<em>username</em>&lt;/user&gt;
+
       &lt;user&gt;''username''&lt;/user&gt;
       &lt;password&gt;<em>password</em>&lt;/password&gt;
+
       &lt;password&gt;''password''&lt;/password&gt;
 
     &lt;/driver&gt;
 
     &lt;/driver&gt;
 
     ...
 
     ...

Latest revision as of 18:16, 3 February 2008


META-INF/resin-web.xml - non-XA

<web-app xmlns="http://caucho.com/ns/resin">

  <database>
    <name>jdbc/informix</name>
    <driver>
      <type>com.informix.jdbcx.IfxConnectionPoolDataSource</type>
      <url>jdbc:informix-sqli://123.45.67.89:1533/''dbname''</url>
      <init-param param-name="INFORMIXSERVER" param-value="myserver"/>
      <user>''username''</user>
      <password>''password''</password>
    </driver>
  </database>

</web-app>

META-INF/resin-web.xml - XA

<web-app xmlns="http://caucho.com/ns/resin">

  <database>
    <name>jdbc/informix-xa</name>
    <xa>true</xa>
    <driver type="com.informix.jdbcx.IfxXADataSource">
      <url>jdbc:informix-sqli://123.45.67.89:1533/<em>dbname</em></url>
      <init-param param-name="INFORMIXSERVER" param-value="myserver"/>
      <user>''username''</user>
      <password>''password''</password>
    </driver>
    ...
  </database>

</web-app>
Personal tools