Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- > <?xml version="1.0" encoding="UTF-8"?>
- >
- > <Context> <!-- Default set of monitored resources. If one of these
- > changes, the --> <!-- web application will be reloaded. -->
- > <WatchedResource>WEB-INF/web.xml</WatchedResource>
- > <WatchedResource>${catalina.base}/conf/web.xml</WatchedResource>
- >
- > <ResourceLink name="jdbc/toca_dados"
- > global="jdbc/toca_dados"
- > type="javax.sql.DataSource" />
- >
- > </Context>
- > <GlobalNamingResources> <Resource
- > auth="Container" description="User database that can be updated and
- > saved" factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
- > name="UserDatabase" pathname="conf/tomcat-users.xml"
- > type="org.apache.catalina.UserDatabase" />
- > <Resource name="jdbc/toca_dados" auth="Container" type="javax.sql.DataSource" maxActive="100" maxIdle="30"
- > maxWait="10000" username="root" password="123"
- > driverClassName="com.mysql.jdbc.Driver"
- > url="jdbc:mysql://localhost:3306/TOCA_DADOS" />
- > </GlobalNamingResources>
- <persistence xmlns="http://java.sun.com/xml/ns/persistence"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
- version="2.0">
- <persistence-unit name="CLIENT_SQL" transaction-type="RESOURCE_LOCAL">
- <non-jta-data-source>java:/comp/env/jdbc/toca_dados</non-jta-data->source>
- <properties>
- <property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5InnoDBDialect"/>
- <property name="connection.autocommit" value="false"/>
- <property name="hibernate.hbm2ddl.auto" value="create"/>
- <property name="hibernate.show_sql" value="true"/>
- </properties>
- </persistence-unit>
- </persistence>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement