Adobe 38000382 JRun Guide - Page 108
Editing XML files, JRun Programmer's Guide
UPC - 718659575946
View all Adobe 38000382 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 108 highlights
Editing XML files OEMs often must hide the underlying application server from customers who use their applications. They want their customers to know only about the application that is running and not about the underlying server technology. As an OEM, you or your support personnel, might need a way to access the application server settings. The most common function you might do is to programmatically edit XML files. This provides you with a very granular level of control over the behavior of JRun. For example, by editing the JRun configuration XML files (such as jrun.xml), you can add and remove services, and change the attributes of those services. You can also edit the J2EE XML files, such as web.xml and application.xml. This lets you add and remove servlet definitions, servlet filters, EJBs, security settings, and anything available in those XML files. The following table briefly describes the useful elements that you can edit in each of the XML files used by JRun: XML file jrun.xml web.xml jrun-resources.xml ejb-jar.xml jrun-web.xml application.xml Common elements Defines JRun core services, such as: • JRunServer • SchedulerService • LoggerService • JRunSecurityManagerService • ServletEngineService • MailService • DeployerService Defines web application settings, including the following: • Servlet definitions • Event listeners • Servlet filters • Security constraints • Error pages Defines resources used by the JRun server, including the following: • JMS Connection factories • JDBC data sources Defines EJBs. Defines virtual path mappings. Defines web modules and their context roots. For more information about the XML files used by JRun, see JRun Programmer's Guide. 94 Chapter 9 Editing XML Files