Most Popular Posts

Showing posts with label weblogic. Show all posts
Showing posts with label weblogic. Show all posts

16/02/2014

How to create new domain in Weblogic using gui or console mode

How to create a new domain in Weblogic?


There are couple options when you want to create/ extend a domain in Weblogic: 

  1. Configuration Wizard in either GUI/ or console ( text-mode mode)
  2. WLST
  3. Create the files manually
  4. Copy the domain from another project :)

1a.Using the GUI mode:

in the shell go to the WLS binaries directory:
${WLS_HOME}/common/bin
and run the following script:
./config.sh
or
${WLS_BIN}/common/bin/config.sh
If the system can not support GUI mode, Configuration Wizard will start text-based mode.

1b. Using the console ( text-based ) mode:

in the shell go to the WLS binaries directory:
${WLS_HOME}/common/bin
and run the following script:
./config.sh -mode=console
or
${WLS_BIN}/common/bin/config.sh -mode=console


2. Using WLST mode






11/02/2014

What are MBeans JavaBeans and JMX


What are MBeans JavaBeans and JMX


What are MBeans?


MBeans Objects are type of JavaBean, created (mostly) with the Dependency Injection

What is inside the MBean?


MBeans represent current state/ resource of a running parts of the application, and expose the management interface containing:
  1. getters / setters – in order to set or get specific values on the particular items
  2. ability to perform more advanced operations
  3. provide self description mechanism

MBeans structure:



So basically MBeans can hold information like statistics, current configuration, or simply act as a key-value store.

MBeans are registeresd to the MBean Server and are used in the JMX (Java Management Extensions technology).

JMX:

JMX (Java Management Extensions) – allows co connect to the currently running JVM to monitor/ manager running applications through MBeans.

JMX can communicate with the MBeans through a connector (RMI, IIOP, JMS…)that talk with the MBean Server via API. MBean Server is a bridge between the connector and MBeans.


The JMX specification defines following types of MBeans:

  1. Standard MBeans
  2. Dynamic MBeans
  3. Open MBeans
  4. Model MBeans
  5. MXBeans

Resources:

http://docs.jboss.org/jbossas/jboss4guide/r4/html/jbosscache.chapt.html https://blogs.oracle.com/jmxetc/entry/what_is_jmx