1.1.14.5.1.1.20. fejezet, DataSource
Beküldte pzoli - 2014, november 19 - 11:17de
ProjectDS.xml
PostgreSQL main/webapp/WEB-INF/test-ds.xml
<?xml version="1.0" encoding="UTF-8"?> ... <datasources xmlns="http://www.jboss.org/ironjacamar/schema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.jboss.org/ironjacamar/schema http://docs.jboss.org/ironjacamar/schema/datasources_1_0.xsd"> <!-- The datasource is bound into JNDI at this location. We reference this in META-INF/persistence.xml --> <datasource jndi-name="java:jboss/datasources/testDS" pool-name="forras-admin" enabled="true" use-java-context="true"><!-- ipv4address --> <connection-url>jdbc:postgresql://localhost/test?charSet=UTF8</connection-url> <driver>org.postgresql</driver> <security> <user-name>su</user-name> <password>su</password> </security> </datasource> </datasources>
MySQL main/webapp/WEB-INF/Homework4EJB3FileIndexServer-ds.xml
<?xml version="1.0" encoding="UTF-8"?> <datasource jndi-name="java:jboss/datasources/Homework4EJB3FileIndexServerDS" pool-name="Homework4EJB3FileIndexServer" enabled="true" use-java-context="true"> <connection-url>jdbc:mysql://localhost:3306/ejbfileindex?useUnicode=true&autoReconnect=true&characterEncoding=UTF-8</connection-url> <driver>com.mysql</driver> <security> <user-name>sa</user-name> <password>sa</password> </security> </datasource> </datasources>
- A hozzászóláshoz be kell jelentkezni