OK, I see this question in the FAQ, so I've done some research, so
don't jump on me too badly :)

Basically, I need to implement what is in the FAQ, multiple users
connecting to the same database with different
usernames/passwords. The FAQ says:

 For it define one  jdbc-connection-descriptor , now you can use the
 same jcdAlias  name with different User/Password . OJB copy  the
 defined jdbc-connection-descriptor  and replace the username  and
 password  with the given User/Password . Keep in mind, when the
 connection-pool  element enables connection pooling, every user get
 its separate pool. See How does OJB handle connection pooling .

The connection pooling part doesn't give much information, or at least
not enough that I'm figuring it out. For example, if I have a base
connection-descriptor as:

      <jdbc-connection-descriptor
        jcd-alias="oracle"
        default-connection="false"
        protocol="jdbc"
        subprotocol="oracle"
        platform="Oracle"
        driver="oracle.jdbc.driver.OracleDriver"
        jdbc-level="2.0"
        dbalias="thin:@host:1521:DB"
        username="username"
        password="password"
     />

How do I go about making this happen w/ different users? Do I have to
create a new JdbcConnectionDescriptor setting the username and
password? Then how do I get a PB out of this? Some real code would be
helpful. 

Sorry if this is obvious, the docs make it sound like it is but I'm
just not getting it. Thanks for any help!

cdh

-- 
Chris D. Halverson                         http://www.halverson.org/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to