![Red Hat Application Server Manual Download Page 37](http://html.mh-extra.com/html/red-hat/application-server/application-server_manual_1427406037.webp)
Chapter 3. JOnAS Configuration
29
JOnAS can create WEB containers when the JOnAS server starts by providing the corresponding file
names via the
jonas.service.web.descriptors
property in the
jonas.properties
file.
Example:
jonas.service.web.descriptors
Bank.war
In this example the WEB Container service creates a container from the WAR file named
Bank.war
.
It searches for this file in the
$JONAS_BASE/webapps/
directory.
By using
webapp
directories instead of packaging a new WAR file each time, you can improve the
development process. You can replace the classes with the new compiled classes, reload the servlets in
your browser, and immediately see the changes. This is also true for the JSPs. Note that these reload
features can be disabled in the configuration of the Tomcat web container at production time.
Example of using the
jonasAdmin/ webapp
directory instead of
jonasAdmin.war
.
1. In the
JONAS_BASE/webapps/autoload
directory, create a directory (for example,
jonasAdmin
):
JONAS_BASE/webapps/autoload/jonasAdmin
2. Move the
jonasAdmin.war
file to this directory.
3. Unpack the WAR file to the current directory, then remove the WAR file.
4. At the next JOnAS startup, the
webapp
directory is used instead of the WAR file. Change the
JSP and see the changes at the same time.
3.5.4. Configuring the WebServices Service
3.5.4.1. A. Choose a Web Service Engine
At this time, only one implementation for WebServices is available: the Axis implementation. But in
the future, a Glue implementation can be made easily.
In
jonas.properties
:
#...
# the fully qualifier name of the service class
jonas.service.ws.class org.objectweb.jonas.ws.AxisWSServiceImpl
#...
3.5.4.2. B. Choose One or More WSDL Handler(s)
WSDL Handlers are used to locate and publish all your WSDL documents. You can use several WSDL
Handlers as long as you define them in the
jonas.properties
file.
Example:
If you want to publish a WSDL into the local file system, use the FileWSDLHandler
In
jonas.properties
:
#...
# a list of comma separated WSDL Handlers
jonas.service.ws.wsdlhandlers file1
# Configuration of the file WSDL Handler
jonas.service.ws.file1.type file
# Make sure users who run JOnAS have read/write access in this directory
jonas.service.ws.file1.location /path/to/directory/where/store/wsdls
#...
Summary of Contents for Application Server
Page 1: ...Red Hat Application Server JOnAS User Guide ...
Page 8: ......
Page 22: ...14 Chapter 1 Java Open Application Server JOnAS a J2EE Platform ...
Page 58: ...50 Chapter 3 JOnAS Configuration ...
Page 66: ...58 Chapter 5 JOnAS Class Loader Hierarchy ...
Page 78: ...70 Chapter 6 JOnAS Command Reference ...
Page 80: ......
Page 86: ...78 Chapter 7 Developing Session Beans ...
Page 136: ...128 Chapter 9 Developing Message Driven Beans ...
Page 142: ...134 Chapter 10 Defining the Deployment Descriptor ...
Page 148: ...140 Chapter 11 Transactional Behavior of EJB Applications ...
Page 158: ...150 Chapter 14 EJB Packaging ...
Page 162: ...154 Chapter 15 Application Deployment and Installation Guide ...
Page 164: ......
Page 176: ...168 Chapter 18 WAR Packaging ...
Page 178: ......
Page 184: ...176 Chapter 20 Defining the Client Deployment Descriptor ...
Page 186: ...178 Chapter 21 Client Packaging ...
Page 188: ......
Page 192: ...184 Chapter 23 EAR Packaging ...
Page 194: ......
Page 200: ...192 Chapter 24 JOnAS Services ...
Page 204: ...196 Chapter 25 JOnAS and the Connector Architecture ...
Page 222: ...214 Chapter 27 Ant EJB Tasks Using EJB JAR ...
Page 234: ...226 Chapter 29 Web Services with JOnAS ...
Page 236: ......
Page 260: ...252 Chapter 34 How to use Axis in JOnAS ...
Page 270: ...262 Chapter 36 Web Service Interoperability between JOnAS and BEA WebLogic ...
Page 296: ......