Register | Login

Published Articles

JBoss 4 or 5 what is HASingleton means

Posted by madeeswer 2386 days ago (Editorial)

There will be lot of business cases to be executed for an application. Consider a scenario that you want to execute on business case only once across the cluster.

In this scenario if one node picks up the task then the other node should not pick the same task. so use HA singleton for this.


Running Jboss on port other than 8080

Posted by madeeswer 2402 days ago (Editorial)

We can run Jboss on port other than the default port 8080.

In order to do this we have to change the port entry in server.xml




vi server.xml

change the port number from 8080 to what ever you wish.


This will allow the Jboss to start in your

Go to the following directory jboss-eap-5.1/jboss-as/server/default/deploy/jbossweb.sar

1. edit the server.xml

2. uncomment the line

      <Connector protocol="HTTP/1.1" SSLEnabled="true"
           port="8443" address="${jboss.bind.address}"

Start the servers after enabling the cluster.

In order to manage all the nodes in one console log on to the below mentioned link


Note: Chnage the with your hostname


In order to deploy your application without specifying any context path, You need to delete Root.war and deploy your application in the same name at the same location.

Once the JBoss is up it will point to the Root.war. Since your application is deployed over there, Jboss will point your application without any context path.

In a clustered environment the war or ear files needs to be deployed in each and every instances.

Using the farm deployment, the *.ear or *.war files will be deployed only in the farm directory.

JBoss will automatically deploy the *.ear or *.war in the farm directory to all instance in the cluster.


Note: Farm deployment w

Jboss instances are normally started using in foreground or background. If the Jboss server is started in the foreground then it can be stopped by using Ctrl-c. Consider a scenario where the Jboss server is started in the background and you want to stop the server. If we kill the Jboss instance then the server will stop abruptly. The correct way

In order to start SSH session through command prompt first copy the putty.exe to system32 folder in windows.


then give the following command

putty -l login_id -pw password -ssh

-l : to pass user login details

-pw to pass password of the user

-ssh represents to make ssh connection to the client

Note: without -ssh putty w

In many unix flavour operating systems we have top command to monitor cpu utilizations.

In Solaris we have prstat to monitor cpu utilization.

use the below command to get the similar output of top in prstat,

prstat -s cpu -a -n 8


Solaris version of netstat does not have the sophistication of telling which process is using the port. This can be achieved using lsof command.

Consider a scenario that we need to identify the process id using port 8080,

lsof |grep 8080

This will list the process id that is using port 8080.

Error : There is a problem in JMS message sending or receivingjavax.jms.JMSException: mq server can not receive message, MQ timeout error:2033

If this error occurs then it means no message in the queue. The applciation is trying to get msg from the queue but there is no message in the queue.


Another occuring scenario for 2033

Sort News


Remember:, is a website that will allow everyone to share their knowledge, tip or information through community micro blogging.