Welcome to WildFly

Created by kylin.29th, Nov

Agenda

  • Downloading and installing software prerequisite
  • Downloading and installing WildFly
  • Understand WildFly's directory structures
  • Running WildFly in standalone mode
  • Running WildFly in domain mode

Downloading and installing software prerequisite

Example of Install OpenJDK on Fedora or CentOS

	    
// 

$ tar zxvf jdk-7u60-ea-bin-b15-linux-x64-16_apr_2014.tar.gz -C ~/jdk7

$ export JAVA_HOME=~/jdk7
$ export PATH=$JAVA_HOME/bin:$PATH

$ java -version
java version “1.7.0_60”
OpenJDK Runtime Environment (fedora-2.5.0.1.fc20-x86_64 u60-b30)
openJDK 64-Bit Server VM (build 24.60-b09, mixed mode)
            
	

Downloading and installing WildFly

Unzip to install

            
//
$ cd && unzip ~/Downloads/wildfly-8.1.0.Final.zip
            
        

Understand WildFly's directory structures

            
//
$ cd wildfly-8.2.0.Final
$ ls -l
total 412
drwxr-xr-x. 3 kylin kylin   4096 Nov 20 22:43 appclient
drwxr-xr-x. 5 kylin kylin   4096 Nov 20 22:43 bin
-rw-r--r--. 1 kylin kylin   2451 Nov 20 22:43 copyright.txt
drwxr-xr-x. 4 kylin kylin   4096 Nov 20 22:43 docs
drwxr-xr-x. 5 kylin kylin   4096 Nov 20 22:43 domain
-rw-r--r--. 1 kylin kylin 354682 Nov 20 22:43 jboss-modules.jar
-rw-r--r--. 1 kylin kylin  26530 Nov 20 22:43 LICENSE.txt
drwxr-xr-x. 3 kylin kylin   4096 Nov 20 22:43 modules
-rw-r--r--. 1 kylin kylin   2356 Nov 20 22:43 README.txt
drwxr-xr-x. 6 kylin kylin   4096 Nov 20 22:43 standalone
drwxr-xr-x. 2 kylin kylin   4096 Nov 20 22:43 welcome-content
            
        
appclient Configuration files, deployment content, and writable areas used by the application client container run from this installation.
bin Start up scripts, start up configuration files, client jar and various command line
docs XML schema definition files, example configuration files
domain Configuration files, deployment content, and writable areas used by the domain mode processes run from this installation.
modules WildFly 8 is based on a modular classloading architecture. The various modules used in the server are stored here.
standalone Configuration files, deployment content, and writable areas used by the single standalone server run from this installation.
welcome-content Default Welcome Page content.

Running WildFly in standalone mode

Java Enterprise Edition 7 web profile and full profile

standalone.xml (default) Java Enterprise Edition 7 web profile certified configuration with the required technologies.
standalone-ha.xml Java Enterprise Edition 7 web profile certified configuration with high availability.
standalone-full.xml Java Enterprise Edition 7 full profile certified configuration including all the required EE 7 technologies, including messaging – JMS.
standalone-full-ha.xml Java Enterprise Edition 7 full profile certified configuration with high availability.

Run WildFly in standalone mode with its default settings

            
//
$ ./bin/standalone.sh
            
	

Add Management User

            
//
$ ./add-user.sh admin password1!
Added user 'admin' to file '.../standalone/configuration/mgmt-users.properties'
Added user 'admin' to file '.../domain/configuration/mgmt-users.properties'
            
        

Running WildFly in domain mode

Run WildFly in domain mode with its default settings

            
//
$ ./bin/domain.sh
            
        

THE END