Tutorial :How to create custom configuration for JBoss 5.1.0?


I need to create my own JBoss configuration. It will be a little changed "web" configuration. Is there any documentation or tutorials - how to do it?

What I need in new configuration:
1. Remove JSF implementation included in the JBoss Application Server
How to do it - http://community.jboss.org/wiki/RemoveJSF

2. Add possibility to use twiddle in customized "web" configuration.
How to do it - modify jboss-service.xml.
Replace attribute

<attribute name="Port">-1</attribute>  

with following attribute

<attribute name="Port">     <value-factory bean="ServiceBindingManager" method="getIntBinding">        <parameter>jboss:service=Naming</parameter>        <parameter>Port</parameter>     </value-factory>  </attribute>  

for mbean

<mbean code="org.jboss.naming.NamingService"        name="jboss:service=Naming"        xmbean-dd="resource:xmdesc/NamingService-xmbean.xml">  

3. Remove server/web/deploy/hsqldb-ds.xml

4. ...in process...

Does anyone know - why supoort of twiddle was disabled for web configuration?


Does this help - http://www.murraywilliams.com/computers/buildjboss/jboss3.html ?


To customize your own JBoss configuration that is based on the web configuration:

  1. copy $JBOSS_HOME/server/web to $JBOSS_HOME/server/my_config

  2. customize the configuration by editing the configuration files in my_config

  3. start you new configuration by running

$JBOSS_HOME/bin/run.sh -c my_config


%JBOSS_HOME%/bin/run.sh -c my_config


You can find information related to removing unused services in JBoss 5 in the JBoss 5.x Tunning/Slimming guide.

On the other hand, twiddle can be used with the web profile, what do you mean when you say it's not supported? But it cannot be used with the minimal configuration since the services twiddle relies on are disabled in this configuration.

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »