Jboss Multi Instance
Appearance
To create new instance Of Jboss In Single Server[edit]
1:- create a new folder in jboss-6.0.0.Final/server/ .
Example /jboss-6.0.0.Final/server/franco here frenco is new folder
2:-copy all the files and folders of other /jboss-6.0.0.Final/server/default(server) in this new created folder Example copy all folders and files in /jboss-6.0.0.Final/server/franco (Main server).
3:- Go /jboss-6.0.0.Final/server/franco/conf/bindingservice.beans/META-INF/ folder an open file bindings-jboss-beans.xml change
“<parameter>${jboss.service.binding.set:default}</parameter> ” with “ <parameter>${jboss.service.binding.set:ports-02}</parameter> ” and
for this change the port will be 8280.
4:-Go /usr/bin/jboss-6.0.0.Final/server/franco/deploy/sdnetWeb.war/WEB-INF edit web.xml change path of dbConfigFile.
Example <param-name>dbConfigFile</param-name>
<param-value>/usr/bin/jboss-6.0.0.Final/server/franco/deploy/sdnetWeb.war/WEB-INF/Constants.props</param-value>
5:-Change respective setting for database in jboss-6.0.0.Final/server/franco/deploy /postgres-ds.xml
6:- Open jboss-6.0.0.Final/server/franco/deploy/sdnetWeb.war/WEB-INF folder and edit Constant.prop update the ports of ejbproviderurl , providerurl and other relative details .
Example in case of franco we put ejbproviderurl=1299,providerurl=1299 in place of 1099.
7 :- Change the database detail in jboss-6.0.0.Final/server/franco/conf/login-config.xml
8:-To manual server start, go usr/bin/jboss-6.0.0.Final/bin/ type ./run.sh -c franco -b 0.0.0.0 to run franco server.