Search WebSpherePower's 6,973 WebSphere, Java, and Eclipse article archive 
Home
EasyPrint
News details Click here for the RSS feed's XML code. This is not a browser URL.
Articles-only Click here for the RSS feed's XML code. This is not a browser URL.
Twitter Feed Click here for the Twitter feed.
Creating a MySQL data source using WebSphere Application Server (continued)

FIGURE C


Click New to create a providers. Roll over picture for a larger image.

Click on the New button, which should bring you to the JDBC Provider Configuration entry screen, shown in Figure D.

FIGURE D


Configure your new provider. Roll over picture for a larger image.

Enter the JDBC Provider configuration parameters using the following information:

  • Name: MySQL
  • Description: MySQL JDBC 2.0-compliant Provider configuration
  • Classpath: ${User-defined_JDBC_DRIVER_PATH}/mysql-connector-java-3.0.9-stable-bin.jar (or the appropriate name for the version of MySQL Connector/J that you are using)
  • Native Library Path: <leave blank>
  • Implementation Classname: com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource

When you have finished entering the data, click on OK. If there are no data entry errors, this should take you back to the list of JDBC Providers, where you should now see your new MySQL JDBC Provider displayed as shown in Figure E.

FIGURE E


You're now the proud owner of a new provider. Roll over picture for a larger image.

You should also see a message at the top of the screen informing you that changes have been made and indicating that you should save these changes to the Master Configuration. While you can take that step at this point, we will be making further changes and you might as well wait until everything has been completed and then save everything at once.

"The secret trick to making this work is the Datasource Helper Classname"

Create the base JDBC data source entry
Click on the name of your new MySQL JDBC Provider entry to return to the JDBC Provider Configuration screen. Scroll to the bottom of the screen and click on the Data Sources link in the Additional Properties section, as shown in Figure F.

FIGURE F


Scroll down for the Additional Properties section. Roll over picture for a larger image.

This should take you to the empty Data Sources list shown Figure G, where you need to click on the New button.

FIGURE G


Click new to create a new data source. Roll over picture for a larger image.

This will bring you to the Data Source Configuration screen, shown in Figure H.

FIGURE H


Enter the Data Source configuration parameters. Roll over picture for a larger image.

Enter the Data Source configuration parameters using the following information:

  • Name: <data source name>
  • JNDI (Java Naming and Directory Interface) Name: jdbc/<data source name>
  • Description: <data source description>
  • Statement Cache Size: 10 (the default)
  • Category: <leave blank>
  • Datasource Helper Classname: com.ibm.websphere.rsadapter.ConnectJDBCDataStoreHelper
  • Component-managed Authentication Alias: <leave blank>
  • Container-managed Authentication Alias: <leave blank>

The secret (and not very well publicized) trick to making this work is the Datasource Helper Classname. Without the proper datasource helper, you will run into all kinds of interesting challenges trying to get this to work.

When you have finished entering the data, click on OK. If there are no data entry errors, this should take you back to the list of JDBC data sources, where you should now see your new MySQL JDBC data source displayed, shown in Figure I.


« Previous  ·  1  ·  2  ·  3  ·  Next »
Other articles you might like
Home > Database Integration (3 articles)
   Locate your JDBC DataSource in WebSphere Application Server using JNDI
   Easily connecting to MySQL databases from WebSphere Studio
Get Weekly Email Updates
Subscribe to our regular weekly email newsletter. It's packed with tips, reviews, deep analysis, and the latest news.
 
Recent WebSpherePower Articles
A perfect 10: celebrating 10 years online
You can help bring security and safety back to White House email
Introducing the WebSpherePower RSS feeds
From New Jersey to Palm Bay, Florida
A WebSphere pot o' gold
How Elvis entered the building and CES went out the window
WebSphere Application Server 6: what's it all mean?
WebSpherePower News
Legal question: Can HP keep Hurd from going to Oracle?
Caringo announces integration with Symantec EV 9.0
Cisco & Citrix marry on virty PCs
Take Heed, Tech Giants: Edison's Failed Plot To Hijack Hollywood
IBM code unchains virtual workloads
Oracle names H-P ex-CEO Mark Hurd as co-president
Cloud Messaging Provider, Linxter, Releases SDK for Java and Android
>> Read all the news
More from the ZATZ journals
Computing Unplugged: Introducing the Jones family and their full-family backup challenges
David Gewirtz Online: CNN commentary and analysis
DominoPower: Lotus must open source Notes and Domino
OutlookPower: Hands on debugging a broken Outlook forwarding rule
-- Advertisement --

How To Save Jobs
This book is about how to create and save jobs. Believe it or not, there's not a single book out there that specifically focuses on job creation and preservation -- until now.

This book, by ZATZ editor-in-chief David Gewirtz, is about helping your business work better. It's about helping you change the things you need to change so your company can perform more effectively.

Plus, through a grant from ZATZ, it's a free download.

Read it and reap.

ZATZ Home  ·  News  ·  Back Issues  ·  Credits/Trademarks ·  Link To Us
Copyright © 2010, ZATZ Publishing. All rights reserved worldwide.
Editor's Login