There are a couple of facets to the answer to your question.  First, there
are some bugs in the minerva code that prevent it from wisely using userid's
and passwords in the pool.  Briefly, if you called getConnection(userid,
password), that userid and password will be used for all subsequent
connections, which is most likely not what was intended.  Also, at startup
time the pool code automatically creates a connection using credentials in
jboss.jcml.  But if you intend to provide the credentials to the connection
at run time and thus leave the entries in jboss.jcml empty, the pool's
attempt to establish a connection will fail and you'll get a null pointer
exception.  Second, we know the changes required to make the pool use
userids and passwords properly.  One of the motivations for forking the
minerva implementation into the JBossPool implementation was so that we
could incorporate some of these fixes.

My employer went out of business last week, so I should have plenty of time
next week to coordinate with Toby to get these changes into JBossPool.

----- Original Message -----
From: "Heikki Paajanen" <[EMAIL PROTECTED]>
To: "JBoss User" <[EMAIL PROTECTED]>
Sent: Thursday, June 07, 2001 5:09 AM
Subject: [JBoss-user] DB pool without specified username/password.


> Hi
>
> Is it possible to create DB pool without giving username and password
> beforehand ?
> So you can use DataSource connecting run time with some username and
> password...
>
> Or is there a way to do it without pool or direct jdbc code ?
>
> *************************************
> Heikki Paajanen
> Software engineer
> +358(0)40 779 8758
> +358(0)14 414 2158
> [EMAIL PROTECTED]
> www.finansium.fi
> **************************************
>
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to