Professional Documents
Culture Documents
Versione 2.0
Capitolo Uno
Sommario capitolo uno
Informazioni generali
Sito Jboss
Sito Enterprise (RedHat)
Jboss download
Jboss RedHat docs
JBoss rilasci
JBoss timeline
Jboss comparazioni, video
Introduzione Jboss EAP 5 e 6
Jboss Enterprise Application Platform
Jboss Enterprise component
Ing. Mauro Tedesco
Informazioni generali
Sito JBoss
la versione community
Jboss.org
JBoss Enterprise
Downloads of JBoss Enterprise products are for Enterprise
Developers who are building applications for businesses and
public sector institutions that are planned to go into production
or require tested, integrated software with certified patches and
updates, and/or SLA-based support with a declared
Support Policy from Red Hat.
Perform
Rely
I require:
Identify
Support
Subject
Enterprise quality
Pre-integrated
Continuous
Notifications about
Jboss download
JBoss rilasci
JBoss timeline
Le
Jboss comparazioni
/home/mtedesco/personale_asus/corsi_docenze/Jboss/extra/jboss-community-v-enterprise.ogg
Introduzione Jboss 5
JBoss EJB3
JBoss Messaging
JBoss Cache
JBoss Web
Ecc...
Introduzione Jboss 6
Tutto si f da console
<JBOSS_HOME>/bin/jboss-cli.sh
Esempio
Shutdown
<JBOSS_HOME>/bin/jboss-cli.sh --connect --command=:shutdown
Capitolo Due
Sommario capitolo due
Jboss Enterprise Application Platform directory
JBoss E A P Installazione
JBoss E A P Installazione-Prerequisiti
JBoss E A P Installazione-configurazone
JBoss E A P Installazione start
JBoss E A P Installazione stop
JBoss E A P start options
JBoss E A P start options
JBoss E A P Installazione
Prerequisiti
Configurazione
Rpm
Zip
Rhn
GUI
JBoss E A P Installazione-Prerequisiti
Prerequisiti
JBoss E A P 5 Installazione-configurazone
1. Navigate to JBOSS_DIST/jboss/bin.
JBoss E A P 6 Installazione-configurazone
1. Navigate to JBOSS_DIST/jboss/bin.
Linux
$ ./standalone.sh
$ ./domain.sh
Windows
run.bat
Linux
$ ./run.sh -c minimal
$ ./run.sh -b 0.0.0.0
$ ./run.sh -h
JBoss E A P 5 start -h
Opzioni di start
-d, --bootdir=<dir> Set the boot patch directory; Must be absolute or url
JBoss E A P start -h
Opzioni di start
JBoss E A P 6 cli
Opzioni
Capitolo Tre
script:
/etc/sysconfig/jbossas.
change "JBOSSCONF="
script:
img dei comandi utilizzati
Script
Copiare il file $JBOSS_DIST/jboss/bin/init* in /etc/init.d/jbossas
# chkconfig jbossas on
/etc/sysconfig/jbossas.
change "JBOSSCONF="
Script
Script
Network EAP 5
Network
By default, the Enterprise Platform binds to all networking addresses
at start-up.
Community 127.0.0.1
You can specify a bind address, as well as a UDP address, at start-up.
If not specified, only TCP is used.
-b [IP-ADDRESS] TCP
-u [IP-ADDRESS] UDP
Network EAP 6
Network
Java e Javac
Java
Jboss (esercizio)
JBoss
java -version
echo $JAVA_HOME
vi /etc/profile.d/java.sh
mkdir /opt/java
mv jboss-5.1.0.GA jboss
vi /etc/profile.d/jboss.sh
adduser jboss
su jboss
ps -ef
JBoss
Video installazione
All Change
Key features
Focus on configuration
Deployment and
management across
multiple servers
Focus on providing
enterprise-scale
features
Directory Structure
bin
docs
domain
modules
standalone
Modules
Standalone vs Domain
Standalone mode
Domain mode
Central configuration
for multiple servers
Central control of
multiple servers
Standalone mode
Standalone mode
Centralised configuration
Independent servers
Based on profiles
configuration/standalone.xml
Single configuration
Standalone.xml
<subsystem xmlns="urn:jboss:domain:threads:1.0">
<scheduled-thread-pool name="remoting">
<max-threads count="10" per-cpu="20"/>
<keepalive-time time="10" unit="seconds"/>
</scheduled-thread-pool>
<bounded-queue-thread-pool name="jca-short-running" blocking="true">
<core-threads count="10" per-cpu="20"/>
<queue-length count="10" per-cpu="20"/>
<max-threads count="10" per-cpu="20"/>
<keepalive-time time="10" unit="seconds"/>
</bounded-queue-thread-pool>
<bounded-queue-thread-pool name="jca-long-running" blocking="true">
<core-threads count="10" per-cpu="20"/>
<queue-length count="10" per-cpu="20"/>
<max-threads count="10" per-cpu="20"/>
<keepalive-time time="10" unit="seconds"/>
</bounded-queue-thread-pool>
Ing. Mauro Tedesco
Datasources in standalone.xml
<subsystem xmlns="urn:jboss:domain:datasources:1.0">
<datasources>
<datasource jndi-name="java:/H2DS" enabled="true" use-java-context="true" pool-name="H2DS">
<connection-url>jdbc:h2:mem:test;DB_CLOSE_DELAY=-1</connection-url>
<driver-class>org.h2.Driver</driver-class>
<driver>org.h2.Driver#1.2</driver>
<pool></pool>
<security>
<user-name>sa</user-name>
<password>sa</password>
</security>
<validation></validation>
<timeout></timeout>
<statement></statement>
</datasource>
</datasources>
<drivers>
<driver module="com.h2database.h2"/>
</drivers>
</subsystem>
Ing. Mauro Tedesco
Deploying to standalone
Deployment scanner
runs periodically
Domain mode
Domain mode
Domain controller
Process controller
Server
Host controller
Process Controller
[domain@localhost:9999 /]
deploy
../../../../testsuite/smoke/target/deployme
nts/test-deployment.sar --all-servergroups 'test-deployment.sar' deployed
successfully.
[node-type=node-name (,node-type=node-name)*] :
operation-name [( [parameter-name=parameter-value
(,parameter-name=parameter-value)*] )]
Console
IMG di http://localhost:8080
Console
IMG di http://localhost:8080
Console
IMG di http://localhost:8080
Console
IMG di http://localhost:9990
Aggiungere un utente
The management interfaces in JBoss Enterprise Application Platform 6
are secured by default
Bibliografia
Http://www.jboss.org
Http://www.jboss.com
http://www.redhat.com
Ing.
Ing.Mauro
MauroTedesco
Tedesco