aspose file tools*
The moose likes Websphere and the fly likes Getting WebSphere's MBeanServer thru lookup Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "Getting WebSphere Watch "Getting WebSphere New topic
Author

Getting WebSphere's MBeanServer thru lookup

Madhes Rathinam
Greenhorn

Joined: Aug 19, 2011
Posts: 7
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

Joined: Aug 19, 2011
Posts: 7
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

Joined: Jan 17, 2010
Posts: 3
Hi, could you fix it?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Getting WebSphere's MBeanServer thru lookup