Oracle Weblogic Server (MOSC)

MOSC Banner

RESTful management interface invoke a custom mbean operation

Weblogic server 14

Hi all

We'd like to invoke via restfull weblogic interface operations exposed public of a custom MBEAN on server.

Actually we can invoke it via jmx quite easily in this way


Hashtable properties = new Hashtable();
properties.put(Context.PROVIDER_URL, url);
properties.put(Context.SECURITY_PRINCIPAL, this.jmxSecurityPrincipal);
properties.put(Context.SECURITY_CREDENTIALS, this.jmxSecurityCredentials);
InitialContext ic = new InitialContext(properties);
mbs = (MBeanServer) ic.lookup("java:comp/env/jmx/runtime");
ObjectName objectName=new ObjectName(mbeanName);
Object invoke = mbs.invoke(objectName, "myOperation", new Object[]{}, null);

We'd like to by-pass this code using directly weblogic restful api.

Regards

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center