401 - unauthorized exception while accessing /jolokia/read/org.apache.camel:context

classic Classic list List threaded Threaded
1 message Options
saravanan saravanan
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

401 - unauthorized exception while accessing /jolokia/read/org.apache.camel:context

I have created jolakia:agent in spring application context

<jolokia:agent lookupConfig="false" systemPropertiesMode="override">
    <jolokia:config
            autoStart="true"
            host="0.0.0.0"
            port="***2"
            user="*****"
            password="*******"
            />
  </jolokia:agent>

in camel context tried to hit this service to fetch jolokia response
<camel:to
                uri="<a href="http://0.0.0.0:****/jolokia/read/org.apache.camel:context=*,type=routes,name=*&quot;/&gt;">http://0.0.0.0:****/jolokia/read/org.apache.camel:context=*,type=routes,name=*"/>
 getting 401 unauthorized exception.

Even tried passing username and password in query param not working.
Even tried setting with headers getting same exception.
I think required Authorization header in this case? not sure?

Please let me know how to get avoid unauthorized exception of this url.
Loading...