This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Spring and the fly likes Configuring a JNDI datasource along with schema name Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Frameworks » Spring
Reply Bookmark "Configuring a JNDI datasource along with schema name" Watch "Configuring a JNDI datasource along with schema name" New topic
Author

Configuring a JNDI datasource along with schema name

vShyam Sundar
Ranch Hand

Joined: Oct 13, 2010
Posts: 59
Hi All,
How to configure a JNDI datasource in spring along with schema name. I am using spring and Ibatis. Though i am aware of placing the schema name in properties fiile and referring that in sql maps. I am not interested to do that as it needs 100s of sql maps to be modified with 1000s of queries.

Let me know if there is any other way of doing this.

Am really in need of help on this.

Thanks in advance.


-Shyam.
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17243
    
    1

You are asking how to lookup a DataSource that is JNDI into your Spring app?

If so, use

<jee:jndi-lookup> tag

Which uses the
JndiObjectFactoryBean

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
vShyam Sundar
Ranch Hand

Joined: Oct 13, 2010
Posts: 59
Hi Mark,
My question is not related to using data sources. Instead my question is how to use the schema name appended to my sql queries
written in Ibatis config files. Is there any way to append the schema name to all queries with spring configuration while defining the data source.

Thanks,
Shyam.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Configuring a JNDI datasource along with schema name
 
Similar Threads
Spring in CMT MDB
iBatis error - No SqlMapClient specified
Problem deploying Spring 2.5 in JBoss 5.1
IBatis JNDI Issue
DataSource null in DWR