• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1033
  • Last Modified:

in Was 6.1 where is the DataSource MBean defined?

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.  

0
BVH_001
Asked:
BVH_001
1 Solution
 
HonorGodSoftware EngineerCommented:
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.,
  C:\IBM\WebSphere\AppServer\bin
- 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?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now