Configuring JNDI on Websphere for DB2

Hi,
In our project we have different schemas in DB2. We want to configure JNDI in websphere in such a way that each JNDI points to separate database schema. But in websphere configuration we cannot specify the schema name. All that we specify is the userid. And in DB2 the default schema name is the userid. Thus the JNDI always points to the schema with name same as userid. How can i make JNDI to point to a different schema?
cuttieveenzAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
momi_sabagConnect With a Mentor Commented:
are you sure?
if i remember correctly, you can specify a value for current schema when you configure websphere
0
 
Kent OlsenConnect With a Mentor Data Warehouse Architect / DBACommented:
Hi cuttie,

In database.properties, just set the schema name:

  DB2DAOFactory.database.schema.name=schemaABC



Kent
0
 
cuttieveenzAuthor Commented:
Where is this properties file? Also how does the JNDI map to the schema name in this file?
0
 
cuttieveenzAuthor Commented:
where is this properties file? and how does the JNDI map to the schema name in this file?bcoz in JNDI configuration only the useid,pwd is specified. also in the datasource configuration only the server name, DB name, port, driver type is mentioned.
0
 
Kent OlsenConnect With a Mentor Data Warehouse Architect / DBACommented:
Hi cuttie,

This is probably more than you want to read, but there's a very good description of the JNDI options here:

  http://java.sun.com/products/jndi/tutorial/beyond/env/source.html

The path to the file is:

  $JAVA_HOME/lib/jndi.properties


Good Luck,
Kent


0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.