Results 1 to 2 of 2

Thread: different jndi in application context

  1. #1

    Default different jndi in application context

    hi

    i have to use two different dbs in my aplication. how can i use the two jndi datasources in my applicationContext.xml

    can somebody help me please.

    AD

  2. #2
    Join Date
    Sep 2004
    Posts
    1,086

    Default

    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
           xmlns:jee="http://www.springframework.org/schema/jee"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="
                http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
                http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-2.0.xsd
           ">
    
        <jee:jndi-lookup id="dataSource1" jndi-name="java:jdbc/DS1"/>
        <jee:jndi-lookup id="dataSource2" jndi-name="java:jdbc/DS2"/>
    
    </beans>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •