in Was 6.1 where is the DataSource MBean defined?

Posted on 2009-04-20
Medium Priority
Last Modified: 2013-12-11
I am currently busy developing a JMX interface for WebSphere 6.1. I am using AdminClient to manage the capabilities. When looking for a datasource, I use the following query string

String queryDSRC = "WebSphere:*,type=DataSource,j2eeType=JDBCDataSource";

which returns a Set. I can then access the returned objects. As I want to get the status of the datasource, I need to use the getStatus method of the DataSource MBean. I can see a definition in the WebSphere documentation, (Reference Mbean interfaces), but this does not include the full classname.  

Question by:BVH_001
1 Comment
LVL 41

Accepted Solution

HonorGod earned 2000 total points
ID: 24197603
It appears that you need the datasourceHelperClassname attribute.

I found this by:
- opening a command prompt
- "cd"ing to my AppServer bin directory, i.e.,
- Starting the wsadmin utility:
  wsadmin -conntype none -lang jython
- And executing the following commands:

> print AdminConfig.list( 'DataSource' )
> ds = AdminConfig.list( 'DataSource' ).splitlines()[ -1 ]   # Pick 1 datasource
> print AdminConfig.show( ds )

- the output for which included:

datasourceHelperClassname : com.ibm.websphere.rsadapter.DerbyDataStoreHelper

Is this what you want?

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

-Xmx and -Xms are the two JVM options often used to tune JVM heap size.   Here are some common mistakes made when using them:   Assume BigApp is a java class file for the below examples. 1.         Missing m, M, g or G at the end …
This exercise is about for the following scenario: Dmgr and One node with 2 application server. Each application server contains it owns application. Application server name as follows server1 contains app1 server2 contains app1 Prereq…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Enter Foreign and Special Characters Enter characters you can't find on a keyboard using its ASCII code ... and learn how to make a handy reference for yourself using Excel ~ Use these codes in any Windows application! ... whether it is a Micr…

580 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question