📄 thirdparty.xtp
字号:
<document> <header> <product>resin</product> <title>Third-Party Products</title> <type>contents</type> <description> <p>Resin's support for third-party libraries and packages is primarily documented at <a href="http://wiki.caucho.com">http://wiki.caucho.com</a>. This section includes links to the most popular packages.</p> </description> </header> <body> <localtoc/><s1 title="IDE"> <s2 title="Common"><p>Because Resin will detect and reload web-apps automatically, you can configure a Resin web-app to point directly to your IDE's build space.When you build the project in the IDE, Resin will automatically pick upthe changes without any need for a deploy step.</p><example title="resin.xml for IDE"><resin xmlns="http://caucho.com/ns/resin"> <cluster id=""> <server id=""> <http port="8080"/> </server> <host id=""> <b><web-app id="/test" root-directory="/home/ferg/ws/test/build"/></b> </host> </cluster></resin></example> </s2> <s2 title="Eclipse"><p>See <a href="http://wiki.caucho.com/Eclipse">http://wiki.caucho.com/Eclipse</a></p> </s2> <s2 title="IntelliJ"><p>See <a href="http://wiki.caucho.com/IntelliJ">http://wiki.caucho.com/IntelliJ</a></p> </s2></s1><s1 title="Databases"><s2 title="DB2"><p>See <a href="http://wiki.caucho.com/Db2">http://wiki.caucho.com/Db2</a></p></s2><s2 title="hsqldb"><ul><li><a href="http://wiki.caucho.com/Hsqldb">http://wiki.caucho.com/Hsqldb</a></li><li><a href="http://hsqldb.sourceforge.net/">hsqldb homepage</a></li></ul><p>"hsqldb is a relational database engine written in Java. Itoffers a small (less than 160k), fast database engine whichoffers both in memory and disk based tables."</p></s2><s2 title="Informix"><ul><li>See <a href="http://wiki.caucho.com/Informix">http://wiki.caucho.com/Informix</a></li><li><a href="http://www-3.ibm.com/software/data/informix/tools/jdbc/">IBM Informix drivers</a></li></ul><example title="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/<em>dbname</em></url> <init-param param-name="INFORMIXSERVER" param-value="myserver"/> <user><em>username</em></user> <password><em>password</em></password> </driver> </database></web-app></example><example title="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><em>username</em></user> <password><em>password</em></password> </driver> ... </database></web-app></example></s2> <!-- Informix --><s2 title="Interbase"><p>See <a href="http://wiki.caucho.com/Interbase">http://wiki.caucho.com/Interbase</a></p></s2><s2 title="MySQL Connector/J"><ul><li>See <a href="http://wiki.caucho.com/Mysql">http://wiki.caucho.com/Mysql</a>for more information</li></ul><example title="META-INF/resin-web.xml"><web-app xmlns="http://caucho.com/ns/resin"> <database> <name>jdbc/mysql</name> <driver> <type>com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource</type> <url>jdbc:mysql://localhost:3306/<em>dbname</em></url> <user><em>username</em></user> <password><em>password</em></password> </driver> </database></web-app></example></s2><s2 title="Oracle"><ul><li><a href="http://wiki.caucho.com/Oracle">http://wiki.caucho.com/Oracle</a></li><li><a href="http://otn.oracle.com/tech/java/sqlj_jdbc/htdocs/jdbc_faq.htm">Oracle JDBC Frequently Asked Questions</a></li></ul><example title="META-INF/resin-web.xml Oracle JDBC configuration - non-XA"><web-app xmlns="http://caucho.com/ns/resin"> <database> <name>jdbc/oracle</name> <driver> <type>oracle.jdbc.pool.OracleConnectionPoolDataSource</type> <url>jdbc:oracle:thin:@localhost:1521:<em>dbname</em></url> <user><em>username</em></user> <password><em>password</em></password> </driver> </database></web-app></example><p>Note, the XADataSource is only needed for distributed transactions.If your transactions only include the single data source, theOracleConnectionPoolDataSource will be more efficient.</p><example title="META-INF/resin-web.xml Oracle XADataSource JDBC configuration"><web-app xmlns="http://caucho.com/ns/resin"> <database> <jndi-name>jdbc/oracle-xa</jndi-name> <xa>true</xa> <driver> <type>oracle.jdbc.xa.client.OracleXADataSource</type> <url>jdbc:oracle:thin:@localhost:1521:<em>dbname</em></url> <user><em>username</em></user> <password><em>password</em></password> </driver> ... </database></web-app></example></s2><s2 title="PostgreSQL"><ul><li>See <a href="http://wiki.caucho.com/Postgres">http://wiki.caucho.com/Postgres</a></li><li><a href="http://jdbc.postgresql.org/">PostgreSQL JDBC Drivers</a></li></ul><example title="META-INF/resin-web.xml"><web-app xmlns="http://caucho.com/ns/resin"> <database> <name>jdbc/<em>name</em></name> <driver> <type>org.postgresql.Driver</type> <url>jdbc:postgresql://127.0.0.1:5432/<em>dbname</em></url> <user><em>username</em></user> <password><em>password</em></password> </driver> </database></web-app></example></s2><s2 title="SQL Server"><ul><li>See <a href="http://wiki.caucho.com/SQLServer">http://wiki.caucho.com/SQLServer</a></li></ul><example title="WEB-INF/resin-web.xml"><web-app xmlns="http://caucho.com/ns/resin"> <database> <name>jdbc/sqlserver</name> <driver type="com.microsoft.jdbcx.sqlserver.SQLServerDataSource"> <serverName>csdevsqla01.office.foo</serverName> <portNumber>1433</portNumber> <databaseName>Reports</databaseName> <user>XXX</user> <password>YYY</password> <selectMethod>cursor</selectMethod> </driver> <xa>true</xa> </database></web-app></example></s2><s2 name="sybase" title="Sybase"><ul><li>See <a href="http://wiki.caucho.com/Sybase">http://wiki.caucho.com/Sybase</a></li></ul><example title="WEB-INF/resin-web.xml"><web-app xmlns="http://caucho.com/ns/resin"> <database> <name>jdbc/sybase</name> <driver type="com.sybase.jdbc2.jdbc.SybConnectionPoolDataSource"> <network-protocol>Tds</network-protocol> <port-number>5000</port-number> <server-name>myhost</server-name> <database-name>mydb</database-name> <user>XXX</user> <password>YYY</password> </driver> </database></web-app></example></s2> <!-- sybase --></s1><s1 title="Groovy"><p>Groovy information is available at <a href="http://wiki.caucho.com/Groovy">http://wiki.caucho.com/Groovy</a></p></s1><s1 title="Hibernate"><p>Hibernate information is available at <a href="http://wiki.caucho.com/Hibernate">http://wiki.caucho.com/Hibernate</a></p></s1> </body></document>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -