Script to change JBoss ports for TRIRIGA 3.x

152 views
Skip to first unread message

Eric

unread,
Mar 14, 2012, 11:12:46 PM3/14/12
to tridev...@googlegroups.com
For anyone that happens to be running TRIRIGA on JBoss under Linux/Unix, and needs a script to change the ports under which JBoss runs (to run multiple instances of TRIRIGA on the same server), here is one:


This is similar to the port change script that used to be provided for 2.x, and can be used to run multiple instances on the same server; it adjusts bindings-jboss-beans.xml (which contains configurations for all the JBoss services which listen on various ports) for a base port of 8001 instead of 8080 (to match the out-of-box TRIRIGA configuration in server.xml), and applies a default offset based on the specified desired port.  It is recommended that 1000-multiples be used (9001, 10001, etc.) to avoid port collisions with the various services.

After running this, the server will start on the specified port by default (e.g. 9001); you can add "-Djboss.service.binding.set=ports-01" to the command line to dynamically offset everything by 100 (e.g. 9101), or "-Djboss.service.binding.set=ports-02" to offset by 200 (9201), or "-Djboss.service.binding.set=ports-03" to offset by 300 (9301).

Joe Milora

unread,
Mar 15, 2012, 10:26:20 AM3/15/12
to tridev...@googlegroups.com
This is great Eric thanks. Other than the ports for the Tririga agents,
is there anything else we'd need to change?

joe

> --
> You received this message because you are subscribed to the Google
> Groups "triDeveloper" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/trideveloper/-/lcUC1wSp0P8J.
> To post to this group, send email to tridev...@googlegroups.com.
> To unsubscribe from this group, send email to
> trideveloper...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/trideveloper?hl=en.

Eric Glass

unread,
Mar 15, 2012, 12:13:30 PM3/15/12
to tridev...@googlegroups.com
If you have IIS or Apache in front of your TRIRIGA server, you will need to adjust the AJP port accordingly (as it will also shift from 8009 to 9009); for IIS, in the worker.properties file you would have:

worker.ajp13.port=9009

and for Apache, in your conf file you would have:

ProxyPass / ajp://yourappserver:8009/
ProxyPassReverse / ajp://yourappserver:8009/




Eric wrote:
To unsubscribe from this group, send email to trideveloper+unsubscribe@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/trideveloper?hl=en.
--
You received this message because you are subscribed to the Google Groups "triDeveloper" group.
To post to this group, send email to tridev...@googlegroups.com.
To unsubscribe from this group, send email to trideveloper+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages