Wednesday, December 06, 2006

A Primer on Spring's Data Access Object (DAO) Framework

A Primer on Spring's Data Access Object (DAO) Framework by Dhrubojyoti Kayal -- This article introduces the Spring Data Access Object (DAO) framework. After examining the architectural needs for DAO, it describes the DAO pattern in general and how Spring simplifies the implementation.

Source: Dev2Dev

Wednesday, November 22, 2006

Java - Sorting Algorithms

The animations on this URL illustrate a number of different sequential and parallel sorting algorithms. The relative execution times of the animations give a very rough idea of the relative speeds of the algorithms. Each algorithm is finished when its colored lines disappear.

To see animation, you need Java Runtime Enviroment.

How Oracle Hash Join works?

Hash Join is one of join used by Oracle server when we joine multiple table. Following link will give you a demo on Flash. This demo explains how Hash Join works in Oracle.
This demo was created by TomKyte from Oracle. I got this link from AskTom.

http://tinyurl.com/l2qsh

Alternatively, if you want "offline viewing" of this, you can download a .exe
file (about 1.8mb) that lets you play this whenever you want:

http://tinyurl.com/nyjro

Monday, November 20, 2006

Nagios

Nagios is a host and service monitor designed to inform you of network problems before your clients, end-users or managers do. It has been designed to run under the Linux operating system, but works fine under most *NIX variants as well. The monitoring daemon runs intermittent checks on hosts and services you specify using external "plugins" which return status information to Nagios. When problems are encountered, the daemon can send notifications out to administrative contacts in a variety of different ways (email, instant message, SMS, etc.). Current status information, historical logs, and reports can all be accessed via a web browser.

Nagios is licensed under the terms of the GNU General Public License Version 2 as published by the Free Software Foundation. This gives you legal permission to copy, distribute and/or modify Nagios under certain conditions. Read the 'LICENSE' file in the Nagios distribution or read the online version of the license for more details. Nagios is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE.

Friday, November 10, 2006

VPN Solution - Hamachi , OpenVPN

Hamachi is a great program that enables you to easily set up an encrypted private network between remote computers over the open internet. It's a simple elegant solution without much fuss. It does have some limitations, but it's definitely an easy and secure way to access your shared folders, enable remote network gaming, and control your machines via Remote Desktop or VNC type programs.

Nice tutorial, how to setup Hamachi is available here.

OpenVPN is a full-featured SSL VPN which implements OSI layer 2 or 3 secure network extension using the industry standard SSL/TLS protocol, supports flexible client authentication methods based on certificates, smart cards, and/or username/password credentials, and allows user or group-specific access control policies using firewall rules applied to the VPN virtual interface. OpenVPN is not a web application proxy and does not operate through a web browser.

Oracle Tip - SQL Order by clause with CASE

How to use CASE in ORDER BY clause of SELECT statement in Oracle SQL.
Order By clause allow you display data in ASCENDING or DESCENDING.

Using Order By clause we can able to arrange data in ASCENDING or DESCENDING based on columns. If it is VARCHAR2 column for ASCENDIGN and DESCENDING data will be sorted by Alphabetical. What if we want to sort CUSTOM Sort, not Alphabetically ascending or descending.

For example, take the following SQL. We can display CITY column either in Alphabetically ASC or DESC.

SQL with ORDER BY CITY ASC:
===========================

select city from (
select
'San Francisco' a from dual
union all
Select 'Boston' a from dual
union all
Select 'Charlotte' a from dual
union all
Select 'Phoenix' a from dual
union all
Select 'Houston' a from dual
union all
Select 'Washington DC' a from dual)
order by city ASC

Now let us see how we can do Custom Sorting using CASE clause in ORDER BY Clause.
We want to get list of city in the follwoing order, then we will use the following SQL.

CITY
=====
Charlotte
Boston
Phoenix
Washington DC
Houston
San Francisco


SQL with CUSTOM Sorting.
========================

select city from (
select
'San Francisco' a from dual
union all
Select 'Boston' a from dual
union all
Select 'Charlotte' a from dual
union all
Select 'Phoenix' a from dual
union all
Select 'Houston' a from dual
union all
Select 'Washington DC' a from dual)
order by CASE a when 'Charlotte' then 1
when 'Boston' then 2
when 'Phoenix' then 3
when 'Washington DC' then 4
when 'Houston' then 5
end;


Please note that in CASE clause, I never mentioned about 'San Francisco' city. But the SQL will bring 'San Francisco' as last city in the record set.

This may be required sometimes, we want to display in DropDown List box in frontend applications.

Wednesday, November 01, 2006

Oracle - Jonathan Lewis blog

Jonathan Lewis started blogging since last week. I need to track his blog every day.

Nice blog for Oracle tips

Monday, October 30, 2006

Sample build.xml for Tomcat & JBoss

I have spend lot of time to figure out sample build.xml sample files to deploy Struts Application as WebApplication to Tomcat server. Finally I found out from Developer Apple website.

Here is link for Tomcat Struts build.xml as WAR file.

Another link for build.xml to deploy Struts application to JBoss server as EAR file.

Tuesday, October 24, 2006

Using Oracle's recycle bin - Oracle 10G feature

In OraFaq, Using Oracle's recycle bin was posted by Natalka Roshak. This article gives very nice examples to demonstrate this feature in simple manner.

Natalka Roshak scripts and tips can be found in her online DBA toolkit at http://toolkit.rdbms-insight.com/.

Monday, October 23, 2006

what is VTD-XML

Simplify XML processing with VTD-XML
A new option that overcomes the problems of DOM and SAX

Cut, paste, split, and assemble XML documents with VTD-XML

VTD-XML eliminates the performance overhead associated with updating XML

Monday, October 09, 2006

Thursday, September 28, 2006

Stripes, Spring and Hibernate Tutorial

Roel Vanderpaal posted nice tutorial in hib blog, which implements Stripes, Spring and Hibernate. Source code also avaialble.

Thursday, September 21, 2006

Useful links to read

I was check web and collected couple of links, which I am interested to read. Once I collected realised that I have run for work. Compiled and posted into blog as link.
That way, I can read it later.

Changing the order of columns in a JSF Table Component -in the client, at run-time, by the end user by Lucas Jellema

Testing Knowledge of Database Performance - Is this a good Execution Plan? by Lucas Jellema

On Oracle OTN Shay Shmeltzer has written an article that explains how to use the Spring framework within JDeveloper and how to best setup JDeveloper for Spring 2.0. Interface21 has announced that the final release of Spring 2.0 is planned onSeptember 26th, 2006.

http://www.oracle.com/technology/products/jdev/howtos/1013/SpringwithJDev/in

Sun's Developer Network has posted "U.S. Daylight Saving Time Changes in 2007," detailing the changes in the start and end dates of daylight savings. This affects the JVM because it compensates for DST in various countries and older JVMs' information about DST is incorrect. Read More from TSS.


How to Create a secure login page with Java by Ramesh Nagappan



Hibernate 3.1 used with Tomcat 5.5.x By Bill Treuman and Igor Dayen



Oracle JHeadstart 10g for ADF


Orablogs


DevX: Comparison of EJB 3.0 and Spring, Part II


Spring Interface21 Blogs

Tuesday, September 12, 2006

Introduction to Spring 2.0 and JPA

Introduction to Spring 2 and JPA, a developerWorks tutorial by Sing Li, shows's how to create web-based server applications from scratch using Spring 2.0. The persistence technology used is JPA.

Spring 2.0, Struts in Oracle JDeveloper tutorial

Getting Started With Spring 2.0 in Oracle JDeveloper is a well illustrated OTN article by Shay Shmeltzer which shows how to set up JDeveloper to use the Spring framework, and then highlight some of the functionality in JDeveloper that can make your development experience with Spring more productive.

Basic Spring Interaction with WebLogic Portal 8.1

Basic Spring Interaction with WebLogic Portal by Mark Meyer and Don Davis -- This tutorial uses a demonstration application to show how BEA WebLogic Portal 8.1 and the Spring framework can be used together to give developers powerful techniques for delivering flexible applications.

Migrating to Spring 2.01

Matt Raible posted nice blog entry about Migrating to Spring 2.01

Monday, September 11, 2006

Nice OracleApps Links

I was looking for nice links and Blog for Oracle Applications, then compile here.

OracleAppsBlog
Oracle Workflow Frequently Asked Questions (FAQ)
Oracle AppCasts - Podcasts on Oracle Application

What is JCom?

JCom is a bridge library between Java and Com to enable COM object access from Java classes. Example: Creating an Excel worksheet, or using Visual Basic COM application from a Java application.

It is a opensoure tool.

Wednesday, September 06, 2006

Replacing line feeds with HTML breaks using JSTL

E-Surfer's blog posted nice Tech tip for replacing line feeds with HTML breaks using JSTL.

Java 5 StringValuedEnumUserType in Hibernate

Following entry in Hibernate will explain how,Hibernate 3 Parameterized type for mapping a Java 5 Enum with string values.

This allows you to avoid the need to define a concrete UserType instance for every enum that you have. Just create a new typedef for each one, giving it a unique type name. Then reference this type name in the property tag.

Side-by-Side Comparison of Spring and EJB 3.0

DEVX posted a Make the Right Decision with Our Side-by-Side Comparison of Spring and EJB 3.0
Are you trying to choose between Spring and EJB 3.0? If you are you know what a hard decision it can be. Explore the similarities and differences between two of the most popular Java technologies today and learn key distinctions in making a technological decision between the two.

by Rod Coffin

Where Are Your Log4j Log Files?

An Army of Solipsists blog talks about Location for Log4j properties file in the project.

Tuesday, August 22, 2006

REST - Representational State Transfer

Nice introduction article for REST By Rich Seeley

RESTLET is Lightweight REST framework for Java

Noelios Blog for Restlet project.

REST from Fielding Dissertation

Manohar Viswanathan posted nice demo application on his blog for Restful Webservices on Java,Spring with Tomcat.

Retroweaver supports most Java 1.5 features while running on Java 1.4. Open Source tool.

FreeMarker is a "template engine"; a generic tool to generate text output (anything from HTML to autogenerated source code) based on templates. It's a Java package, a class library for Java programmers. It's not an application for end-users in itself, but something that programmers can embed into their products.

Thursday, August 17, 2006

Introduction to Spring 2 and JPA - IBM DeveloperWorks

Java™ server applications need not be difficult and tedious to create. Now in its second generation, the lightweight Spring framework adds a large suite of features that make it simple for even new server application developers to use. One key enhancement is Spring 2's integration with the Java Persistence API (JPA), a cornerstone of the Enterprise JavaBeans (EJB) 3.0 specification. In this tutorial, learn how to create server applications from scratch using the Spring 2 framework.

Read More

Working with Subselect in Hibernate

Working with many tables in the same PRESTO listing Problem Definition (This is taken from an internal framework that uses Hibernate extensively.) By default Presto works with single........
Read More

Oracle9i Archive Daily Features and Reqular expressions in Oracle database

Oracle9i daily feature from Archive, I found following nice features in Oracle9i.

Index Skip Scans
External Tables
MERGE Statement

You can read more Oracle 9i daily feature from this Archive.

Writing Better SQL Using Regular Expressions
By Alice Rischert.

Oracle Releases Developer Preview of Oracle SOA Suite

Oracle has released a developer preview of its Oracle SOA suite available for download from OTN.

Oracle SOA Suite is a complete set of service infrastructure components for creating, deploying, and managing services.
It includes:

* Integrated Service Environment (ISE) to develop services - Based on JDeveloper, with new BPEL and ESB designers as well as visual XSLT mapping
* Oracle BPEL Process Manager to orchestrate services into business processes
* ESB to connect existing IT systems and business partners as a set of services
* Oracle Business Rules for dynamic decisions at runtime that can be managed by business users or business analysts
* Oracle Business Activity Monitoring to monitor services and disparate events and provide real-time visibility into the state of the enterprise, business processes, people, and systems.
* Oracle Web Services Manager to secure and manage authentication, authorization, and encryption policies on services that is separate from your service logic

Wednesday, August 16, 2006

Declared Unchecked Exception: The Best of Both Worlds

Hacking Architect posted this blog entry, which is very nice about Checked and Unchecked Exception in Java.

Since I started wearing the hat of a software architect, I started tutoring my teams on how to do this and that things in programming. One of first thing I taught my team is the difference between a checked exception and an unchecked exception, also known as RuntimeException. Read More.

Using Generics to Simplify Hibernate/Spring DAO's

Burt Beckwith in his blog, wrote an article in detail how to use Generics (Java 5.0 feature) with Hibernate and Spring. It is very nice article.

Building Custom Java Server Face UI Components

One of the key strengths of JavaServer Faces (JSF) is that not only does it provide substantial technology for easy, out of the box component based J2EE Web applications assembly, but it also is a very flexible API which allows for a wide breadth of customizations in numerous and innovative ways. This article, by Chris Schalk in TSS, introduces and explores the component developer's experience of building custom JSF user interface (UI) components.

Friday, August 11, 2006

MyFirstJSF application tutorial

I was looking for JSF tutorials to kickstart. Found couple of nice tutorials.

JSF KickStart (Create First simple JSF Application with Hello User) - best for starting for beginner.

Want to know more about JSF Navigation by Examples

JsfTutorial.net is another nice resource.

CoreServlet's Jsf Tutorial also good.

Free Text Editors for programmers

I am using Textpad as my default editor. It is very nice and simple.
Supports to compile Java files and other program files, provides we need to have compiler installed on our systems.

EditPlus, which I found out from one of my collegue. It is very nice and have lot of features. It highlights many programming codes.

It also have built-in browser to test our html,css and javascript.

Restricting Access to your AJAX Services

Greg Murray 's blog talk about XmlHttpProxy client.

Services like the XmlHttpProxy for Java are designed to return JavaScript that is evaluated on the client. Unfortunately, if you are not careful with the design of your services, JSONP techniques could be used to hijack your services. Read More from Greg Murray's blog.

The XmlHttpProxy Client for Java

Greg Murray 's blog talk about XmlHttpProxy client.

One drawback of working with AJAX is that an AJAX-based client cannot make calls to URLs outside of its domain, which means that it cannot access services located on another server. Read More from Greg Murray's blog.

OpenSource Ajax for JSF

I was looking for OpenSource JSF framework to try in one of my home project.

Found that Ajax4jsf has nice features and it is OpenSource right now.

Wednesday, August 02, 2006

Java Mustang and Webservices sample code.

Danny Coward posted nice sample code to define WebServices on Java6(Mustang).

Check his weblog entry.

SCJP5 Resources and Tutorials

Are you preparing for SCJP5, check the following link for nice tutorials.

SCJP5 Tutorials by Exforsys

I become now regluar reader of Hoskinator blog. His blog has nice resource link for SCJP5.

Hoskinator SCJP5 Resources


SCJP 5 - Constructor revision sheet
from Hoskinator blog.

Tuesday, August 01, 2006

Java Tutorials by Sun

Sun provides tutorials for JSE, JEE and Webservices.

Sun Tutorial Home Page

Java6 - Beta 2 features

Version 6 of the Java Platform, Standard Edition (Java SE), code-named Mustang, is currently in its second beta release – which is right on track for moving along to its Fall general release. So here are the top 10 things you need to know about Mustang, if you're still hovering hesitantly over that Beta 2 Download Page link.

Monday, July 31, 2006

Click - Another Web Tier Framework

Click is a simple J2EE web application framework for commercial Java developers.

Click is an open source project, licensed using the Apache license.

Click uses the event based programming model for processing Servlet requests and Velocity for rendering the response.

Click is JSP and MVC Free

Introduction to StAX

Processing XML documents has become a critical and integral part of most applications being developed today. Depending on different environments, there are various ways to process an XML document within a program.

Read more about StAX in this link.

Java - Thread Local

Use a thread local variable (where each thread has a separate value) when you want to carry a value along without explicitly passing it from method to method down the call stack, and when appropriate, remember to explicitly clear the value in a finally block to prevent memory leaks:

CrazyBob.org has detail article about this.

Mashup

Alexis Moussine-Pouchkine's Weblog,he explains how his Mashup implementation uses Java Persistence, NetBeans, and Java Studio Creator to query the, REST-based, GeoEncoding Web Service.

Part 1
Part 2

JUnit with Spring and database transaction

Manohar Viswanathan's blog explains how to do Better JUnit-ing for Spring, Junit with database transactions.

An Introduction to Java Persistence for Client-Side Developers

This link
gives nice introduction to Java Persistence for Cleint-Side Developers.

Pro EJB 3.0 Java Persistence API - Sample Chapter

The followig sample chapter posted in OTN. This gives nice introduction for EJB 3.0 JPA API programming using TopLink Essentials.

Thursday, July 20, 2006

Java5 Free sample chapters to read

Once again from Hoskinator blog, here is the list of books for Java5.

Questions and Solutions using Generics, foreach and Enumerations


Generics Sample Chapter pdf



Hardcore Java - The Final Story

---This link will talk about final keyword of Java.

Thanks Hoskinator !!!!!

I am regular visitor Hoskinator blog....

What is TestDriven?

I was reading Hoskinator blog, found two blog entries in the following topics.

Test Driven Development and ObjectiveView magazine
Learning to love Junit and Test-driven development

I know about ObjectiveView online Free magazine.

Checking what is TestDriven? Some excerpt from TestDriven website.

TDD is a lightweight programming methodology that emphasizes fast, incremental development and especially writing tests before writing code. Ideally these follow one another in cycles measured in minutes.

Functionality is added in very small chunks. Typically the first cycle will deal with utterly simple cases: you test what happens when you are out of stock, when the quantity ordered is zero, when the list is empty, when a string has no characters in it, when the user just hits [Enter]. Once you have these very simple tests working, you add more functionality, a bit at a time.

Need to learn more about this.............

Free Hibernate sample chapters

Blog by Hoskinator named A Funny Java Flavoured Look at the World have the list of links for Free Hibernate sample chapters.

Sunday, July 16, 2006

Sematic Web

I was googling for details about codePointAt method of String class from Java. Saw a word SWOOP and it is a browser. Googled SWOOP and found that SWOOP is Hypermedia-based OWL Ontology Browser and Editor.

What is Ontology?
The branch of metaphysics that deals with the nature of being.

Further tried to find information about this browser, the new word pop-up. SEMATIC WEB.

What is Sematic Web?
The Semantic Web provides a common framework that allows data to be shared and reused across application, enterprise, and community boundaries. It is a collaborative effort led by W3C with participation from a large number of researchers and industrial partners. It is based on the Resource Description Framework (RDF).

Read further details about Sematic Web from W3C.

Also found a nice presentation about Introuction to Sematic Web using Google.

Want to know Sematic Web read this presentation.

Saturday, July 15, 2006

SQL Developer Extensions and Eclipse

Recently, I read about SQL Developer extensions for Eclipse from Kris Rice's weblog.
I am giving the contents of his blog posting. I would like to post the contents, rather than giving link. The reason is the link may break and we may loss this information.

Thanks to Kris Rice.

Want to write an extension to SQL Developer but you only use Eclipse? There's a post on the forum about how to use Eclipse to write an extension to sql developer so I figured I'd put it here so it's not lost into the of the forum.

This is actually quite easy to setup. This can be checked by running the shell script with a -x, so bash -x sqldeveloper. This will show what is being executed

First make a run/debug configuration.


1. Main Tab
* Main Class: oracle.ideimpl.Main
* Check the Include libraries when searching for a main class checkbox

2. Arguments Tab
* The paths in the VM arguments should be adjusted to your specifics. Also if there is a space in the paths they will have to quoted like "C:\Document and Settings\sqldeveloper...."

* VM Arguments: -Dide.product=oracle.sqldeveloper -Dide.splash.screen=raptor-splash.gif -Xverify:none -Xmx512M -XX:MaxPermSize=128M -Dice.browser.forcegc=false -Dice.pilots.html4.tileOptThreshold=0 -DEDITOR_J2SE_VERSION=1.5 -DINSIGHT_OMIT_HIDDEN=true -Doracle.xdkjava.compatibility.version=9.0.4 -Dide.debug.controller.stack=false -Dceditor.java.parse.small=300 -Dceditor.java.parse.large=1500 -Dide.extension.cpmissing.nowarn=true -Dcompiler.vmargs=-mx512m -Djbo.debugoutput=silent -Djbo.showdebugwarningbanner=false -Dide.config_pathname=/home/klrice/sqldeveloper/jdev/bin/sqldeveloper.conf -Dide.startingcwd=/home/klrice/sqldeveloper/jdev/bin -Dide.user.dir=/tmp
* Working directory: choose Other . Then enter the path to /jdev/bin

3. Classpath Tab
* Add the following ( all paths are relative to )
* /ide/lib/ide.jar
* /ide/lib/javatools.jar
* /ide/lib/xmlparserv2.jar
* /ide/lib/help4.jar
* /ide/lib/share.jar
* /ide/lib/javax-ide.jar


Now the run configuration is setup and ready to use. You should now be able to run and debug an extension.

Posted by kris.rice at May 3, 2006 03:40 PM

What is mod_plsql?

mod_plsql is an oracle module for Apache.It is essentially an apache module that provides direct access to stored procuders via HTTP requests.

Roland Bouman in his blog gives nice introduction to mod_plsql and how to enable this feature in OracleXE(free oracle database).

Laurent Schneider in his blog gives simple example for mod_plsql.

Remote Debugging with SQL Developer

Oracle free tool SQL Developer got nice feature. Sue Harper from Oracle in her blog gave very detail tutorial, how to do remote debugging with stored proecedures,funtion and packages using SQL Developer.

You need SQL Developer and Oracle XE.
To download click the links:
SQL Developer
OracleXE

Friday, July 14, 2006

Making the Most of Oracle SQL Developer Reports - OTN

Oracle SQL Developer (formerly Project Raptor) is Oracle’s new multiplatform graphical user interface (GUI) for developers and DBAs. Like Oracle Database 10g Express Edition (XE) and Oracle JDeveloper, Oracle SQL Developer can be downloaded completely free. Oracle SQL Developer runs on the Windows, Macintosh, and Linux platforms.

Make the best use of the reporting capabilities in Oracle's free database development tool
by
Lewis R. Cunningham

Websphere Tutorials and Articles

This devx.com link have compiled all nice links for Websphere tutorials and articles.

Want to program in IBM Rational Applicaton Developer V6, refer this Redbook.

Sunday, July 09, 2006

Websphere Portal resources

Guides:
Portlet Development Guide: Second Edition

Portlet Development Best Practices and Coding Guidelines


Articles

Developing and Deploying a Struts Application as a WebSphere Portal V5 Portlet

Applying the State Pattern to WebSphere Portal V5 Portlets: Part 1

Applying the State Pattern to WebSphere Portal V5 Portlets: Part 2

Simflet - simple MVC framework for JSR-168 portlet

Simflet is a simple MVC framework for JSR-168 portlet.

Simflet is an open source simple framework for portlet development. The reason it's been written? Because there is no proper MVC model in the Portlet API. As a result, portlet development is like servlet development: complex applications aren't easy, because of the infrastructure issues.

It has following features and more.
  • Struts like MVC model
  • Simple, easy to use
  • No additional configuration is required
  • Portlet development with Simflet framework can be deploy in any JSR-168 compliant portal
  • Easy file upload handling
  • Light - OpenSource Portal framework

    Light is an AJAX- and Java-driven portal framework. One of its unique features is that it can be turned on when users need to access their personalized portal and turned off when users want to do regular business processes.

    List of OpenSource Portal frameworks available here.

    Saturday, July 01, 2006

    How to put file per server in Weblogic Cluster

    Let say you want to put file(either property or standard) per server on WebLogic Cluster.

    In simple term, you want to write file to each server, when WebLogic server runs on cluster.

    You can get thesse information in your code:
    T3Services.getT3Services().config().getProperty("weblogic.system.home");
    T3Services.getT3Services().config().getProperty("weblogic.system.name");
    T3Services.getT3Services().config().getProperty("weblogic.cluster.name");
    T3Services.getT3Services().config().getProperty("weblogic.home");


    Now using above details we can write file as below.

    T3Services.getT3Services().config().getProperty("weblogic.system.home") +
    File.seperator +
    T3Services.getT3Services().config().getProperty("weblogic.cluster.name") +
    File.seperator +
    T3Services.getT3Services().config().getProperty("weblogic.system.name") +
    "mysoftware.properties";

    Google Map Taglibs

    I just found out about the GoogleMaps JSP Taglibrary. It can be as easy as this, but also allows a lot of other usages.

    <googlemaps:map id="map" width="250" height="300" version="2" type="STREET" zoom="12">

    <googlemaps:key domain="localhost" key="xxxx"/>

    <googlemaps:point id="point1" address="74 Connors Lane" city="Elkton" state="MD" zipcode="21921" country="US"/>

    <googlemaps:marker id="marker1" point="point1"/>

    </googlemaps:map>



    Great stuff!

    Spring PropertyPlaceholderConfigurer

    I found two blog entries for Spring PropertyPlaceholderConfigurer class. It is very informative.

    Spring PropertyPlaceholderConfigurer by techno.blog("Dion")

    Externalizing Configuration with Spring by Stefan Kleineikenscheidt

    Sending E-Mail with Spring

    This TheServerSide artcile by Matt Raible gives small tutorial, how to send email using Spring and Velocity.

    what is singleton?

    A singleton class is one in which instantiation is restricted to ensure that only one instance is created for the current Java Virtual Machine. Singletons usually have a private default constructor, to prevent direct instantiation, and a static method to obtain a "new" reference to the single instance. On its first call, the static instance method creates the object using a private constructor and stores a static reference to it for all subsequent calls.

    This is useful when exactly one object is needed to coordinate actions across the system. Sometimes it is generalized to systems that operate more efficiently when only one or a few objects exist.

    Singleton Example:
    //For Single Thread safe
    public class Singleton {
    // Private constructor suppresses generation of a (public) default constructor
    private Singleton() {}
    private static class SingletonHolder {
    private static Singleton instance = new Singleton();
    }
    public static Singleton getInstance() {
    return SingletonHolder.instance;
    }
    }

    // Correct multithreaded version for J2SE 1.4 and earlier
    public class Singleton {
    private Helper helper = null;
    public synchronized Helper getHelper() {
    if (helper == null)
    helper = new Helper();
    return helper;
    }
    // other functions and members...
    }

    What happens to singletons when two JVMs are running?

    A: There is only one instance of a true singleton in a single virtual machine. If two virtual machines are running, two separate and independent instances of a singleton exist. If the singleton in question is governing access to the same system resource, there may be conflicts between the two systems, which is why the singleton design pattern is not ideal in this scenario.

    For more details on J2EE Patterns by Sun

    Friday, June 30, 2006

    How SpringFrameWork works?

    SpringFramework works on the principle of Inversion Control.

    What is Inversion Control?
    Inversion Control, also known as IOC, is an important object-oriented programming principle that can be used to reduce coupling inherent in computer programs.

    Read more about Inversion Control from Wikipedia.

    A simple demo of Inversion of Control (using Spring framework)available.

    XSLT Processing with Java

    This article from Onjava, explains using Java how XSLT works and has working sample aso.

    Spring Framework MVC application step-by-step and Resources

    To learn Spring MVC, please visit series of articles which define step by step instruction to create Spring MVC.

    The link will take to Part1. Follow the Part2, Part3 and Part4 also.

    Visit SpringHub for more resources on Spring.

    Developer.com has very nice article for How To Develop J2EE Applications Using Hibernate Annotations and Spring MVC

    Friday, June 23, 2006

    WebServices - IBM Education Assistant

    IBM Education Assistant provides nice tutorial about WebServices and Webservices with IBM® WebSphere® Application Server, V6.0 and V6.0.1

    Recommended Eclipse reading list

    IBM developer works journal posted Recommended reading list for Eclipse.

    This list is compiled from a variety of sources and is intended for anyone who wishes to find centralized reading material about Eclipse. One of the biggest challenges new Eclipse users face is where to find the right information for a task. This article provides a small step in solving that problem.

    Wednesday, June 21, 2006

    Enabling Data Exchange in Ajax Applications - OTN Article

    Learn how to transfer data between Ajax clients and Java servers with XML and JavaScript Object Notation. This article by Andrei Cioroianu. Article available in OTN.

    Tuesday, June 20, 2006

    Cayenne

    This article presents Cayenne - a fast, scalable and easy-to-learn open source Object Relational Mapping (ORM) framework. Cayenne is a rare kind of a Java open source project. It is not just an "edit your own XML" runtime library, but an integrated suite that includes modeling and deployment tools. This article shows how to quickly create an ORM application with Cayenne and discusses its core features and design principles. For detailed information on Cayenne visit http://objectstyle.org/cayenne/.

    Other Object Relational Mapping frameworks are
    Hibernate
    IBATES by Apache
    DALI by Eclipse

    Thursday, June 15, 2006

    Ajax Tutorials

    Here is list of links for Ajax simple to Complex Tutorials

    A List Apart is pleased to present the following excerpt from Chapter 27 of Web Design in a Nutshell (O’Reilly Media, Inc., third edition, February 21, 2006). —Ed.

    60 More AJAX Tutorials

    Tuesday, June 13, 2006

    Apache Tuscany M1 released

    TheServerSide.com reports Apache Tuscany M1 was released. It provides a Java implementation of the Service Component Architecture (SCA) and Service Data Objects (SDO) specifications, and a Data Access Service (DAS) supporting SDO.

    Implementing Google AJAX Search

    Read this blog to implement Google AJAX search on your site, blog. This blog has step by step instructions.

    SCJP 5 - Collections / Generics Resources

    I found this very good link to a Generics and Collections tutorial for people studying for their SCJP Java 5 exam. I think Generics and collections can be quite difficult due to the number of tricky facts you have to learn.

    SOA Best Practices: The BPEL Cookbook - Oracle OTN

    From this article, Learn advanced BPEL concepts and best practices for development, deployment, and administration from the architects implementing them in real-world applications.

    Service-Oriented Architecture (SOA) is creating a lot of buzz across the IT industry. Propelled by standards-based technologies like XML, Web Services, and SOAP, SOA is quickly moving from pilot projects to mainstream applications critical to business operations.

    Hibernate Articles, Materials and Tutorials

    Want to read articles, materials, tutorials and demo applications, please refer following links

    Hibernate External articles & tutorials

    Demo Applications

    Basic Spring Web services with XFire and JSR 181

    I was reading a blog of Basic Spring Web services with XFire and JSR 181

    There is a reference to JSR 181 (Web Services Metadata for Java Platform) and XFire in above blog.

    Look here for an introduction to JSR 181 and where it fits in to the world of Web services.

    What is XFire?

    Codehaus XFire is a next-generation java SOAP framework. Codehaus XFire makes service oriented development approachable through its easy to use API and support for standards. It is also highly performant since it is built on a low memory StAX based model.

    Yet to read completly all the links.

    Best 27 Eclipse Tutorials by IBM

    The Intelligentedu.com blog has thrown up a great compilation post linking to the top 27 Eclipse-based tutorials from IBM. For anyone wanting to get started with the Eclipse platform, here is a great place to start or at least bookmark!

    These tutorials cover every thing from developing RCP applications, to web services, to using TPTP, to developing Eclipse plugins.

    Wednesday, June 07, 2006

    SysInternals - Freeware

    The Sysinternals web site provides you with advanced utilities, technical information, and source code related to Windows internals that you won't find anywhere else. Mark Russinovich and Bryce Cogswell alone write and update everything in this website. This website got nice freeware tools for File&Disk, Security,Networking, Process&Thread and System Information.

    SOAPUI - Desktop tool for WebServices

    SOAPUI is a desktop application for inspecting, invoking and testing (functional and load) of web services over HTTP. It is mainly aimed at developers/testers providing and/or consuming web services (java, .net, etc). Functional and Load-Testing can be done both interactively in soapui or within a automated build/integration process using the soapui command-line tools. soapui currently requires java 1.5 and is licensed under the LGPL license.

    Friday, June 02, 2006

    An Introduction to SIP

    An Introduction to SIP, Part 2: SIP Servlets by Emmanuel Proulx -- Java is an excellent platform for SIP development. This is especially true for server-side aspects of SIP development. In this article, Emmanuel Proulx describes the SIP Servlet API technology and provides an annotated example of its use.

    Dev2Dev - Managed File Transfer Capabilities in the WebLogic Platform

    Managed File Transfer Capabilities in the WebLogic Platform by Senthil Kumar Krishnan and Ambarish Nagarajan, Hari Prakash -- Recent regulations are calling for every process to be documented and auditable, including those business processes that incorporate or leverage FTP. This article describes how to build industry-strength file transfer capabilities using WebLogic Workshop and WebLogic Integration 8.1.

    Dev2Dev - Java Portlet Tools: Converting Java Web Applications into Adaptive Portlets

    Java Portlet Tools: Converting Java Web Applications into Adaptive Portlets by Andrew Lorek -- The AquaLogic User Interaction Java Portlet Tools rewrites HTML so plain Web applications can be used unmodified within a portal. In this article Andrew Lorek introduces the tools and provides examples of configuration and use.

    Friday, May 26, 2006

    Building an Ajax Memory Tree - from OTN

    The following article by Scott Spendolini in OTN gives step by step instruction to Learn how to create an Ajax-based memory tree in Oracle Application Express(formely known as Oracle HTML DB).

    What is Reverse Ajax?

    Jonathan Downes has written an article called "What is Reverse Ajax?," addressing the definition of this 'new technique' - which is actually a set of older techniques combined under a single name, much like Ajax itself is.

    Wednesday, May 24, 2006

    Google releases AJAX development toolkit

    At JavaOne2006, Google announced the official release of the Google Web Toolkit (GWT), a Java-based platform for the development of AJAX web applications that work in all mainstream web browsers. Designed to simplify AJAX development, GWT generates consistent, browser-neutral Javascript from simple Java source code.
    Nice article about this tool.

    Other OpenSource JavaScript Toolkit for Ajax are DOJO, Direct Web Remoting(DWR) and Blackbase

    Tuesday, May 23, 2006

    Oracle - SQL Developer

    Oracle SQL Developer
    Oracle SQL Developer is a new, free graphical tool for database development. With SQL Developer, you can browse database objects, run SQL statements and SQL scripts, and edit and debug PL/SQL statements. You can also run any number of provided reports, as well as create and save your own. SQL Developer enhances productivity and simplifies your database development tasks.

    SQL Developer can connect to any Oracle Database version 9.2.0.1 and later and runs on Windows, Linux and Mac OSX.

    SQL Developer is free.

    Monday, May 22, 2006

    Declarative Caching Services for Spring

    Declarative Caching Services for Spring by Alex Ruiz -- Caching is an essential practice that improves the performance of enterprise applications. In this article, Alex Ruiz demonstrates a declarative caching framework for Spring 2.0, which supports pluggable cache implementations

    Wednesday, May 17, 2006

    JavaOne 2006 - Day1

    I am attending JavaOne 2006 at Mascon Center, San Frascisco,CA. Today is my first day. This conference will end on May,20,2006. This is my first conference. It is very nice experience. I came here on Saturday night and register myself on Monday,15, May,2006.

    Day1, Tuesday morning at 8.30 the session started with general sessions by Java CEO and other leading technical people.
    Sun is planning to release Java to OpenSource. The question was asked like this. Wheather Sun plans to release Java to OpenSource and it was answered that it is not WHEATHER, but HOW. That shows Java is going to be available to OpenSource. Still they need to work out the existing licence and compatability issues. Thanks Java.

    General sessions insisted everyone to join JCP.org and Java.net. Motorola CEO predicts mobile applications will be taking the ride in coming 10 years using Java. Linux Unbuntu and Java are availble in desktop in China and South Africa.

    Motorola device won Duke's best Music device award.

    Marc Fleury, CEO of JBoss was not willing to talk about JBoss and Redhat merge, but he informs that they are not decided about the name. Either name can be REDBOSS or JHAT!!!

    Some of the annouements on Day1

    Java EE 5.0 is available to production.

    JMS goes to OpenSource.

    Project Tango was renamed WSIT and that goes to OpenSource.

    BPEL engine moved into OPENESB.

    All OpenSource products will be named under Open Java EE.

    After the general sessions, attended EJB 3.0 session. It is very nice and gave nice details about EJB feature.

    Second session was Essential Lessons for Distributed Caching. It was from Tagosol CEO. It is very nice and in detail.

    Third session was Concurrent collection utilities in Java SE 5.0.

    Fourth session, TestNG which is alternate to JUnit

    Fifth session is Portlet 2.0 with JSR 286. With JSR 286, it looks like we will have event for portlets and render parameter for portlet.

    I left at 6.30pm to my hotel.

    Friday, May 12, 2006

    Article: Why Spring JDBC?

    Vikram Veeravelu has written an article discussing the use of Spring JDBC over direct use of the JDBC API. It's published on java.net and is a good introduction for anyone interested in trying the Spring JDBC library.

    Thursday, May 11, 2006

    Live Clipboard – Ajax direction ?

    Do you want copy one web page to another web site. Microsoft is coming with new feature called Live Clipboard. More

    Spring Web Flow 1.0

    Spring Web Flow 1.0 was released. Read More

    Spring Framework 1.2.8 was released. More

    Wednesday, May 10, 2006

    WebLogic Portal 9.2

    In Josh Lannin's Blog, he talks about Making your Portal development leaner and more agile with WebLogic Portal 9.2

    Two toolkits bring Ajax to Eclipse

    Get ready for the new Open Ajax Initiative, dedicated to building an open platform in which developers can collaborate. Two existing run-time tools, Dojo and Zimbra, are supported in Eclipse's Ajax Toolkit Framework (ATF) and can help you prepare. More >>

    Friday, May 05, 2006

    Dali - Eclipse ORM

    Eclipse coming with new Tool for ORM. They code named this project as Dali.

    The goal of the Dali EJB Object-Relational Mapping project is to build extensible frameworks and exemplary tools for the definition and editing of Object-Relational (O/R) mappings for EJB 3.0 Entities. EJB 3.0 O/R mapping support will focus on minimizing the complexity of mapping by providing creation and automated initial mapping wizards, and programming assistance such as dynamic problem identification.

    In his blog, Arthur Ryman the Web Tools Project co-lead discusses Dali and other new WTP-related Eclipse projects. Sept 2005

    Sunday, April 23, 2006

    Spring Components - XML configuration on steroids

    The single most important feature in Spring 2.0 (IMO) is a new XML
    configuration convenience feature. I believe this is going to
    revolutionize the way people develop for Spring and bootstrap a modest
    component market too. This is a lot more than a convenience features
    - it’s a fledgling component model too.

    Read More

    Spring applications for IBM WebSphere Application

    Develop a J2EE™ application for IBM® WebSphere® Application Server using the Spring Framework and IBM Rational® Application Developer. In this first of three articles, learn about Spring, the Spring bean factory, and AOP, and about how to integrate Spring and Struts applications.

    Read More

    LdapTemplate: LDAP Programming in Java Made Simple

    The Java Naming and Directory Interface (JNDI) is for LDAP programming what Java Database Connectivity (JDBC) is for SQL programming. There are several similarities between JDBC and JNDI/LDAP (Java LDAP). Despite being two completely different APIs with different pros and cons, they share a number of less flattering characteristics:

    * They require extensive plumbing code, even to perform the simplest of tasks.
    * All resources need to be correctly closed, no matter what happens.
    * Exception handling is difficult.

    The above points often lead to massive code duplication in common usages of the APIs. As we all know, code duplication is one of the worst code smells. All in all, it boils down to this: JDBC and LDAP programming in Java are both incredibly dull and repetitive.

    Read More

    Wednesday, April 19, 2006

    IBM Easy Website Builder

    IBM Easy Website Builder

    An Eclipse-based tool that enables non-technical business users to build dynamic Web sites without assistance from technical developers.

    Free tool is available to download.

    This tool uses Apache Derby database, Eclipse and TomCat to build your website.

    It has got nice Wizard to build your website.

    Read More

    Tuesday, April 18, 2006

    Oracle fires a shot across Red Hat’s bows

    FT.com reports following report.
    For long-time watchers of Larry Ellison, the revelation that Oracle is looking at launching its own version of the Linux open source operating system has aroused a suspicion: is the software industry’s most acquisitive CEO stalking his next target?

    Monday, April 10, 2006

    Ajax Programming in WebLogic Portal 8.1

    Ajax Programming in BEA WebLogic Portal 8.1, Part 2 by John Margaglione -- In the final part of the series examining low-level Ajax programming in BEA WebLogic Portal 8.1, John Margaglione provides several example portlets together with commentary explaining the pitfalls awaiting the unsuspecting Ajax programmer.

    Thursday, March 30, 2006

    Java Feature: Putting a Face on Web Services and SOA

    Java Feature: Putting a Face on Web Services and SOA
    — Service-Oriented Architecture (SOA) is a hot topic among analysts, CIOs, and technology marketers, but the path from high-level architectural principles to programming a functioning, real-world service isn't always clear, especially since, in the end, you still need to create a clean user interface that's as flexible as the services it consumes.

    Wednesday, March 22, 2006

    Oracle Secure Enterprise Search

    Oracle Secure Enterprise Search 10g, a standalone product from Oracle, enables a secure, high quality, easy-to-use search across all enterprise information assets. Key features include:

    * The ability to search and locate public, private and shared content across Intranet web-servers, databases, files on local disk or on file-servers, IMAP email, document management systems, applications, and portals
    * Highly secure crawling, indexing, and searching
    * A simple, intuitive search interface leading to an excellent user-experience
    * Excellent search quality, with the most relevant items for a query shown first, even when the query spans diverse public or private data sources
    * Analytics on search results and understanding of usage patterns
    * Sub-second query performance
    * Ease of administration and maintenance leveraging your existing IT expertise

    Spring with JPA in WebLogic

    Using the Java Persistence API with Spring 2.0 by Seth White -- The Java Persistence API (JPA) and the version 2.0 release of the Spring Framework form a powerful combination. Author Seth White uses an updated version of BEA WebLogic Server's medical records sample application to show how Spring 2.0 and JPA can be used with WebLogic Server.

    Friday, March 17, 2006

    Realtime Validation with Ajax

    Greg Murray's Blog talks about Realtime Validation with Ajax with examples. With the same examples, he talks about Internationalization (i18n). He further says that Internationalization (i18n) is easy if we are using AJAX and Java. Both Java and JavaScript have i18n capabilities though it is not obvious how to use those capabilities are not from an i18n background.

    Inversion of Control Containers and the Dependency Injection pattern

    Nice article about Inversion of Control Containers and the Dependency Injection pattern by Martin Fowler

    Sunday, March 12, 2006

    Mid-tier Two Phase commit to Oracle

    This article explains how to do a Two-Phase commit to Oracle databases with Oracle App Server.

    It has got source code and code snippet.

    Friday, March 10, 2006

    JavaScript Recommendations for AJAX Component Writers
    Author: Greg Murray

    With AJAX there are many choices on how to use different aspects of JavaScript. This document proposes some recommendations for developers creating AJAX components with a focus on using JavaScript on the client and Java on the server. Many of these recommendations will carry over to other server-side technologies.

    Thursday, March 09, 2006

    Hermes - JMS explorer

    Hermes is a Swing application that allows you to interact with JMS providers. Hermes will work with any JMS enabled transport making it easy to browse or seach queues and topics, copy messages around and delete them. It fully integrates with JNDI letting you discover administered objects stored, create JMS sessions from the connection factories and use any destinations found. Many providers include a plugin that uses the native API to do non-JMS things like getting queue depths (and other statistics) or finding queue and topic names.

    Wednesday, March 08, 2006

    Eclipse Tips: Managing Eclipse Plugins

    I was looking for how to keep multiple Eclipse plugins and workspace when upgrade Eclipse to newer version.

    I found following two nice blog entries. Both blogs explain how to retain multiple plugins when you upgrade to New version of Eclipse.

    From Colin's Blog

    From Vasanth Blog

    Spring Web Flow 1.0 EA Released

    Spring Web Flow (SWF) 1.0 EA has been released.

    Spring Web Flow is a product of the Spring community focused on the definition and execution of page flow within a web application.

    Read more information from TheServerSide also

    Tuesday, March 07, 2006

    Clustering JSR-168 Portlet Applications in Tomcat

    Clustering JSR-168 Portlet Applications in Tomcat
    John A. Lewis

    In this article, Unicon Software Architect John A. Lewis discusses how to use Tomcat 5.5, mod_jk 1.2, Apache 2.0 and Pluto 1.0.1 to construct a functioning Tomcat cluster that will properly replicate portlet session information.

    Monday, March 06, 2006

    Awk with Java

    Jawk is an Awk implementation written in Java. It also augments Awk
    such that Awk scripts can access Java services, such as Threads,
    Sockets, etc. Java 1.5 is required. Go to
    http://www.sourceforge.net/projects/jawk to download the executable jar
    file (jawk.jar).

    Jawk is a combination of Awk and Java such that Awk scripts can utilize
    Java services. That is, you may now contruct Awk scripts
    - that have GUI front ends (via AWT or Swing).
    - that can connect to servers via Sockets.
    - that can utilize Java Security libraries.
    - that can access databases via JDBC.
    - that are multithreaded.

    This is all achieved with a natural expansion of Awk syntax and
    semantics, along with some additional keywords and operators. However,
    the overall flavor of the scripts are still Awk.

    Jawk implements as much of Awk as it can. I tried keeping it in line
    with Awk standard set forth by The Open Group
    (http://www.opengroup.org/onlinepubs/007908799/xcu/awk.html).

    Go to http://jawk.sourceforge.net/ and click on Overview for more
    information.

    Friday, March 03, 2006

    Bad Sql

    Following SQL will help you to find bad SQL Statements in Oracle.

    SELECT disk_reads, executions,
    disk_reads/DECODE(executions, 0, 1, executions) "READS_PER_EXEC",
    sql_text
    FROM v$sqlarea
    WHERE executions > 10
    ORDER BY executions desc

    Thursday, March 02, 2006

    Weblogic Web Services With Spring Framework

    Blog by Matt Luce explains the problem faced to implement this with reference to Dev2Dev article.

    Recently, I was trying to connect to a web service with the Spring Framework JaxRpcPortProxyFactoryBean. The web service and client code were generated with the weblogic servicegen and clientgen ant tasks respectively.

    I found this example on the dev2dev site:

    Unfortunately, it didn’t work for me. I spent almost an entire day trying to get it to work.

    Eclipse WebLogic Plugin

    Debugging WebLogic Server Applications Using Eclipse and the WebLogic-Plugin by Jeremy Whitlock -- The WebLogic-Plugin is a successful CodeShare project you can use to deploy and debug applications on the Eclipse IDE. In this article, Jeremy Whitlock introduces the plugin.

    Tuesday, February 28, 2006

    Introduction to the Java EE 5 Platform

    Read about streamlined features and added convenience in the
    Java EE 5 platform that help improve performance, reduce
    development time, and get products to market sooner.

    With version 5 of the Java Platform, Enterprise Edition (Java EE, formerly referred to as J2EE), development of Java enterprise applications has never been easier or faster. J2EE 1.4, the predecessor to the Java EE 5 platform, has many powerful features. The aim of the Java EE 5 platform design has been to streamline these features and add convenience, improve performance, reduce development time, and help developers get products to market that much sooner.

    Friday, February 24, 2006

    UML2HBM: Generating hbm.xml files from Class Diagrams

    If you are trying to drive the development with UML models and want to use Hibernate, there is the problem of defining the mapping information and generating the mapping files from the source UML model.

    This blog has detail about Eclipse plugin for above situation.

    XQuery engine integrated with Oracle Database 10g Release 2.

    With the release of Oracle Database 10g Release 2, Oracle introduced a full-featured, native XQuery engine integrated with the database that can be used to accomplish various tasks involved in developing an XML-enabled application. A query language designed to work with the XML data model, XQuery can actually operate on any kind of data that can be expressed in XML. Although the Oracle XQuery implementation enables you to work with both database data and external sources, Oracle XML DB generally provides significant performance improvements when processing structured data stored in the database.

    The examples presented in this article demonstrate not only where and how XQuery can be used to query, construct, and transform XML, but also how to monitor and analyze the performance execution of XQuery expressions, finding more-efficient ways to process the same workload.

    Article from OTN

    Thursday, February 23, 2006

    IBM Websphere reading list

    Friend of mine forward few details about IBM Websphere resources.

    This article give reading list to learn about IBM® WebSphere® Application Server compiled for customers, consultants, and other technical specialists, by IBM Software Services for WebSphere.

    Also, we can read lot of books from IBM Redbooks also. It has got lot tutorial, books and articles.

    Thanks to my friend.

    Wednesday, February 22, 2006

    Share information between IBM portlets and JSR 168 portlets:

    Share information between IBM portlets and JSR 168 portlets: Write a custom portlet service to enable legacy IBM portlets and Java Specification Request (JSR) 168 portlets to share information as properties. (WebSphere)

    JMS Clients to Utilize Free Computer Resources

    Use JMS Clients to Utilize Free Computer Resources by Nimish Doshi -- In this article, Nimish Doshi proposes using JMS to distribute work to underutilized computer resources. He presents two solutions, one of which uses WebLogic Workshop and WebLogic Integration to control the workflow of job distribution.

    Tuesday, February 21, 2006

    Oracle JDeveloper with WebLogic 8.1

    Developing for WebLogic Server 8.1 with Oracle JDeveloper 10g by Deepak Vohra -- In this tutorial, Deepak Vohra demonstrates how to develop and debug applications on WebLogic Server 8.1 using the Oracle JDeveloper 10g IDE.

    Dependency injection with AspectJ and Spring

    This article explains Dependency injection with AspectJ and Spring.

    Dependency injection and aspect-oriented programming are complementary techniques, so it's natural to want to use them together. Follow along as Adrian Colyer explores the relationship between the two and shows you how you can combine them to facilitate advanced dependency injection scenarios.

    Thursday, February 16, 2006

    Virtual Directory Mapping feature in WebLogic - Tips

    In WebLogic server, using deployment descriptor elements we can define Virtual directory for application.

    Each weblogic application will have "weblogic.xml". This file will have deployment descriptor elelments for the application. One of the deployment descriptor element is .

    We can use the virtual-directory-mapping element to specify document roots other than the default document root of the Web application for certain kinds of requests, such as image requests. When we run multiple applications, which requires same image files then all images can be stored in single location. This way we can avoid loading all the images with each application also increasing the volume of the application EAR file.

    For an incoming request, if a virtual directory has been specified servlet container will search for the requested resource first in the virtual directory and then in the Web application's original document root. This defines the precedence if the same document exists in both places.

    Example:


    <virtual-directory-mapping>
         <local-path>c:/usr/gifs</local-path>
         <url-pattern>/images/*</url-pattern>
         <url-pattern>*.jpg</url-pattern>
    </virtual-directory-mapping>
    <virtual-directory-mapping>
         <local-path>c:/usr/common_jsps.jar</local-path>
         <url-pattern>*.jsp</url-pattern>
    </virtual-directory-mapping>



    REMEMBER: The WebLogic Server implementation of virtual directory mapping requires that you have a directory that matches the url-pattern of the mapping. The image example requires that you create a directory named images at c:/usr/gifs/images. This allows the servlet container to find images for multiple Web applications in the images directory.

    BEA to Open Source its Kodo Java Persistence APIs

    BEA Systems has announced that it will open source a significant portion of BEA Kodo, its persistence engine, under the name Open JPA. BEA acquired Kodo as part of its purchase of SolarMetric, Inc. in November 2005. Open JPA will implement the persistence architecture described in the EJB 3.0 specification (and implements the early draft specification today.) Open JPA is expected to be available in the first half of 2006. BEA Kodo - the source for Open JPA - is available today for free evaluation and purchase.

    Tuesday, February 14, 2006

    Single Sign On

    I was googling today to find solution, how to integerate Waveset product Lighthouse with other systems to implement Single Sign On.

    Learned about Liberty and SAML.

    what is SAML?
    - Security Assertion Markup Language

    SAML is a framework for exchanging authentication and authorization information. Security typically involves checking the credentials presented by a party for authentication and authorization. SAML standardizes the representation of these credentials in an XML format called assertions, enhancing the interoperability between disparate applications.

    What is Liberty Protocol?

    The Liberty Alliance Project specifications provide a single sign-on mechanism for both Websites and Web services.

    This article lists a number of Liberty Protocol and fundamentals that help to protect an SSO

    Another sso presentation article by Sun systems.

    Thursday, February 09, 2006

    OpenSource Portal Frameworks

    Yesterday, I came to know about list of OpenSource Portal Frameworks.

    Apache Jetspeed 2
    Liferay
    JBosss Portal
    Gridsphere


    All three framework are JSR-168 Compliant.

    Apache Jetspeed from Jakarta opensource community.

    Liferay got nice Portal UI features.

    JBoss Portal is nice.

    Gridsphere is part of the Gridlab Project. GridLab was funded by the European Commission under the Fifth Framework Programme of the Information Society Technology, contract number IST-2001-32133. The GridLab Project officially ended in April 2005 and eagerly waiting for Grid Lab 2!

    Personally, I would go with Gridsphere!!

    Wednesday, February 08, 2006

    Skype - Free Tool to talk

    Skype is a little program for making free calls over the internet to anyone else who also has Skype. It’s free and easy to download and use, and works with most computers. Download Skype now or learn more about Skype (incl. screenshots).

    Skype in a nutshell.

    Our software’s quick and easy to get started with. Download, register, install, plug in your headset, speakers or USB phone and start calling your friends. The calls have excellent sound quality and are highly secure with end-to-end encryption. You don’t even need to configure your firewall or router or any other networking gear. It just, you know… works.

    Logos for the platforms Skype works on: Windows, Mac OS X, Linux and Pocket PC.Bridging the gap.

    And it doesn’t just work on Windows, like some other software you may know. Skype is also for Mac OS X, Linux and PDAs using Pocket PC, with a native look and feel for each platform. Talking, sending instant messages or even file transfers work between different platforms like a charm.

    Calling regular phone numbers.

    If there weren’t enough ways for you to contact your friends, we have a little thing called SkypeOut. It lets you make calls to old-fashioned phone numbers all around the world. Landlines, mobile phones... it works with almost all of them. SkypeOut is not free but it is pretty cheap, actually.

    You can also forward your Skype calls to a traditional phone or mobile. It won’t cost others any extra to call, and you simply pay the standard SkypeOut rate to call the number that you forward to.

    Tuesday, February 07, 2006

    Ajax JSP Tag Library

    Yesterday I found out that, there is a OpenSource project in SourceForge for Ajax JSP tags.

    AjaxTags is project name.

    It has got very nice examples and source code with that.

    Thanks to opensource community.

    Friday, February 03, 2006

    Spring and Hibernate in GlassFish

    Today I was checking to get latest Spring version, then found this blog entry at SpringFramework site.

    In the blog, Jerome Dochez, talks about how to implement Spring and Hibernate in GlassFish.

    Jerome Dochez is GlassFish architect and overall technical lead.

    Blog gives detail steps how to run Spring and Hibernate with GlassFish.

    Few days back, Matt Raible complained in his blog that Spring and Hibernate do not work in GlassFish.

    Jeorme take this technical challenge to prove Matt Raible is wrong.

    What is GlassFish Project?

    GlassFish is the name for the open source development project for bulding a Java EE 5 application server. It is based on the source code for Sun Java System Application Server PE 9 donated by Sun Microsystems and TopLink persistence code donated by Oracle. This project provides a structured process for developing a high quality application server that makes new features available faster than ever before. It is the response to Java developers who want access to the source code and the ability to contribute to the development of Sun's next generation application server which is based on GlassFish. This project is designed to encourage communication between Sun and Oracle engineers and the community and will enable all developers to participate in the application server development process.

    GlassFish is a free, open source application server which implements the newest features in the Java EE 5 platform (the next version of the J2EE platform). The Java EE 5 platform includes the latest versions of technologies such as such as JavaServer Pages(JSP) 2.1, JavaServer Faces(JSF) 1.2, Servlet 2.4, Enterprise JavaBeans 3.0, Java API for Web Services(JAX-WS) 2.0, Java Architecture for XML Binding(JAXB) 2.0, Web Services Metadata for the Java Platform 1.0, and many other new technologies.

    We can download now

    Thursday, February 02, 2006

    AJAX Toolkit Framework(ATF) Project

    The Eclipse community has accepted the AJAX Toolkit Framework (ATF) Project as a project proposal, to provide tooling support for AJAX. The framework is supposed to provide a basis for building tools for various AJAX projects (Dojo, Zimbra, and OpenRico are mentioned specifically) as modules under Eclipse.

    The framework as proposed will have two majour components: ATF Tools, which focus on JavaScript editing, debugging, and inspection, and the ATF Personality Framework, which focuses on specific API support.

    As the proposal suggests, typical use will involve using the ATF Personality Framework as a basis to provide support for a specific AJAX toolkit.

    Monday, January 30, 2006

    JasperReport with Hibernate

    Reporting Made Easy with JasperReports and Hibernate
    — JasperReports is a valuable and viable reporting solution for Java Web applications. It simplifies report generation through the use of XML report templates that are then compiled using the JasperReports engine for use in reporting modules. These compiled report templates can be filled by data received from a variety of sources including relational databases. JasperReports can be integrated into Web applications and create reports in several file formats including PDF and XLS.

    Friday, January 27, 2006

    AJAX Programming in BEA WebLogic Portal

    Ajax Programming in BEA WebLogic Portal, Part 1 by John Margaglione -- John Margaglione explains the rationale for using Ajax programming methods within the BEA WebLogic Portal environment, and offers some best practices and advice to avoid the many pitfalls awaiting the new Ajax programmer.

    AJAX Application Browser Functionality Standards - Dev2Dev

    Developing Ajax Applications That Preserve Standard Browser Functionality by Mark Schiefelbein -- Ajax applications are praised for their richness, interactivity, and responsiveness, which are achieved by loading data asynchronously using the XMLHttpRequest object instead of loading new pages. In this article, Mark Schiefelbein shows how to preserve standard browser history functionality while taking advantage of these Ajax features.

    Saturday, January 21, 2006

    Oracle XE - Free Database

    Hi

    Today from TomKyte blog, I came to know about Oracle XE - Free database from Oracle.
    • It is still in beta release.
    • Developers can download and test it.
    • It is Free and lightweight.

    It is very nice to know Oracle came with this lighweight database.

    I am going to install and test. Let me post what I found.

    This will be very useful for Java,PHP and .NET.

    Thursday, January 19, 2006

    Weblogic Portal Dynamic Business Logic

    Using the WebLogic Portal Rules Engine to Implement Dynamic Business Logic in a WebLogic Integration Process, Part 1 by Jitendra Gupta and Mark Miller, Venkatakrishnan Padmanabhan -- Agile business applications need to expose business logic in a way that is flexible and easily changed. Learn how to use the rules engine in WebLogic Portal to add flexibility to business processes defined in WebLogic Integration.

    Friday, January 13, 2006

    Free PDF converter Tool

    Last week I came to know FREE Pdf converter tool.

    It is available in http://www.primopdf.com

    • FREE PDF Converter - not a trial version.
    • Print to PDF from virtually any application.
    • Create PDF output optmized for print, screen, ebook, or prepress.
    • No annoying pop-up ads, no registration requirement - no catch!
    • High-quality, easy to use PDF creator for all users.

    Sunday, January 08, 2006