aspose file tools*
The moose likes Spring and the fly likes Configuring a JNDI datasource along with schema name Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
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: 60
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: 17249
    
    6

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: 60
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://aspose.com/file-tools
 
subject: Configuring a JNDI datasource along with schema name
 
Similar Threads
Problem deploying Spring 2.5 in JBoss 5.1
DataSource null in DWR
iBatis error - No SqlMapClient specified
IBatis JNDI Issue
Spring in CMT MDB