This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting WebSphere's MBeanServer thru lookup

 
Madhes Rathinam
Greenhorn
Posts: 7
  • 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
  • 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
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, could you fix it?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic