Category Archives: JAVA

ALL Posts related to Java, jsp, servlets, restlets

How to change port 8080 in JBOSS 5 ?

I am using JBOSS 5 for my latest project. I was stuck when oracle instance was required in project because both JBOSS and oracle instance run on port 8080.
So i decided to change JBOSS port to 8776. Here are the steps i followed.
My JBOSS is installed in D:\jboss5

Go to the D:\jboss5\server\default\deploy\jbossweb.sar folder
Open the server.xml file [...]

Posted in JAVA | Tagged , , | 4 Comments

Beware of unsafe variables (Servlets/JSP/Restlets)

Recently in my poject i was writing a restlet(very similar to sevlet/jsp). I wrote the code in a normal javabean style.
I declared few static variables. I was happy that i did the job nicely. But when code review happened i found out that the code was not Thread safe.
These Local variables were killing the code [...]

Posted in JAVA | Tagged | Leave a comment