Wednesday, September 06, 2006
Replacing line feeds with HTML breaks using JSTL
Java 5 StringValuedEnumUserType in Hibernate
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
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?
Tuesday, August 22, 2006
REST - Representational State Transfer
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
Read More
Working with Subselect in Hibernate
Read More
Oracle9i Archive Daily Features and Reqular expressions in Oracle database
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 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
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
Building Custom Java Server Face UI Components
Friday, August 11, 2006
MyFirstJSF application tutorial
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
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
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
OpenSource Ajax for JSF
Found that Ajax4jsf has nice features and it is OpenSource right now.
Wednesday, August 02, 2006
Java Mustang and Webservices sample code.
Check his weblog entry.
SCJP5 Resources and 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
Java6 - Beta 2 features
Monday, July 31, 2006
Click - Another Web Tier Framework
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
Read more about StAX in this link.
Java - Thread Local
CrazyBob.org has detail article about this.
Mashup
Part 1
Part 2
JUnit with Spring and database transaction
An Introduction to Java Persistence for Client-Side Developers
gives nice introduction to Java Persistence for Cleint-Side Developers.
Pro EJB 3.0 Java Persistence API - Sample Chapter
Thursday, July 20, 2006
Java5 Free sample chapters to read
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?
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
Sunday, July 16, 2006
Sematic Web
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
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?
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
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
Make the best use of the reporting capabilities in Oracle's free database development tool
by
Lewis R. Cunningham
Websphere Tutorials and Articles
Tuesday, July 11, 2006
Spring 2.0 AOP - Spruce Up Your Domain Model
Sunday, July 09, 2006
Websphere Portal resources
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 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
Saturday, July 01, 2006
How to put file per server in 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
<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
Spring PropertyPlaceholderConfigurer by techno.blog("Dion")
Externalizing Configuration with Spring by Stefan Kleineikenscheidt
Sending E-Mail with Spring
what is singleton?
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?
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.
Spring Framework MVC application step-by-step and Resources
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
Recommended Eclipse reading list
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
Tuesday, June 20, 2006
Cayenne
Other Object Relational Mapping frameworks are
Hibernate
IBATES by Apache
DALI by Eclipse
Thursday, June 15, 2006
Ajax 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
Implementing Google AJAX Search
SCJP 5 - Collections / Generics Resources
SOA Best Practices: The BPEL Cookbook - Oracle OTN
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
Hibernate External articles & tutorials
Demo Applications
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
These tutorials cover every thing from developing RCP applications, to web services, to using TPTP, to developing Eclipse plugins.
Thursday, June 08, 2006
Spring 2.0 - Preview
Spring Components - XML configuration on steroids
Spring 2.0: Hiding Services Behind Custom XML Schema (Part I)
Spring 2.0: Hiding Services Behind Custom XML Schema (Part II)
Spring 2.0 - XML Configuration on more steroids
Read article about Inversion of Control Containers and the Dependency Injection pattern
Nice introduction to The Spring Framework by Benoy Jose.
Wednesday, June 07, 2006
SysInternals - Freeware
SOAPUI - Desktop tool for WebServices
Friday, June 02, 2006
An Introduction to SIP
Dev2Dev - Managed File Transfer Capabilities in the WebLogic Platform
Dev2Dev - Java Portlet Tools: Converting Java Web Applications into Adaptive Portlets
Friday, May 26, 2006
Building an Ajax Memory Tree - from OTN
What is Reverse Ajax?
Wednesday, May 24, 2006
Google releases AJAX development toolkit
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 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
Wednesday, May 17, 2006
JavaOne 2006 - Day1
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?
Thursday, May 11, 2006
Live Clipboard – Ajax direction ?
Wednesday, May 10, 2006
WebLogic Portal 9.2
Two toolkits bring Ajax to Eclipse
Friday, May 05, 2006
Dali - Eclipse ORM
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
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
Read More
LdapTemplate: LDAP Programming in Java Made Simple
* 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
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
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
Thursday, March 30, 2006
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
* 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
Inversion of Control Containers and the Dependency Injection pattern
Sunday, March 12, 2006
Mid-tier Two Phase commit to Oracle
It has got source code and code snippet.
Friday, March 10, 2006
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
Wednesday, March 08, 2006
Eclipse Tips: Managing Eclipse Plugins
Spring Web Flow 1.0 EA 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
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).
information.
Friday, March 03, 2006
Bad Sql
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
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:
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.