Author Archives: Praveen Orathel

About Praveen Orathel

I am a java web application developer.

Find the combination of substrings from a string

import java.util.HashSet; import java.util.Set; public class StringCalculator { static final String WORD = “346789ABCDEFGHJKLMNPQRSTUWXY”; static final int lengOfSubString = 4; /** * @param args */ public static void main(String[] args) { char[] wordArray = WORD.toCharArray(); int lengthOfWord = WORD.length(); System.out.println(“Length … Continue reading

Posted in Uncategorized | Leave a comment

Apache Workmanager Parallel Processing Sample

import java.io.IOException; import javax.naming.InitialContext; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import weblogic.work.ExecuteThread; import commonj.work.Work; import commonj.work.WorkManager; /** * Servlet implementation class TestWork */ public class TestWork extends HttpServlet { private static final long serialVersionUID = 1L; static boolean … Continue reading

Posted in Uncategorized | Leave a comment

Grails Quartz job set up manually with start and stop

Quartz plug-in allows your Grails application to schedule jobs to be executed using a specified interval or cron expression. Usually we create the job using “grails create-job” right ?. Here I an going to create the job with the help … Continue reading

Posted in Uncategorized | 1 Comment

My first groovy grails application – Sample Login with Spring Security

Why grails ?. Good question right ?. See again question … please see the below points  Provide a high-productivity web framework for the Java platform Groovy code compiles to java bytecode 🙂  Then it is running on JVM  Open source … Continue reading

Posted in Uncategorized | Tagged , , , , | 1 Comment

JMeter Configuration in Linux

LINUX 1. Download JMeter a. http://www.bizdirusa.com/mirrors/apache//jmeter/binaries/apache-jmeter-2.8.tgz 2. Unzip the file and move it to your convenient directory 3. Use Jdk 1.5 or higher version 4. Set environment variables JAVA_HOME, JMETER_HOME, PATH 5. Create the test plan (jmx file) and place … Continue reading

Posted in Uncategorized | Leave a comment

Some tips

1. To find which jvm is currently configured as default       linux :  which java      Windows : for %i in (java.exe) do @echo. %~$PATH:i

Posted in Uncategorized | Leave a comment

Configuring JBoss in a Production Server – Step by Step Guide

Configuring JBoss in a Production Server – Step by Step Guide Introduction   This document records the changes to the JBoss AS to run as a production server where tomcat is under port 80, and allow it to run alongside … Continue reading

Posted in Uncategorized | 2 Comments