in Was 6.1 where is the DataSource MBean defined?

Posted on 2009-04-20
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

    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 ds )

    - the output for which included:

    datasourceHelperClassname :

    Is this what you want?

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    -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 …
    Most of the developers using Tomcat find it easy to configure the datasource in Server.xml and use the JNDI name in the code to get the connection.  So the default connection pool using DBCP (or any other framework) is made available and the life go…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    729 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

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now