AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Tomcat 5.0.28 and MS-SQL Databases

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java and Databases
View previous topic :: View next topic  
Author Message
WJ
Guest





PostPosted: Thu Nov 25, 2004 5:28 am    Post subject: Tomcat 5.0.28 and MS-SQL Databases Reply with quote



I am connecting Tomcat 5 to an MS-SQL database. Everything works fine. But
in order
to get the pooling to work, I have to create a SQL user and set my app's
database
to that user's default database. This is fine if I only need to connect to
one database.

But I'd like to use that login to connect to two databases.

In Weblogic, I am able to define the database in the Connection Pool string,
e.g.
database@machinename:1433.

So I can have the same username connect to multiple databases by defining
the
target database in the app server's connection pool. Is there a way to do
this
in Tomcat 5?

When I configure my Data Source, I use
jdbc:microsoft:sqlserver://localhost:1433 for the
Data Source URL.

I use com.microsoft.jdbc.sqlserver.SQLServerDriver for the JDBC Driver
Class.

Thanks



Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java and Databases All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.