Tuesday, June 15, 2010

JBoss 5.X.X Custom Profile

Creating a Custom profile in JBoss 5.X.X

Below are the steps to create a Custom Profile which Doesn't use Default DS. This profile supports -- web apps & ejb apps as well

Below Services are trimmed down in this profile

1. EJBTimerService - using persistencePolicy=noop
2. JUDDI
3. Key Generator
4. JBoss Messaging
5. JBoss Mail
6. Scheduling
7. Hypersonic DB
8. Turn off hot deployment

Steps to Do

1. In server/node/deploy/ejb2-timer-service.xml
Comment the mbean name="jboss.ejb:service=EJBTimerService (comment the complete mbean )
Comment the depends optional-attribute-name="PersistencePolicy">jboss.ejb:service=EJBTimerService,persistencePolicy=databasedepends
Uncomment the mbean code="org.jboss.ejb.txtimer.NoopPersistencePolicy" name="jboss.ejb:service=EJBTimerService,persistencePolicy=noop"

2 Remove JUDDI

Remove , In server/node/deploy
  • juddi-service.sar
3. Remove Key Generator

In server//deploy/ remove:

  • uuid-key-generator.sar
4. Remove JBoss Messaging

In server//deploy/ remove:

  • messaging
  • jms-ra.rar

In server//deployers/ remove:

  • messaging-definitions-jboss-beans.xml

5. Remove JBoss Mail

In server//deploy/ remove:

  • mail-service.xml
  • mail-ra.rar
6. Scheduling

In server/node/deploy

  • scheduler-manager-service.xml
  • scheduler-service.xml
  • quartz-ra.rar
7. Remove Hypersonic DB

Performed these steps
  • Remove the libraries hsqldb.jar and hsqldb-plugin.jar from jboss/common/lib/.
  • Remove the descriptor for the HSQLDB datasource DefaultDS by deleting deploy/hsqldb-ds.xml;
  • In conf/login-config.xml, comment out the declaration with the name "HsqlDbRealm";

8. Turn off hot deployment

In server//deploy/ remove:

  • hdscanner-jboss-beans.xml