Git Product home page Git Product logo

formationjbossmars2023's Introduction

FormationJBOSSMars2023

Formation JBOSS Mars 2023

Docs

9h30 - 12h30 / 13h30 - 17h/16h30

  • Pause : 10h45
  • Pause : 15h

INTRO

The technology behind WildFly is also available in JBoss Enterprise Application Platform 7. JBoss EAP is a hardened enterprise subscription with Red Hat’s world-class support, long multi-year maintenance cycles, and exclusive content.

Jour 1 TP

$JBOSS_HOME/bin/standalone.bat  ou   /bin/standalone.sh  sur Linux
$JBOSS_HOME/bin/add-user.bat -u admin -p admin123 

TP Jour 2

$ bin/standalone.bat  -Djboss.node.name=instance1
Pour le second serveur, il faut en plus faire un décalage de ports pour éviter les conflits.

$ bin/standalone.bat -Djboss.node.name=instance2 -Djboss.socket.binding.port-offset=100

Pour changer de profil, il y a plusieurs possibilités :

$ bin/standalone.bat -c standalone-full.xml

Mode haute disponibilité Il existe deux exemples de configuration en mode haute disponibilité (ou plus simplement en mode maître - esclave) qui permet à une instance de reprendre là où s’est arrêtée l’autre. Il faudra par conte lancer les deux instances avec un décalage de ports afin d’éviter les conflits ainsi que le nom du noeud.

$ bin/standalone.sh -c standalone-full-ha.xml -Djboss.node.name=nodeA
$ bin/standalone.sh -c standalone-full-ha.xml -Djboss.socket.binding.port-offset=500 -Djboss.node.name=nodeB

Dans l’exemple ci-dessus on a décalé les ports du second noeud de 500, ainsi le port http 8080 se retrouve en 8580.

** Datasource H2 DB git clone https://github.com/sanogotech/JBOSSWildflyQuickstart.git cd JBOSSWildflyQuickstart cd kitchensink-ear

Architecture NTIER

Architecture JAVA JEE

Serveur d'Application vs Serveur Web

Installation

https://access.redhat.com/documentation/fr-fr/red_hat_jboss_enterprise_application_platform/7.0/html-single/installation_guide/index#choosing_a_jboss_eap_installation_method

#Méthodes d'installation

  • Installation ZIP

L'archive ZIP convient aux installations sur n'importe quel système d'exploitation pris en charge. Cette méthode devra être utilisée si vous souhaitez extraire l'instance manuellement.

  • Installateur JAR

Le programme d'installation JAR peut être exécuté dans une console, ou en tant que qu'assistant graphique. Ces deux options fournissent des instructions étape par étape pour installer et configurer l'instance du serveur. Cette méthode d'installation est la méthode privilégiée pour installer JBoss EAP sur toutes les plateformes prises en charge.

  • Installation RPM

JBoss EAP peut être installé en utilisant des paquets RPM sur des installations prises en charge de Red Hat Enterprise Linux 6 et Red Hat Enterprise Linux 7.

  • Docker

JBOSS Overview

Start JBoss WildFly with the Web Profile

  1. Open a command line and navigate to the root of the JBoss server directory.
  2. The following shows the command line to start the server with the web profile:
        For Linux:   JBOSS_HOME/bin/standalone.sh
        For Windows: JBOSS_HOME\bin\standalone.bat
		
		```
 **STARTER JBOSS +++++

** standalone.bat 

standalone.bat --server-config=standalone-full.xml

- Port admin 9990
- Port App: 8080

** Create admin user: 

$JBOSS_HOME/bin/add-user.bat -u admin -p admin123 --silent $JBOSS_HOME/bin/add-user.sh -u admin -p admin123 --silent

$JBOSS_HOME/bin/add-user.bat -u admin -p admin123 Updated user 'admin' to file 'D:\JBOSS\wildfly-21.0.2.Final\standalone\configuration\mgmt-users.properties' Updated user 'admin' to file 'D:\JBOSS\wildfly-21.0.2.Final\domain\configuration\mgmt-users.properties' Appuyez sur une touche pour continuer...

http://localhost:9990/console/index.html user = admin password = admin123

Presentation de l'Arborescence Folders/Files Wildfly

Sample code

mvn clean  package

mvn clean  package  wildfly:deploy

mvn clean  package   wildfly:undeploy

formationjbossmars2023's People

Contributors

sanogotech avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.