File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Java Products and Servers and the fly likes MySQL & Sun App Server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "MySQL & Sun App Server" Watch "MySQL & Sun App Server" New topic

MySQL & Sun App Server

Jose Ortuno
Ranch Hand

Joined: Nov 10, 2002
Posts: 39
Hi all!
I am trying to create a datasoure in Sun AppServer 1.4 Developer Release.
After download and installed the mysql-connector, I created a connection pool in the appserver called mySQLconPool with the following settings:
Datasource Classname: com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource
Additional Properties
I added the mysql-connector jar file path to the app server> JVM Settings> Classpath sufix.
The problem is that if I try to PING the connection I get the following error:
An error has occurred.
Operation 'pingConnectionPool' failed in 'resources' Config Mbean. Target exception message: Error getting connection from the EIS

What am I doing wrong? Am I missing something?
Please if any of you can help me I will appreciate!!!
Thanks in advance,
Ken Zhang

Joined: Mar 17, 2004
Posts: 1
Here is my working solution to connect MySQL with SUN J2EE 1.4 application server. I used this one and it works in my machine. I am sure two things you may need to take into consideration.
1, the property , I just put the url into the property name and the value is the followings,
2, make sure you use the correct username and password.
Database classname: com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource
You can also use: com.mysql.jdbc.jdbc2.optional.MysqlDataSource
Hope this can help!
And ive added the property:
url = jdbc:mysql://localhost:3306/stocks?user=stocks&password=stocks
najmi thayyil

Joined: Mar 27, 2001
Posts: 4
You can access the following Document to configure your Oracle with Sun One Application Server
I agree. Here's the link:
subject: MySQL & Sun App Server
It's not a secret anymore!