StringNameSpaceBinding with JMX ?
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > WebSphere > WebSphere Application Server > StringNameSpaceBinding with JMX ?




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    StringNameSpaceBinding with JMX ?  


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-20-07 06:20 PM

Hello,

Is there any way to create / modify / remove a String Name Space Binding ?
I saw that is it possible with Jacl and Jython but I would like to do it fro
m a Java application.

With a little bit of imagination (and by looking at http://publib.boulder.ibm.com/
), I've found out how to get all the String Name Space Bindings but i can't found a way to add a new one. // Code used to get all the String Name Space Bindings ObjectName node1 = ConfigServiceHelper.createObjectName(null, "StringNameSpa ceBinding", null); ObjectName[] matches = configService.queryConfigObjects(session, null, n ode1, null); for (int i=0; i<matches.length; i++) { System.out.println(matches[i].toString()); } I've tried many times configService.createConfigData() and configService.add Element but it always throws a NullPointerException. Can anybody help me ? Thanks a lot, Ludovic.




[ Post a follow-up to this message ]



    Re: StringNameSpaceBinding with JMX ?  


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-24-07 12:21 PM

Hello,

Is there no answer to my question or I didn't explain it correctly ?

Thanks,
Ludovic.





[ Post a follow-up to this message ]



    Re: StringNameSpaceBinding with JMX ?  
Ken Hygh


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-24-07 12:21 PM

ludovic.cabre@infotel.com wrote:
> Hello,
>
> Is there no answer to my question or I didn't explain it correctly ?
>
> Thanks,
> Ludovic.

Generally speaking, the people here will respond if they have an idea
what the answer might be. I certainly don't.

Ken





[ Post a follow-up to this message ]



    Re: StringNameSpaceBinding with JMX ?  
Yuriy Petrov


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-24-07 06:26 PM

ludovic.cabre@infotel.com wrote:
> Hello,
>
> Is there any way to create / modify / remove a String Name Space Binding ?
> I saw that is it possible with Jacl and Jython but I would like to do it from a ja
va application.
The basic idea is: to do something, Jacl/Jython wsadmin's scripts do use the
 same MBeans and methods
of these mbeans that you would use in Java. So if you know how to do somethi
ng with Jacl/Jython, it
shouldn't be a problem to "convert" Jacl/Jython to Java.

Right now I don't have a time to dig in the docs for this particular task, b
ut if you post (a) the
script that does what you need and (b) the Java code that throws NPE, it sho
uld be easier to [try
to] find how to update your Java. Though please - no kilo-/megabytes of code
 





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:33 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register