Archive for the ‘Java’ Category

JetBrain’s IntelliJ IDEA goes Open Source

Saturday, October 17, 2009 15:29 1 Comment

Empowering Java Development, Now Java Developer Community have another leading IDE open sourced.
JetBrains has announced that, starting with the next release – version 9.0, it will offer its IntelliJ IDEA Java development environment as open source software. IntelliJ IDEA is to become available in two versions;  a free and open source Community Edition, [...]

This was posted under category: Java

jBPM 4.1 Released with Signavio Integration

Thursday, September 3, 2009 19:24 No Comments

On 1st September JBoss released jBPM 4.1 with some extra ordinary features & commitments. The most significant feature add is Signavio and Oryx collaboration that gives the web based BPMN graphical designer.

The web based PDL designer is now implicit part the of jBPM 4.1 package, no need to do anything extra.
Features added are below:

End-to-end demo: [...]

This was posted under category: Java Tags: , , ,

Inside String Working in JVM

Sunday, July 12, 2009 17:11 No Comments

Java Virtual Machine maintains an internal list of references for interned Strings ( pool of unique Strings) to avoid duplicate String objects in heap memory. Whenever the JVM loads String literal from class file and executes, it checks whether that String exists in the internal list or not. If it already exists in the list, then it  [...]

This was posted under category: Articles, Java Tags: , ,

Inside Implementing & Customizing Serialization in Java

Sunday, July 12, 2009 16:35 1 Comment

Implementing serialization in Java is pretty straight forward just a little step task. The class you want to be serialized just have to implements a marker Interface Serializable no override nothing extra work.
The JVM will take care of serialization and deserialization process automatically. Now you can write your object to any persistent technology e.g. database, [...]

This was posted under category: Articles, Java Tags: , , , ,

JSF Richfaces call server side method from client side java script

Tuesday, June 9, 2009 0:21 1 Comment

With the most strong JSF + Richfaces framework combination for Java Ajax application, it is very easy to call server side methods from client side java script or call your server side event method from other jsf component easily. Following is the smart & small tip to do this.
<rich:simpletogglepanel label=”Sample Page” onexpand=”buildPage()”></rich:simpletogglepanel>
<a4j:jsfunction name=”buildPage” action=”#{controller.buildAllPage}” reRendr=”grid” [...]

This was posted under category: Java Tags: , , ,

Optimizing JSF Richfaces Applications

Saturday, April 25, 2009 1:13 10 Comments

JSF RIA based applications with richfaces comes with very common, mature and stable choice. Infact, richfaces is mature enough technology for implementing AJAX, rich user interfaces easily in JSF. I am sharing some of the common best practices for optimizing JSF richfaces application. 
<context-param>
        <param-name>org.ajax4jsf.COMPRESS_SCRIPT</param-name>
        <param-value>true</param-value>
</context-param>
This config will enforce the container to [...]

This was posted under category: Articles, Java Tags: , ,

My SCJP Victory

Wednesday, February 4, 2009 11:25 No Comments

These are my SCJP certification kit Sun. I was very happy and exited to receive on of my biggest wish to come true about ever wanted Sun certification. You can see my SCJP certificates + nice visting type card that I can put in my pocket voilet. Now, with the great success and passion with [...]

This was posted under category: Articles, Java Tags: ,

Java Generating Prime Number

Thursday, August 7, 2008 0:07 No Comments

/*
This class check the prime number between 1 to 1000 and write the prime number.
*/
public class PrimeNumber
{
// This method tests whether a given number is prime or not.
public static boolean isPrime ( int num )
{
boolean prime = true;
int limit = (int) Math.sqrt ( num );
for ( int i = 2; i <= limit; i++ )
{
if [...]

This was posted under category: Java Tags: , , , , ,

Java JDBC with using Oracle

Monday, August 4, 2008 12:28 No Comments

The JDBC is used whenever a Java application should communicate with a relational database for which a JDBC driver exists. JDBC is part of the Java platform standard; all visible classes and interfaces used in the JDBC are placed in package Java
Main JDBC classes:
Download the Java connecting with Oracle Code, you have to [...]

This was posted under category: Java Tags: , ,

Java creating custom Exceptions

Monday, August 4, 2008 12:16 1 Comment

Java supports the custom, user defined exception. Java provides the well known and common exception classes and gives freedom for developer to create their own exception classes matching to their specific business logic/role. For example, a user not found exception would be implemented by its own.
Download the Java Source code  for creating user custom exceptions
MyException.java  [...]

This was posted under category: Java Tags: , ,