Quantcast
Channel: SCN : Discussion List - SAP HANA Cloud Platform Developer Center
Viewing all articles
Browse latest Browse all 3131

JMX and destinations issue

$
0
0

Hello,

 

I have an issue reading a destination from a JMX MBean. The same bean used through a servlet works well and returns information about the destination.

 

This is how I get the destination:

HttpDestination destination = (HttpDestination) ctx.lookup("java:comp/env/myBackend");

 

This is the exception I get when this code is run as JMX MBean:

javax.naming.NamingException: Name = java:comp/env/myBackendwas not found using the URL Context factory = org.apache.naming.java.javaURLContextFactory@4ab7127b

 

It seems like the destination is not available while in the context of the MBean server which is called through RMI.

 

I tested this in our real application which uses Spring as well as with a minimal J2SE application (see calle2010/testjmx · GitHub) based on Java Web 1.76 runtime. I also tested local deployment as well as deployment on hanatrial with Java Web SDK 1.73.

 

What Do I have to do to make the lookup of destinations work in JMX?

 

Thanks,

Christian.


Viewing all articles
Browse latest Browse all 3131

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>