Learning SCALA Language

Few days back i was reading the interview of James Gosling ( Co-creator of Java) where i saw this statement by James Gosling I like Scala, but my big problem is that the type theory has gotten really complicated. The language lawyers are driving the bus. It’s turning into something that journeyman developers and even people like me�I …

Read More

Subversion and Subclipse installation and Configuration

Image via Wikipedia Ever wanted to have a code repository of your own? Either working on a small project or working with your friends on the next big thing, it would be great to have a repository where you can maintain your code, just as you would while working at your office. Lot of you might have been …

Read More

Java Program For Uploading File To SFTP Server using JSch SFTP Put

Java Program For Uploading File To SFTP Server using JSch SFTP Put

Uploading the file to SFTP server is not easy using Java.net API or Apache‘s Commons.net API. Many of you have faced lots of problems using these API. To upload the file SFTP server you have use the JSCH SFTP API, you can download the API from here. In my previous post i have shown how to …

Read More

Java program for Downloading File from SFTP server

Java program for Downloading File from SFTP server

Most of the people face problem to download the file from the SFTP server. Everybody thinks it will be same as FTP in java but its not so. If you are using the Apache Commons.net API then you will find below classes for FTP/FTPS but there is no class available for SFTP FTPClient FTPSClient Let …

Read More

What is the difference between FTP Vs SFTP Vs FTPS

I’m writing this article for the beginners who don’t have much knowledge about the FTP vs SFTP vs FTPS. Let me start the discussion with definition of network protocols. I would not go in detail of protocol but would like to briefly explain the protocol. Introduction Protocol is the rules and standards defined to communicate …

Read More

Application Server Clustering

Though the clustering helps to improve the availability and scalability of the application, what extra benefits we get by doing the clustering at operating system level rather than doing application server level. What are the objectives we achieve by doing the clustering at OS level and application server level. In general, operating-system level clustering (aka …

Read More

How to Perform dynamic load balancing in Glassfish application server?

GlassFish is a fully Java EE 5-compliant application server with enterprise-ready features available under two OSI-approved licenses. Among many other enterprise-level features, GlassFish provides a very good self-management functionality extendable using the Java Management eXtension (JMX) standard.The GlassFish application server provides good facilities for cluster management and load balancing. Still, sometimes we need to have …

Read More

EARs, WARs, JARs, and Java EE

A Java EE application may contain one or more Java EE components such as EJBs, Web modules, resource adapters, or J2EE application client modules. Each Java EE component can have an associated deployment descriptor — an XML file that describes the component. Java enterprise components are deployed using the Java Archive (JAR) file format, which …

Read More

Servlet and JSP performance tuning

This article describes performance-tuning techniques (PTT) for developing high performance and scalable JSP (JavaServer Pages) pages and servlets. That means building applications that are reasonably and consistently fast, and can scale up to the increasing number of users and/or requests. In this article, I walk you through the practical and proven performance-tuning techniques that will …

Read More

Testing Your Java Code

It cannot be said enough that testing is the most important part of the development cycle. Even though I am not a tester (and not trying to push an agenda), I have seen that well written code without adequate test cases is not really something that any developer or team should strive for. And in …

Read More

Spaghetti Code

One always guesses every one knows what a Spaghetti code is – a code which is hard to understand and maintain, a code which everyone is so scared to touch that bug fixes are always quick and dirty, and which makes code further spaghettier. I wonder has anyone thought about spaghetti products. It may not …

Read More

HTTP vs HTTPS

The main difference between http:// and https:// is, It’s all about keeping you secureHTTP stands for HyperText Transport Protocol, which is just a fancy way of saying it’s a protocol (a language, in a manner of speaking) for information to be passed back and forth between web servers and clients.The important thing is the letter S …

Read More

Hibernate or iBatis or both ? Which is better?

What’s really difference between two and really more importantly when should I use one over the other. Its pretty interesting question because there are major differences between iBatis and Hibernate. Within in the java persistence there is no one size, fits all solution. So, in this case Hibernate which is a de facto standard is …

Read More

What is the difference between an application server and a Web server?

What is the difference between an application server and a Web server? Taking a big step back, a Web server serves pages for viewing in a Web browser, while an application server provides methods that client applications can call. A little more precisely, you can say that: A Web server exclusively handles HTTP requests, whereas …

Read More

Representational State Tranfer (RESTfull) Web Services

To Develop a stateless web services there is a Software architecture pattern called as REPRESENTATIONAL STATE TRANSFER(REST).This pattern can used in any Distributed Framework, as this is a simple protocol for data transmission and doesn’t require any other additional data transfer rule.REST can be used with the only HTTP protocol.Each service is viewed as resouce …

Read More

Featuring : STRUTS 2.0 Features

Featuring : STRUTS 2.0 Features

Since STRUTS Framework has been released officially, every java developer thinks STRUTS is the simple framework to implement. Since last two years many new framework coming to market to compete STRUTS, so the popularity of struts framework becoming obsolete. Lack of updation of Struts Framework and due to new trends coming in Web development such …

Read More

Creating a Build File from Sratch using Ant Script

Creating a Build File from Sratch using Ant Script

Introduction: This is an introductory tutorial to the Ant build tool, a free tool under GNU License and is available at http://jakarta.apache.org/ant/. Ant allows the developer to automate the repeated process involved in the development of J2EE application. Developers can easily write the script to automate the build process like compilation, archiving and deployment. It …

Read More

New Spice in Java 6 – Features

New Spice in Java 6 – Features

Java technology is both a high-level, object-oriented programming language and a software platform. Java technology is based on the concept of a Java Virtual Machine (JVM) — a translator between the language and the underlying software and hardware. All implementations of the platform emulate the JVM, enabling Java programs to run on any system with …

Read More

JAX-WS based Web Services using Java WSDP

JAX-WS based Web Services using Java WSDP

After working on web services using JAX-RPC, I shifted my attention to another web service standard for Java – JAX-WS (Java API for XML based web services). It is a successor to JAX-RPC 1.1, and obviously, it enjoys some advantages over its predecessor. The major differences between the two standards are: JAX-WS supports SOAP 1.2, …

Read More

Why do JDBC drivers always create problems?

Why do JDBC drivers always create problems?

I’m not sure if the readers of this blog have seen this problem or not but I’ve always seen driver issues (especially JDBC drivers) when deploying applications. Why does every vendor have tens of jdbc driver versions and why does every database vendor create a bunch of drivers for every release out there. This kind …

Read More