Home > other >  Spring jetty using jndi data source
Spring jetty using jndi data source

Time:09-17

1. Used in the project depend on package, this is not here,
2. Under the project path construction jetty - db - env. XML, jetty is the default configuration file, in the server to add the following content

The JDBC/XXXX








3. In the spring framework, create applicationContext - service. The XML document, the following configuration:
<? The XML version="1.0" encoding="utf-8"?>
XMLNS: xsi="http://www.w3.org/2001/XMLSchema-instance" XMLNS: jee="http://www.springframework.org/schema/jee"
Xsi: schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-3.1.xsd "& gt;

Or



  • Related