X

Developer Partner Community

  • January 21, 2017

Use Oracle JET to monitor WebLogic queues by Herman Brunnekreef

Jürgen Kress
PaaS Partner Adoption

image

At a customer we are working in an Oracle Fusion Middleware environment. In this environment we created queues. These queues are configured with an error queue when messages could not be delivered.

Because there are a number of error queues, monitoring is a lot of work. You have to check each queue independently. Recently I ran into this blog of Frank Munz (link). In this blogpost he talks about the framework Jolokia. This framework offers remote JMX access. More information about Jolokia can be found here.

With Jolokia you can request Weblogic MBean data and the response can be defined as JSON. So when I read this, I thought this is the solution to monitor the error queues.

What I did is the following:

First install Jolokia as an application.  From the website you can download a WAR. This can be installed as an application in Weblogic. When you have an environment with managed servers and you want to read data from these servers you must also target the WAR to the managed servers.

Then I created an Oracle JET application. In this application I made a JQuery.Ajax call to the REST service of the error queue. This is the url: http://<host>:<port/jolokia/read/com.bea:JMSServerRuntime=<JmsServerName>,Name=<JMS ModuleName>!!<JmsServerName>@<QueueName>,ServerRuntime=<serverName>,Type=JMSDestinationRuntime/MessagesCurrentCount

In the response you can read the current messages that are on the queue with the use of the variable MessagesCurrentCount. Add the value to an array and you can use the array in a chart for the JET application. Read the complete article here.

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Forum Wiki

Be the first to comment

Comments ( 0 )
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.