Announcement Announcement Module
Collapse
No announcement yet.
different jndi in application context Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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>

    Comment

    Working...
    X