Running JBoss on non-default port

Often we come across situations in which we have to use non-default ports either for multiple servers; or for multiple instance of the same server.
(Apart from the option to fiddle with the configuration files,) JBoss provides a smart way to run it on non-default ports. Apparently, JBoss comes with predefined port sets that can be used using the property jboss.service.binding.set.

Here’s how you do it:

$ ./run.sh -Djboss.service.binding.set=ports-01

This would add an offset of 100 to the default ports. So this JBoss would be accessible at port 8180. Similary, ports-02 would make it available on 8280 and so on..
There’s also an option of passing ports-default parameter that would make it available on — you guessed it — 8080.

This is much smarter a way than changing XMLs!

Taming Apache Directory Server (ApacheDS)

If your ApacheDS is misbehaving — doesn’t start or stop — it most probably has to do with its .pid file that’s lying around because of an unclean shutdown. In which case you just need to delete it manually, and things will get back to normal.

In the CentOS 6 machine that I work on, the file is created in /var/lib/apacheds-2.0.0-M7/default/run by the name of apacheds-default.pid. On Ubuntu machines, this could be in /var/run.

Once the file is removed, simply run the /etc/init.d/apacheds start command to get it going!

Pentaho User Console Customization Woes

Heaven knows whose idea was to embed MantleSettings.properties in mantle-{version_no}-stable.jar. Customizing the UserConsole (/landing page) would be one of the main requirements a client would have.

Update:
The work of the awesome people at Webdetails has come to my rescue. It’s called ‘Community Startup Tabs‘.

Chrome Developer Tools

Developer tools are one of the best things to happen to mankind after sliced bread. The snapshot is pretty much self-explanatory. I can monitor the traffic, TAT, resources, and what not right within my browser. Also starring a ‘Console’ option wherefrom I could fire Javascript commands.

Image

While in Chrome, just F12 your way to awesomeness!

Update: Here’s an excellent presentation highlighting the key features of Dev Tools.

OpenI Analysis Page Filter Panel Height

If you’re struggling with too many dimensions in your OpenI Analysis page because you’re unable to drag them to Rows/Columns, then here’s a tweak:

Edit the file:
<pentaho-install-dir>/pentaho-solutions/system/openi/ui/resources/scripts/openi/OpenIAnalysis.js

Modify the line:

//"max-height" : filterCatHeight + "px"

to:

"max-height" : 200 + "px"

This fixed height would force a scroll bar in the JQuery component for ‘Filter’ — and that’s what we want.