Using JBoss
Big TODO
Where to find the configuration files
The files which are discussed in this quick tip can be found in the following
directories:
$jboss/server/default/conf/login-auth.xml
$jboss/server/default/conf/users.properties
$jboss/server/default/conf/roles.properties
$jboss/server/default/deploy/ingo.ear
$jboss/server/default/deploy/ingo-services.xml
$appejb/META-INF/ejb-jar.xml
$appejb/META-INF/jboss.xml
$appejb/META-INFjbosscmp-jdbc.xml
$appweb/WEB-INF/web.xml
$appweb/WEB-INF/jboss-web.xml
Here, $jboss is the home directory of your JBoss installation, and
$appXXX is the root directory of your J2EE application (the EJB and
the web parts, respectively).
A helper bean
To clarify the names which are available in the JNDI namespace, you can use a
very interesting MBean which shows you the JNDI space. In JBoss 3.0.4, this is normally
already configured, so you can call it by pointing your browser to the location
http://localhost:8080/jmx-console
then select the service=JNDIView entry in the jboss section,
and call its list method (in the list at the very bottom). The result page
shows you, separated for each EJB, its view of the JNDI namespace as well as the global and the
JBoss-locale JNDI space.
If this MBean should not be configured, add the following lines in the file ingo-services.xml:
<server>
<mbean code="org.jboss.naming.JNDIView" name="DefaultDomain:service=JNDIView">
</mbean>
<server>
Configuration issues
The configuration of EJB and resource references like mail/JMS session and data sources is divided
in a standardized and a JBoss-specific part. Here are some basic information:
- this page contains information about setting the JNDI name of an EJB,
- this page contains information about configuring JDBC data sources,
- this page shows the handling of a mail resource,
- this page deals with JMS issues,
- this page is an introductory section about declarative security.
- this page is an introductory section about setting up directory structures for web applications.
<%--
- this page contains information about setting the JNDI name of an EJB,
- this page contains information about configuring JDBC data sources,
- this page shows the handling of a mail resource,
- this page deals with JMS issues,
- this page is an introductory section about declarative security.
- this page is an introductory section about setting up directory structures for web applications.
--%>
Logging with log4j
JBoss uses internally the log4j logging system. You are free (and encouraged) to use the system, too.
Please have a look here for details.
back to toolbox page
|