aspose file tools*
The moose likes Tomcat and the fly likes How to connect to database without password using connection pooling Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "How to connect to database without password using connection pooling" Watch "How to connect to database without password using connection pooling" New topic
Author

How to connect to database without password using connection pooling

chaitanya karthikk
Ranch Hand

Joined: Sep 15, 2009
Posts: 806

Hi everybody, I am chaitanya, I am facing a problem and don't know what to do. Let me explain my requirement.

I am working on an application, where I have to create a user interface for MySQL database, it must function like Oracle 10g GUI.

But before starting itself I have struck with this problem. I am using connection pooling, where I have to enter user id and password. The id is 'root' and is fixed at installation, but the password is a variable thing.

How to solve this problem. Please can anybody help me solve this issue. Can I do this, or this is not possible.

Thank you in advance, have a nice day.


Love all, trust a few, do wrong to none.
chaitanya karthikk
Ranch Hand

Joined: Sep 15, 2009
Posts: 806

There was a problem with my net connection, I thought the question was not posted and posted the same topic second time.

Sorry, forgive me, I sincerely apologize for this mistake.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 40052
    
  28
Apologies accepted

I have taken the liberty (Scott, Jan, Jeanne, I hope you don't mind) of moving your other thread to our "deleted" forum.
chaitanya karthikk
Ranch Hand

Joined: Sep 15, 2009
Posts: 806

Thanks a lot Ritchie. I was worried a lot.
chaitanya karthikk
Ranch Hand

Joined: Sep 15, 2009
Posts: 806

Hi moderators, my problem has not been resolved yet, this thread is marked as 'moderator says its resolved'. Please help me.
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2516
    
  10

anusha chaitanya wrote:Hi moderators, my problem has not been resolved yet, this thread is marked as 'moderator says its resolved'. Please help me.
I have removed the resolved marker.
Regards, Jan


OCUP UML fundamental and ITIL foundation
youtube channel
chaitanya karthikk
Ranch Hand

Joined: Sep 15, 2009
Posts: 806

Thanks a lot Jan, and can you please help me with my problem?
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2516
    
  10

anusha chaitanya wrote:Thanks a lot Jan, and can you please help me with my problem?
I don't know how to solve this. Let's hope that another rancher can help you.
Regards, Jan
chaitanya karthikk
Ranch Hand

Joined: Sep 15, 2009
Posts: 806

Its ok Jan, thanks again, have a nice day
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5845
    
    7

As far as I know, you must provide a username and optionally a password to establish a connection to a MySQL database. I always create a specific user account and password for each database that I create in MySQL. That way I always have credentials available for use when defining the connection pool.

Exactly how are you using this connection pool of which you speak? Is your app a web app and the connection pool is defined in the app server? If so, which app server?


JBoss In Action
chaitanya karthikk
Ranch Hand

Joined: Sep 15, 2009
Posts: 806

Hi Peter, I am doing a web application, I am using Apache Tomcat web server, not application server and my Connection pool is present at application level, not at server level, I mean it is in my project's META-INF folder.

Please help me, can I do this, is it possible? Thanks in advance.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5845
    
    7

OK, this has now become a Tomcat configuration question. I am moving this thread to a more appropriate forum.
chaitanya karthikk
Ranch Hand

Joined: Sep 15, 2009
Posts: 806

Peter Johnson wrote:OK, this has now become a Tomcat configuration question. I am moving this thread to a more appropriate forum.


Hi Peter, I think this is not related to Tomcat, it is related to database connectivity through pooling. Please once check the question.

Thanks in advance.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to connect to database without password using connection pooling