Weblogic Spring Console

Oracle Weblogic 12c, now includes a spring console to monitoring all spring beans enabled applications. In order to activate this feature you have to follow the next steps.

Activate spring console extension

  • In the preferences panel, extensions tab, select spring-console, using the checkbox, and click ‘Enable’.
  • Restar Weblogic to activate the extension.

Deploy weblogic-spring.jar.

  • Locate weblogic-spring.jar, located in ${WL_HOME}/server/lib
  • Deploy as library the jar using weblogic console.

Enable spring in your application.

  • As all spring enabled application, you have to include the spring listener in web.xml :
<web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
  • Add WeblogicSpringApplicationListener in your spring context configuration file in order to generate all MBeans needed to display the beans in the enabled console.

<bean class=»weblogic.spring.monitoring.WeblogicSpringApplicationListener» />

  • Add or change the MANIFEST.MF file with the following lines

Extension-List: WeblogicSpring
WeblogicSpring-Extension-Name: weblogic-spring

  • Deploy your application, and go to deployed app details, and navigate to SpringFramework tab to see the detailed spring configuration information.

Anuncio publicitario

Deja una respuesta

Introduce tus datos o haz clic en un icono para iniciar sesión:

Logo de WordPress.com

Estás comentando usando tu cuenta de WordPress.com. Salir /  Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Salir /  Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Salir /  Cambiar )

Conectando a %s