• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2542
  • Last Modified:

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?
0
cuttieveenz
Asked:
cuttieveenz
  • 2
  • 2
3 Solutions
 
momi_sabagCommented:
are you sure?
if i remember correctly, you can specify a value for current schema when you configure websphere
0
 
Kent OlsenData 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 OlsenData 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.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now