JOnAS Tutorial | ||
---|---|---|
<<< Previous | Getting Started With JOnAS | Next >>> |
You can statically define the beans you want to load at JOnAS startup by updating the jonas.properties file. Here are some examples:
If you want to load the beans defined in a single ejb-jar.xml file, and not packaged in an ejb-jar file, place this line in your jonas.properties file:
jonas.service.ejb.descriptors META-INF/ejb-jar.xml |
Note that in the above case, the CLASSPATH used to start the JOnAS server must also allow access to your bean classes.
To deploy beans defined in several deployment descriptors, the syntax is as follows:
jonas.service.ejb.descriptors Bean1.xml,Bean2.xml |
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 META-INF directory:
jonas.service.ejb.descriptors myApp.jar |
<<< Previous |
Home
Up | Next >>> |