added some content for xml files
This commit is contained in:
parent
9fc30c4e7c
commit
19b742e121
|
@ -88,13 +88,117 @@
|
|||
|
||||
\section{Konfigurationsdateien}
|
||||
\subsection{standalone-psoe.xml}
|
||||
\subsection{persistance.xml}
|
||||
|
||||
Wird ein JBoss Applikationsserver im \emph{standalone}-Modus betrieben, läuft jede Instanz in einem eigenen Prozess.
|
||||
Diese Datei ist eine Java Enterprise Edition 6 zertifizierte Web-Profil Konfiguration welche alle benötigten Technologien (z.B. Extensions von JBoss, Datasources etc.) definiert.
|
||||
|
||||
JBoss EAP benutzt standardmäßig die standalone.xml Konfigurationsdatei, kann aber auch unter Verwendung einer anderen gestartet werden.
|
||||
|
||||
Abschnitte der standalone.xml
|
||||
\begin{itemize}
|
||||
\item extensions (z.B. diverse Wildfly Module)
|
||||
\item management (z.B. Access Control -> role-mapping)
|
||||
\item profile (z.B. JPA Subsystem)
|
||||
\item interfaces (z.B. \${jboss.bind.address:127.0.0.1})
|
||||
\item socket-binding-group (z.B \${jboss.http.port:8080})
|
||||
\end{itemize}
|
||||
|
||||
\begin{code}
|
||||
\captionof{listing}{standalone.xml (auszugsweise)}
|
||||
|
||||
|
||||
\begin{minted}[linenos,breaklines=true]{xml}
|
||||
|
||||
........
|
||||
|
||||
</endpoint-config>
|
||||
<client-config name="Standard-Client-Config"/>
|
||||
</subsystem>
|
||||
<subsystem xmlns="urn:jboss:domain:weld:3.0"/>
|
||||
</profile>
|
||||
<interfaces>
|
||||
<interface name="management">
|
||||
<inet-address value="${jboss.bind.address.management:127.0.0.1}"/>
|
||||
</interface>
|
||||
<interface name="public">
|
||||
<inet-address value="${jboss.bind.address:127.0.0.1}"/>
|
||||
</interface>
|
||||
</interfaces>
|
||||
<socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">
|
||||
<socket-binding name="management-http" interface="management" port="${jboss.management.http.port:9990}"/>
|
||||
<socket-binding name="management-https" interface="management" port="${jboss.management.https.port:9993}"/>
|
||||
<socket-binding name="ajp" port="${jboss.ajp.port:8009}"/>
|
||||
<socket-binding name="http" port="${jboss.http.port:8080}"/>
|
||||
<socket-binding name="https" port="${jboss.https.port:8443}"/>
|
||||
<socket-binding name="txn-recovery-environment" port="4712"/>
|
||||
<socket-binding name="txn-status-manager" port="4713"/>
|
||||
<outbound-socket-binding name="mail-smtp">
|
||||
<remote-destination host="localhost" port="25"/>
|
||||
</outbound-socket-binding>
|
||||
</socket-binding-group>
|
||||
</server>
|
||||
|
||||
\end{minted}
|
||||
\end{code}
|
||||
|
||||
\subsection{persistence.xml}
|
||||
|
||||
Die Datei \emph{persistence.xml} ist der zentrale Bestandteil der Persistierungs-Konfiguration.
|
||||
|
||||
Folgende Dinge können konfiguriert werden:
|
||||
|
||||
\begin{itemize}
|
||||
\item SQL dialect
|
||||
\item the persistence provider that shall be used at runtime
|
||||
\item the data source you want to use to connect to your database
|
||||
\item several provider-specific configuration parameters
|
||||
\end{itemize}
|
||||
|
||||
|
||||
\begin{code}
|
||||
\captionof{listing}{persistence.xml}
|
||||
|
||||
|
||||
\begin{minted}[linenos,breaklines=true]{xml}
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<persistence version="2.0"
|
||||
xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
|
||||
|
||||
<persistence-unit name="primary">
|
||||
<jta-data-source>java:jboss/datasources/psoeDS</jta-data-source>
|
||||
<properties>
|
||||
<!-- Properties for Hibernate -->
|
||||
<property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5InnoDBDialect" />
|
||||
<property name="hibernate.enable_lazy_load_no_trans" value="true" />
|
||||
<!--
|
||||
SQL stdout logging
|
||||
-->
|
||||
<property name="hibernate.show_sql" value="true"/>
|
||||
<property name="hibernate.format_sql" value="false"/>
|
||||
<property name="use_sql_comments" value="true"/>
|
||||
|
||||
<!--
|
||||
<property name="hibernate.hbm2ddl.auto" value="create-drop" />
|
||||
-->
|
||||
</properties>
|
||||
</persistence-unit>
|
||||
|
||||
</persistence>
|
||||
|
||||
\end{minted}
|
||||
\end{code}
|
||||
|
||||
|
||||
\begin{figure}[!htp]
|
||||
\centering
|
||||
\includegraphics[width=0.7\textwidth]{pics/ConfigFiles.png}
|
||||
\end{figure}
|
||||
\subsection{web.xml}
|
||||
\begin{itemize}
|
||||
|
||||
%TODO des is zu ungenau!
|
||||
\item konfiguriert den Java Webserver (Wildfly - JBOSS)
|
||||
\item befindet sich im Ordner \textbf{src/main/webapp/WEB-INF/web.xml}
|
||||
\end{itemize}
|
||||
|
|
11
pse.tex
11
pse.tex
|
@ -1,3 +1,4 @@
|
|||
|
||||
% Preamble
|
||||
\documentclass[11pt]{article}
|
||||
|
||||
|
@ -8,12 +9,18 @@
|
|||
\usepackage[hidelinks]{hyperref}
|
||||
\usepackage{multicol}
|
||||
\usepackage{graphicx}
|
||||
\usepackage{minted}
|
||||
%\usepackage{minted}
|
||||
|
||||
\usepackage[outputdir=../auxil]{minted}
|
||||
\setminted{fontsize=\small}
|
||||
%\usepackage[outputdir=../../auxil]{minted}
|
||||
|
||||
\usepackage{caption}
|
||||
|
||||
|
||||
% Document
|
||||
\begin{document}
|
||||
\newenvironment{code}{\captionsetup{type=listing}}{}
|
||||
|
||||
\author{Phillip Wo \\ Benjamin Moser \\ Daniel Sommer}
|
||||
\title{PSE Ausarbeitung}
|
||||
\maketitle
|
||||
|
|
Loading…
Reference in New Issue