JBoss
Introduction
The following components are part of the JBoss application server:
- Hibernate?
- Tomcat
Databases
This datasource is configured to use the embedded Hypersonic database instance shipped by default with the distribution. This datasource is bound to the JNDI name java:/DefaultDS and its descriptor is named hsqldb-ds.xml under the deploy directory.
Installation
- exctract jboss-4.2.3.GA.zip to C:/Uwes/jboss/
- set JBOSS_HOME to C:\Uwes\jboss\jboss-4.2.3.GA
Configuration
The JBoss Enterprise Application Platform ships with four different server configurations. Within the jboss-4.2.2.GA/server directory, you will find four subdirectories: minimal, default, production and all - one for each server configuration. Each of these configurations provide a different set of services. The default configuration is the one used if you don’t specify another one when starting up the server.
If you want to know which services are configured in each of these instances, look at the jboss-service.xml file in the jboss-4.2.2.GA/server/<instance-name>/conf/ directory and also the configuration files in the jboss-4.2.2.GA/server/<instance-name>/deploy directory.
The directory server configuration you’re using, is effectively the server root while JBoss is running. It contains all the code and configuration information for the services provided by the particular server configuration. It’s where the log output goes, and it’s where you deploy your applications.
My own adjustments
- in <JBOSS_HOME>\server\default\conf\jboss-service.xml line 253 RmiPort from 1098 to 1498 because of exception at startup
- in <JBOSS_HOME>\server\default\conf\jboss-service.xml line 247 Port from 1098 to 1498 because of exception at startup
- mysql-connector-java-5.1.5-bin.jar nach <JBOSS_HOME>\server\default\lib kopiert
Operation
Start the server
- <JBOSS_HOME>/bin/run.bat
Start the server for debugging
- <JBOSS_HOME>/bin/run_debug.bat
Stop the server
- <JBOSS_HOME>/bin/shutdown.bat
Database configuration
- copy corresponding jar file to <JBOSS_HOME>\server\<used configuration>\lib
- copy <dbname>-ds.xml to <JBOSS_DEPLOY_DIR>
Start the Hypersonic (HSQL) Database Manager
- start JBoss JMX Console
- follow link database=localDB,service=Hypersonic
- search startDatabaseManager() and press Invoke
- new client start after some seconds
Logging
| javax.servlet.GenericServlet.log(String) | <JBOSS_HOME>/server/default/log/server.log |
JBoss applications
EJB Trail Tutorial
- download EJB3Trail.ear from http://www.jboss.com/docs/trailblazer and copied to deploy directory
TestWebApplication
- jsf
TestEJBApplication
- EJBs
ticket2rock
- download from http://www.ejb3buch.de/
- ant
- copy /build/ticket2rock.ear to <JBOSS_HOME_DEPLOY_DIR>
- läuft nicht unter 4.2.3
Seam Example Registration
- copied C:\Uwes\eclipse\workspace\jboss-seam-2.0.2.SP1\examples\registration\dist\jboss-seam-registration.ear to <JBOSS_HOME_DEPLOY_DIR>
- runs
Seam Example Booking
- copied C:\Uwes\eclipse\workspace\jboss-seam-2.0.2.SP1\examples\booking\dist\jboss-seam-booking.ear to <JBOSS_HOME_DEPLOY_DIR>
- runs
State
- Version 5 installed but uweheuer doesn't work
- Version 4.2.2 installed but WebTestApplication doesn't work
- Version 4.2.3 and WebTestApplication, TestEJBApplication, uweheuer work, ticket2rock does not