Results 1 to 2 of 2

Thread: JMXAuthenticator and jManage

  1. #1
    Join Date
    Aug 2005
    Posts
    3

    Default JMXAuthenticator and jManage

    Hi,

    Apologies if this is an issue with jManage... I have a general question regarding the use of a JMXAuthenticator in a Spring-created JMXConnector.

    I have a jsr-160 connector setup to talk to some MBeans. I connect using jManage, and all seems fine.

    However, I am now trying to write a JMXAuthenticator to check usernames and passwords. This is hypothetically easy to set up - I create a PasswordAuthenticator class and wire it into the org.springframework.jmx.support.ConnectorServerFac toryBean environment property. The authenticator does get called when I expect.

    However, the credentials that get passed to it by jManage are odd - they consist of an Object (I can't tell the class, strangely) array with 2 values:

    1. A URL of the form
    jmxmp://localhostortnum
    followed by a number.
    2. null

    Now I've posted the same question on the jManage list, and the word there is that jManage sends a username and password as jmx.remote.credentials. But this is not what I'm seeing.

    I'm new to this area, and it's entirely possible that my idea of the components involved is wrong - could there be something other than jManage supplying me with credentials? Should I not, in general, expect the credentials to be in any particular format?

    Cheers

    Nick

  2. #2
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default

    they consist of an Object (I can't tell the class, strangely)
    What do you mean? How do you debug your object? Through introspection you can see even the private fields of an object.
    Besides the usual advices (like checkhout the documentation, mailing list) yuo can look at the sources (both of jManage and Spring created JMXConnector).
    Spring, AFAIK doesn't override or extends JMX classes - so the JMXConnector is just that; the problem relies in the JMXAuthentificator sent by jManage.
    Btw, what jmx implementation are you using? mx4j or jmx-ri?
    Costin Leau
    SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
    http://twitter.com/costinl
    Please use [ c o d e ] [ / c o d e ] tags

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •