Posts

Showing posts from June, 2013

iBatis - for beginners

iBatis  is a Data persistence framework like  Hibernate ,  JDO  and  EJB  that maps objects to SQL statements. It is a lightweight framework and persistence API good for persisting  POJOs (  P lain  O ld J ava  O bjects).  iBatis  is different from  Hibernate ,  JDO  since it uses stored procedures and existing SQL to handle database. In this tutorial we are going to tell you   iBatis   configuration  for a small application to run. As it is hard to explain everything in one go? so we have presented this tutorial into few separate examples. This example is all about to read data from the database and showing the results on your command prompt. In the second example you will learn to add more data into the database and after that third example is going to show you how to delete the data from the records using iBatis.  Now in the first example that is going to show records from t...

Enable SSL in jboss with self-signed or test certificate

Image
Enable SSL in jboss with self-signed or test certificate 1.        Fist set Environment variable for system      set PATH="C:\Program Files\Java\jdk1.6.0_06\jre\bin";%PATH% 2.        jBoss recommends using the same file as both keystore and trustore.  This will be server.keystore.  In a virgin install there should be no server.keystore in the default/conf folder.  If you have one, you must decide whether to delete it (to use these instructions) or whether to adapt the instructions to suit your situation. Creating the keystore and private key: Open a command prompt or shell and go to the  default/conf  folder. keytool -genkey -alias jbosskey -keypass changeit -keyalg RSA -keystore server.keystore Answer the prompts.  Use  myHostname  when asked for first/last name.  This is critical. server.keystore  is generat...

JMETER - Performance Test Plan

Image
JMETER - Test Plan Apache JMeter may be used to test performance both on static and dynamic resources (files, Servlets, Perl scripts, Java Objects, Data Bases and Queries, FTP Servers and more). It can be used to simulate a heavy load on a server, network or object to test its strength or to analyze overall performance under different load types. You can use it to make a graphical analysis of performance or to test your server/script/object behavior under heavy concurrent load. Download and install  JMeter apache-jmeter-2.9.tgz md5 pgp apache-jmeter-2.9.zip md5 pgp Setup - quick Guide 1.        Open Jmeter (bin/Jmeter.bat on Windows) or double click .jar file 2.        Add (via right click) a Thread group to the Test Plan 3.        Add à Config Element à HTTP Request Defaults (Mention default http request details...