Loading Beans Using Jonas.properties; Jonas Administration; Loading Beans Using Jonas Admin - Red Hat APPLICATION SERVER - JONAS Tutorial

Jonas
Hide thumbs Also See for APPLICATION SERVER - JONAS:
Table of Contents

Advertisement

Chapter 4. Getting Started With JOnAS
a line such as
jonas.service.dbm.datasources postgresql
file.

4.1.4. Loading Beans Using jonas.properties

You can statically define the beans you want to load at JOnAS startup by updating the
jonas.properties
If you want to load the beans defined in a single
file, place this line in your
jonas.service.ejb.descriptors
Note that in the above case, the shell
access to your bean classes.
To deploy beans defined in several deployment descriptors, the syntax is as follows:
jonas.service.ejb.descriptors
If you want to load all the beans of your application, you can give the name of the application jar
file, but you must store your xml deployment descriptor in the
jonas.service.ejb.descriptors

4.1.5. JOnAS Administration

JOnAS can be administered from a Web interface with:
http://hostname:9000/jonasAdmin
Login with User Name
JOnAS can also be managed using the command-line tool called
password
. The administrative option is started by passing
jonas
For example:
jonas admin
See JOnAS Command Reference in the Red Hat Application Server User Guide.

4.1.6. Loading Beans Using jonas admin

JOnAS provides a command-line console that allows you to perform many administration tasks such
as dynamically loading beans. Here is how to load beans with JOnAS Admin:
Loading all beans of the application stored in
(default name):
jonas admin -a myApp.jar
Load all beans defined in an ejb-jar file into a JOnAS server named jonas2:
jonas admin -n jonas2 -a mybean-ejb.jar
Same as the previous example but using the interactive console:
> jonas admin
You must first choose a jonas server. (command 'name')
Type 'help' to get the list of available commands
jonas admin (jonas) > name jonas2
jonas admin (jonas2) > addbeans mybean-ejb.jar
file. Here are some examples:
jonas.properties
CLASSPATH
and Password
jonas
ejb-jar.xml
file:
META-INF/ejb-jar.xml
used to start the JOnAS server must also allow
Bean1.xml,Bean2.xml
META-INF
myApp.jar
.
jonas
jonas
admin
into the JOnAS server named jonas
myApp.jar
in your
jonas.properties
file, and not packaged in an ejb-jar
directory:
, using username
as a command-line argument.
21
and
jonas

Advertisement

Table of Contents
loading

This manual is also suitable for:

Application server

Table of Contents