Professional Documents
Culture Documents
Introduction
Road Map
What is JBoss
JBoss Architecture
JBoss Internals
JBoss Installation
Directory Structure
Jboss Enterprise Application Platform
Starting / Stopping the server
Jboss Administration Console.
JMX Console
Twiddle Utility
QA Session
http://weblogic-wonders.com
JBoss Introduction
http://weblogic-wonders.com
JBoss AS 4.2 also functions as aJava EE 1.4 but deploys EJB 3.0 by default
JBoss AS 7,the current stable release, was released on July 12, 2011.
http://weblogic-wonders.com
Integrates JBoss Application Server, with JBoss Hibernate, JBoss Seam, and
other leading open source Java technologies from JBoss.org into a complete,
simple enterprise solution for Java applications.
Integrated, tested and certified Enterprise Platforms.
Evaluation copy : http://www.jboss.com/downloads/
http://
docs.redhat.com/docs/en-US/JBoss_Enterprise_Application_Platform/5/html/Instal
lation_Guide/Introduction.html
http://weblogic-wonders.com
Jboss Microcontroller : POJO based kernel ,wires all the services. Core of the
server.
JBossWS is the web services stack for JBoss 5 providing Java EE compatible web
services,
JBoss MicroContainer
Crux of Jboss, which is the foundation architecture into which you can plug only
the services that your application needs
Jboss 5.0 still provides few services based on JMX (Java Management
eXtensions) to access the MBeans.
http://weblogic-wonders.com
Jboss Architecture
http://weblogic-wonders.com
Installation
Pre-Requisites
Installation Methods.
Graphical Installer: In addition to installing the base files, the installer offers
automation of optional component installation, and basic out-of-the-box
security configuration
http://weblogic-wonders.com
Graphical Installation
Steps
Perform the post installation activities like securing the JMX console, Admin
Console etc.
http://weblogic-wonders.com
Bin: Contains all the scripts to start the server, installing the server as a
Service.
Client: Contains all the client specific jar files.
Common: Contains the jar files that are common to all the server profiles.
Docs: Contains the documents and examples.
Lib: Contains the library files.
Native : Contains the native libraries
Server: Contains server configurations. By default the Jboss installation
contains the below server configurations.
Minimal:
Default :
All:
Standard :
Web:
Production:
http://weblogic-wonders.com
http://weblogic-wonders.com
Conf :Contains the bootstrap.xml bootstrap descriptor file for a given server
configuration. This defines the core microcontainer beans.
Data: Used by services that want to store content in the file system. It holds
persistent data for services intended to survive a server restart.
tmp Used for temporary storage by JBoss services. The deployer, for example,
expands application archives in this director
http://weblogic-wonders.com
$JBOSS_HOME/bin/run.bat b
The server runs on port 8080 and to change the settings, we can run it as below.
$JBOSS_HOME/bin/run.bat
$JBOSS_HOME/bin/shutdown.sh
http://weblogic-wonders.com
http://weblogic-wonders.com
Description
JNDI
HAJNDI for clustering
WebService for downloading RMI classes
RMI/JRMP Invoker, invokes JMX services
RMI/JRMPHA Invoker, invokes clustered JMX services
CORBA ORB
JMS RMI InvocationLayer
JMS OIL InvocationLayer
JMS UIL InvocationLayer
JMS OIL2 InvocationLayer
JMS UIL2 InvocationLayer
Hypersonic Database
Location
server/default/conf/jboss-service.xml
server/all/deploy/cluster-service.xml
server/default/conf/jboss-service.xml
server/default/conf/jboss-service.xml
server/all/deploy/cluster-service.xml
server/all/conf/jacorb.properties
server/default/deploy/jms/rmi-il-service.xml
server/default/deploy/jms/oil-service.xml
server/default/deploy/jms/uil-service.xml
server/default/deploy/jms/oil2-service.xml
server/default/deploy/jms/uil2-service.xml
server/default/deploy/hsqldb-ds.xml
server/default/deploy/jbosswebtomcat41.sar/META-INF/jboss-service.xml
JBoss AS comes with Windows service executable as part of Jboss Native library
that can run JBoss Application Server as service.
http://www.jboss.org/jbossweb/install/service.html
http://weblogic-wonders.com
Labs
Lab - 1
Installation and exploring the directory structure.
Lab 2
Exploring the memory arguments.
Changing the default memory argument values
Lab 3
Jboss as windows service
http://weblogic-wonders.com
Uses the Embedded Jopr (As it runs as a part of Jboss Admin Server).
http://weblogic-wonders.com
<jboss-web>
<security-domain>java:/jaas/jmx-console</security-domain>
</jboss-web>
http://weblogic-wonders.com
Features:
http://weblogic-wonders.com
Its a JBoss Management Console which provides a raw view of the JMX MBeans
which make up the server.
Display the JNDI tree : Lists the JNDI object bound using service=JNDIView
Generate a thread dump: Capture the thread dumps using
jboss.system:type=ServerInfo Mbean
Display the memory pool usage : Using the jboss.system:type=ServerInfo
mbean
Manage the deployment scanner: Enable/ Disable the Hot Deployment
scanner.
Redeploy an application
Shut down JBoss
http://weblogic-wonders.com
Features:
$SERVER-PROFILE\deploy\management\console-mgr.sar\webconsole.war
$SERVER-PROFILE\deploy\management\console-mgr.sar\webconsole.war\WEB-INF\classes\
web-console-users.properties
web-console-roles.properties
http://weblogic-wonders.com
twiddle.bat h
References:
http://docs.jboss.org/jbossas/jboss4guide/r1/html/ch2.chapter.html
http://weblogic-wonders.com
Jboss Logging
By default, JBoss produces output to both the console and a log file
(log/server.log).
<appender name="FILE"
class="org.jboss.logging.appender.DailyRollingFileAppender">
<errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
<!-- <param name="File" value="${jboss.server.log.dir}/server.log"/> -->
<param name="File" value="C:/server.log"/>
<param name="Append" value="true"/>
http://weblogic-wonders.com
Labs
Lab - 4
Exploring the Admin console and JMX console.
Lab 5
Exploring the Twiddle utility.
Lab 6
Understanding the logging feature.
Changing the default logging level.
http://weblogic-wonders.com
Q-A
http://weblogic-wonders.com