Slimming JBoss EAP 5.0.x
Environment
- Red Hat JBoss Enterprise Application Platform (EAP) 5.0.x
Issue
- How can I slim JBoss EAP 5.0.x?
Resolution
If you are using JBoss EAP 5.1.0 or later, see Slimming JBoss EAP 5.1 and 5.2
If you do not want your JBoss instances to form a cluster, please refer to How do I disable clustering in JBoss EAP 5's "production" configuration?.
NOTE HypersonicSQL should not be used in a production environment. Please refer to This content is not included.Is Hypersonic (HSQLDB) supported in JBoss production environment ? about this; If you have not yet removed HypersonicSQL refer to How do I remove Hypersonic SQL database from JBoss EAP?
If you do not need JMS functionality (provided via JBoss Messaging), remove
-
$CONFIG/deploy/messaging/
-
$CONFIG/deploy/jms-ra.rar
-
$CONFIG/deployers/messaging-definitions-jboss-beans.xml
-
the following "XAResourceRecovery.JBMESSAGING1" definition if it exists in $CONFIG/conf/jbossts-properties.xml:
<property name="com.arjuna.ats.jta.recovery.XAResourceRecovery.JBMESSAGING1" value="org.jboss.jms.server.recovery.MessagingXAResourceRecovery;java:/DefaultJMSProvider"/>
If you do not need to send email, remove
- $CONFIG/deploy/mail-service.xml
- $CONFIG/deploy/mail-ra.rar
If you do not want to use BeanShell scripts, remove
- $CONFIG/deployers/bsh.deployer
If you do not use EJB3, remove
- $CONFIG/deploy/ejb3-connectors-jboss-beans.xml
- $CONFIG/deploy/ejb3-container-jboss-beans.xml
- $CONFIG/deploy/ejb3-interceptors-aop.xml
- $CONFIG/deploy/ejb3-timerservice-jboss-beans.xml
- $CONFIG/deployers/ejb3.deployer
- $CONFIG/deployers/jboss-ejb3-endpoint-deployer.jar
- $CONFIG/deployers/jboss-ejb3-metrics-deployer.jar
If you do not use EJB2, remove
-
$CONFIG/deploy/ejb2-container-jboss-beans.xml
In addition, if you have removed the EJB3 timer service (ejb3-timerservice-jboss-beans.xml), you can remove -
$CONFIG/deploy/ejb2-timer-service.xml
If you do not need to use UDDI for web services, remove
- $CONFIG/deploy/juddi-service.sar
If you do not need scheduled jobs or timer EJBs, remove
- $CONFIG/deploy/schedule-manager-service.xml
- $CONFIG/deploy/scheduler-service.xml
- $CONFIG/deploy/quartz-ra.rar
- $CONFIG/deploy/ejb3-timerservice-jboss-beans.xml
- $CONFIG/deploy/ejb2-timer-service.xml
If you do not need web services, in server/<node>/deploy/ remove
- $CONFIG/deploy/jbossws.sar
- $CONFIG/deployers/jbossws.deployer
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.