Wednesday, December 29, 2010

jboss-6.0.0.Final client minimal libraries

The followings are the list of libraries for jboss-6.0.0.Final client application to work properly:

concurrent.jar
jbossall-client.jar
jboss-aop-client.jar
jboss-appclient.jar
jboss-aspect-jdk50-client.jar
jboss-client.jar
jboss-common-core.jar
jboss-ejb3-async-impl.jar
jboss-ejb3-async-spi.jar
jboss-ejb3-common-client.jar
jboss-ejb3-context-spi.jar
jboss-ejb3-core-client.jar
jboss-ejb3-proxy-impl-client.jar
jboss-ejb3-proxy-spi-client.jar
jboss-ejb3-security-client.jar
jboss-integration.jar
jbossjmx-ant.jar
jboss-logging.jar
jboss-metadata-ejb.jar
jboss-remoting.jar
jboss-security-spi.jar
jbosssx-client.jar
log4j.jar


Thanks

Wednesday, December 1, 2010

Handling Redirect Issue in Ajax Call

function ajaxCall(){
var formData = getLibImgCartFormElements();
var url = "/myapp/test.jsp";
var params = "";

new Ajax.Request(
url,
{
method: 'post',
parameters: params,
onSuccess: function(response) {
if(isLoginRedirect(response)){
return;
}
$('yourDivName').innerHTML = contents;
},
onFailure: function(response) {
window.location = window.location.href;
}
}
);
}

function isLoginRedirect(response){
var contents = response.responseText;
if(response.status == 0 || contents == null || contents == '' || isLoginFormContents(contents)){
window.location = window.location.href;
return true;
}else{
return false;
}
}

function isLoginFormContents(contents){
var flag = false;
/*
* if((contents != null) && (contents.indexOf("") > 0)){ return true; }else{ return false; }
*/
return flag;
}

Monday, November 29, 2010

Creating a project(trunk, branches, tags) on svn repository

svnadmin create myproject

svn mkdir -m "created trunk" svn://username#servername/svnroot/myproject/trunk
svn info svn://username#servername/svnroot/myproject/trunk


svn mkdir -m "created branches" svn://username#servername/svnroot/myproject/branches
svn info svn://username#servername/svnroot/myproject/branches

svn mkdir -m "created branches" svn://username#servername/svnroot/myproject/tags
svn info svn://username#servername/svnroot/myproject/tags


svn copy http://username@servername/svnroot/myproject/trunk http://username@servername/svnroot/myproject/branches/myproject
-m "Creating a private branch of myproject/trunk."

Monday, February 15, 2010

How to install VNC Server on Fedora 10 / Linux

1. Visit the following url for downloading:

http://www.realvnc.com/products/free/4.1/download.html

(vnc-4_1_3-x86_linux.tar.gz)

2. Copy the downloaded file to /usr/local (or to into a directory or your choice)

cp vnc-4_1_3-x86_linux.tar.gz /usr/local/

3. Change the current directory

cd /usr/local/

4. Unzip/untar the file

tar -zxvf ./vnc-4_1_3-x86_linux.tar.gz

How to install Skype on Fedora 10 / Linux

1. Visit the following url for downloading:

http://www.skype.com/intl/en/download/skype/linux/choose/

2. Copy the downloaded file to /usr/local (or to into a directory or your choice)

cp skype-2.1.0.47-fc10.i586.rpm /usr/local/

3. Change the current directory

cd /usr/local/

4. Install the file

rpm -ivh skype-2.1.0.47-fc10.i586.rpm

How to install DbVisualizer on Fedor 10 / Linux

1. Visit the following url for downloading:

http://www.minq.se/products/dbvis/download/index.jsp

2. Copy the downloaded file to /usr/local (or to into a directory or your choice)

cp dbvis_linux_6_5_10.rpm /usr/local/

3. Change the current directory

cd /usr/local/

4. Install the file

rpm -ivh dbvis_linux_6_5_10.rpm