This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting WebSphere's MBeanServer thru lookup

 
Madhes Rathinam
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to access the MBeanServer, thru JNDI lookup:


Its failing with:"javax.naming.NameNotFoundException: Name comp/env/jmx not found in context "java:""
Where as, the similar code works fine in WLS, and returns the MBeanServer instance.

What am I doing wrong?
any pointers?
Thanks in advance
 
Madhes Rathinam
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried the same using Spring framework too:



This code works fine in WebLogic, and returns the MBeanServer instance.

Is the JNDI name wrong for WebSphere?
 
Pranali Brahmankar
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, could you fix it?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic