cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stev...@outerthought.org
Subject [WIKI-UPDATE] JNDIDatasourceWithBorlandEnterpriseServer5.1 HowTos Mon Aug 18 13:00:07 2003
Date Mon, 18 Aug 2003 11:00:11 GMT
Page: http://wiki.cocoondev.org/Wiki.jsp?page=JNDIDatasourceWithBorlandEnterpriseServer5.1
, version: 6 on Mon Aug 18 10:41:21 2003 by CedricPicard

- {{<?xml version="1.0" encoding="UTF-8"?>\\
?                                         --

+ {{{<?xml version="1.0" encoding="UTF-8"?>
? +

- <jndi-definitions>\\
?                   --

+ <jndi-definitions>
-     <visitransact-datasource>\\
?                              --

+     <visitransact-datasource>
-         <jndi-name>serial://datasources/MyDataSource</jndi-name>\\
?                                                                 --

+         <jndi-name>serial://datasources/MyDataSource</jndi-name>
-         <driver-datasource-jndiname>serial://datasources/MyDataSourceDriver</driver-datasource-jndiname>\\
?                                                                                        
                --

+         <driver-datasource-jndiname>serial://datasources/MyDataSourceDriver</driver-datasource-jndiname>
-         <property>\\
?                   --

+         <property>
-             <prop-name>connectionType</prop-name>\\
?                                                  --

+             <prop-name>connectionType</prop-name>
-             <prop-type>Enumerated</prop-type>\\
?                                              --

+             <prop-type>Enumerated</prop-type>
-             <prop-value>Direct</prop-value>\\
?                                            --

+             <prop-value>Direct</prop-value>
-         </property>\\
?                    --

+         </property>
-         <property>\\
?                   --

+         <property>
-             <prop-name>maxPoolSize</prop-name>\\
?                                               --

+             <prop-name>maxPoolSize</prop-name>
-             <prop-type>Integer</prop-type>\\
?                                           --

+             <prop-type>Integer</prop-type>
-             <prop-value>0</prop-value>\\
?                                       --

+             <prop-value>0</prop-value>
-         </property>\\
?                    --

+         </property>
-     </visitransact-datasource>\\
?                               --

+     </visitransact-datasource>
-     <driver-datasource>\\
?                        --

+     <driver-datasource>
-         <jndi-name>serial://datasources/MyDataSourceDriver</jndi-name>\\
?                                                                       --

+         <jndi-name>serial://datasources/MyDataSourceDriver</jndi-name>
-         <datasource-class-name>com.inet.tds.PDataSource</datasource-class-name>\\
?                                                                                --

+         <datasource-class-name>com.inet.tds.PDataSource</datasource-class-name>
-         <log-writer>true</log-writer>\\
?                                      --

+         <log-writer>true</log-writer>
-         <property>\\
?                   --

+         <property>
-             <prop-name>databaseName</prop-name>\\
?                                                --

+             <prop-name>databaseName</prop-name>
-             <prop-type>String</prop-type>\\
?                                          --

+             <prop-type>String</prop-type>
-             <prop-value>MYDB</prop-value>\\
?                                          --

+             <prop-value>MYDB</prop-value>
-         </property>\\
?                    --

+         </property>
-         <property>\\
?                   --

+         <property>
-             <prop-name>serverName</prop-name>\\
?                                              --

+             <prop-name>serverName</prop-name>
-             <prop-type>String</prop-type>\\
?                                          --

+             <prop-type>String</prop-type>
-             <prop-value>MYSERVER</prop-value>\\
?                                              --

+             <prop-value>MYSERVER</prop-value>
-         </property>\\
?                    --

+         </property>
-         <property>\\
?                   --

+         <property>
-             <prop-name>user</prop-name>\\
?                                        --

+             <prop-name>user</prop-name>
-             <prop-type>String</prop-type>\\
?                                          --

+             <prop-type>String</prop-type>
-             <prop-value>MYUSER</prop-value>\\
?                                            --

+             <prop-value>MYUSER</prop-value>
-         </property>\\
?                    --

+         </property>
-         <property>\\
?                   --

+         <property>
-             <prop-name>password</prop-name>\\
?                                            --

+             <prop-name>password</prop-name>
-             <prop-type>String</prop-type>\\
?                                          --

+             <prop-type>String</prop-type>
-             <prop-value>MYPASSWORD</prop-value>\\
?                                                --

+             <prop-value>MYPASSWORD</prop-value>
-         </property>\\
?                    --

+         </property>
-         <property>\\
?                   --

+         <property>
-             <prop-name>portNumber</prop-name>\\
?                                              --

+             <prop-name>portNumber</prop-name>
-             <prop-type>Integer</prop-type>\\
?                                           --

+             <prop-type>Integer</prop-type>
-             <prop-value>MYPORTNUMBER</prop-value>\\
?                                                  --

+             <prop-value>MYPORTNUMBER</prop-value>
-         </property>\\
?                    --

+         </property>
-     </driver-datasource>\\
?                         --

+     </driver-datasource>
- </jndi-definitions>}}\\
?                      ^^

+ </jndi-definitions>}}}
?                      ^

- in web.xml, you will need to define the resource reference for your datasource (bold in
the provided sample)\\
?                                                                                 ^^^  ^^

+ in web.xml, you will need to define the resource reference for your datasource (at the end
of the provided sample)\\
?                                                                                 ^^^^^^^^^
 ^^

- {{<?xml version="1.0" encoding="UTF-8"?>\\
?                                         --

+ {{{<?xml version="1.0" encoding="UTF-8"?>
? +

- <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">\\
?                                                                                        
                                    --

+ <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
- <web-app>\\
?          --

+ <web-app>
-   <servlet>\\
?            --

+   <servlet>
-     <servlet-name>Cocoon2</servlet-name>\\
?                                         --

+     <servlet-name>Cocoon2</servlet-name>
-     <servlet-class>org.apache.cocoon.servlet.CocoonServlet</servlet-class>\\
?                                                                           --

+     <servlet-class>org.apache.cocoon.servlet.CocoonServlet</servlet-class>
-     <init-param>\\
?                 --

+     <init-param>
-       <param-name>configurations</param-name>\\
?                                              --

+       <param-name>configurations</param-name>
-       <param-value>/WEB-INF/cocoon.xconf</param-value>\\
?                                                       --

+       <param-value>/WEB-INF/cocoon.xconf</param-value>
-     </init-param>\\
?                  --

+     </init-param>
-     <init-param>\\
?                 --

+     <init-param>
-       <param-name>init-classloader</param-name>\\
?                                                --

+       <param-name>init-classloader</param-name>
-       <param-value>false</param-value>\\
?                                       --

+       <param-value>false</param-value>
-     </init-param>\\
?                  --

+     </init-param>
-     <init-param>\\
?                 --

+     <init-param>
-       <param-name>logkit-config</param-name>\\
?                                             --

+       <param-name>logkit-config</param-name>
-       <param-value>/WEB-INF/logkit.xconf</param-value>\\
?                                                       --

+       <param-value>/WEB-INF/logkit.xconf</param-value>
-     </init-param>\\
?                  --

+     </init-param>
-     <init-param>\\
?                 --

+     <init-param>
-       <param-name>servlet-logger</param-name>\\
?                                              --

+       <param-name>servlet-logger</param-name>
-       <param-value>access</param-value>\\
?                                        --

+       <param-value>access</param-value>
-     </init-param>\\
?                  --

+     </init-param>
-     <init-param>\\
?                 --

+     <init-param>
-       <param-name>cocoon-logger</param-name>\\
?                                             --

+       <param-name>cocoon-logger</param-name>
-       <param-value>core</param-value>\\
?                                      --

+       <param-value>core</param-value>
-     </init-param>\\
?                  --

+     </init-param>
-     <init-param>\\
?                 --

+     <init-param>
-       <param-name>log-level</param-name>\\
?                                         --

+       <param-name>log-level</param-name>
-       <param-value>DEBUG</param-value>\\
?                                       --

+       <param-value>DEBUG</param-value>
-     </init-param>\\
?                  --

+     </init-param>
-     <init-param>\\
?                 --

+     <init-param>
-       <param-name>allow-reload</param-name>\\
?                                            --

+       <param-name>allow-reload</param-name>
-       <param-value>yes</param-value>\\
?                                     --

+       <param-value>yes</param-value>
-     </init-param>\\
?                  --

+     </init-param>
-     <init-param>\\
?                 --

+     <init-param>
-       <param-name>load-class</param-name>\\
?                                          --

+       <param-name>load-class</param-name>
-       <param-value>\\
?                    --

+       <param-value>
-         com.inet.pool.PoolDriver\\
?                                 --

+         com.inet.pool.PoolDriver
-         oracle.jdbc.driver.OracleDriver\\
?                                        --

+         oracle.jdbc.driver.OracleDriver
-       </param-value>\\
?                     --

+       </param-value>
-     </init-param>\\
?                  --

+     </init-param>
-     <init-param>\\
?                 --

+     <init-param>
-       <param-name>request-factory</param-name>\\
?                                               --

+       <param-name>request-factory</param-name>
-       <param-value>org.apache.cocoon.components.request.MultipartRequestFactoryImpl</param-value>\\
?                                                                                        
         --

+       <param-value>org.apache.cocoon.components.request.MultipartRequestFactoryImpl</param-value>
-     </init-param>\\
?                  --

+     </init-param>
-     <init-param>\\
?                 --

+     <init-param>
-       <param-name>manage-exceptions</param-name>\\
?                                                 --

+       <param-name>manage-exceptions</param-name>
-       <param-value>true</param-value>\\
?                                      --

+       <param-value>true</param-value>
-     </init-param>\\
?                  --

+     </init-param>
-     <load-on-startup>-1</load-on-startup>\\
?                                          --

+     <load-on-startup>-1</load-on-startup>
-   </servlet>\\
?             --

+   </servlet>
-   <servlet-mapping>\\
?                    --

+   <servlet-mapping>
-     <servlet-name>Cocoon2</servlet-name>\\
?                                         --

+     <servlet-name>Cocoon2</servlet-name>
-     <url-pattern>*.html</url-pattern>\\
?                                      --

+     <url-pattern>*.html</url-pattern>
-   </servlet-mapping>\\
?                     --

+   </servlet-mapping>
-   <servlet-mapping>\\
?                    --

+   <servlet-mapping>
-     <servlet-name>Cocoon2</servlet-name>\\
?                                         --

+     <servlet-name>Cocoon2</servlet-name>
-     <url-pattern>*.pdf</url-pattern>\\
?                                     --

+     <url-pattern>*.pdf</url-pattern>
-   </servlet-mapping>\\
?                     --

+   </servlet-mapping>
-   <error-page>\\
?               --

+   <error-page>
-     <exception-type>ServerException</exception-type>\\
?                                                     --

+     <exception-type>ServerException</exception-type>
-     <location>/Error.jsp</location>\\
?                                    --

+     <location>/Error.jsp</location>
-   </error-page>\\
?                --

+   </error-page>
-   <taglib>\\
?           --

+   <taglib>
-     <taglib-uri>/TagLibrary.tld</taglib-uri>\\
?                                             --

+     <taglib-uri>/TagLibrary.tld</taglib-uri>
-     <taglib-location>/TagLibrary.tld</taglib-location>\\
?                                                       --

+     <taglib-location>/TagLibrary.tld</taglib-location>
-   </taglib>\\
?            --

+   </taglib>
-   __<resource-ref>\\
?   --              --

+   <resource-ref>
-     <description>datasource</description>\\
?                                          --

+     <description>datasource</description>
-     <res-ref-name>jdbc/MyDataSource</res-ref-name>\\
?                                                   --

+     <res-ref-name>jdbc/MyDataSource</res-ref-name>
-     <res-type>javax.sql.DataSource</res-type>\\
?                                              --

+     <res-type>javax.sql.DataSource</res-type>
-     <res-auth>Container</res-auth>\\
?                                   --

+     <res-auth>Container</res-auth>
-   </resource-ref>__\\
?                  ----

+   </resource-ref>
- </web-app>}}\\
?             ^^

+ </web-app>}}}
?             ^

- {{<?xml version="1.0" encoding="UTF-8"?>\\
?                                         --

+ {{{<?xml version="1.0" encoding="UTF-8"?>
? +

- <!DOCTYPE web-app PUBLIC "-//Borland Software Corporation//DTD Web Application 2.3//EN"\\
?                                                                                        --

+ <!DOCTYPE web-app PUBLIC "-//Borland Software Corporation//DTD Web Application 2.3//EN"
-                          "http://www.borland.com/devsupport/appserver/dtds/web-app_2_3-borland.dtd">\\
?                                                                                        
            --

+                          "http://www.borland.com/devsupport/appserver/dtds/web-app_2_3-borland.dtd">
- <web-app>\\
?          --

+ <web-app>
-   <context-root>MYWEBAPP</context-root>\\
?                                        --

+   <context-root>MYWEBAPP</context-root>
-   <resource-ref>\\
?                 --

+   <resource-ref>
-     <res-ref-name>jdbc/MyDataSource</res-ref-name>\\
?                                                   --

+     <res-ref-name>jdbc/MyDataSource</res-ref-name>
-     <jndi-name>serial://datasources/MyDataSource</jndi-name>\\
?                                                             --

+     <jndi-name>serial://datasources/MyDataSource</jndi-name>
-   </resource-ref>\\
?                  --

+   </resource-ref>
- </web-app>}}\\
?             ^^

+ </web-app>}}}
?             ^

- {{  ...\\
?        --

+ {{{  ...
? +

-   <datasources>\\
?                --

+   <datasources>
-     <j2ee name="MyDS">\\
?                       --

+     <j2ee name="MyDS">
-       <dbname>MyDataSource</dbname>\\
?                                    --

+       <dbname>MyDataSource</dbname>
-     </j2ee>\\
?            --

+     </j2ee>
-   </datasources>\\
?                 --

+   </datasources>
-   ...}}\\
?        ^^

+   ...}}}
?        ^



Page: http://wiki.cocoondev.org/Wiki.jsp?page=HowTos , version: 111 on Mon Aug 18 10:15:51
2003 by CedricPicard

+ * __[JNDI Datasource with Borland Enterprise Server 5.1]__ -- How to switch from using a
Cocoon JDBC datasource to the J2EE datasource, with BES managing the connection/pooling --
+ 



Mime
View raw message