Hibernate has become the de-facto ORM (Object Relational Mapping) framework for most of the organizations today. It provides a very simple framework to overcome the cumbersome techniques involved with core JDBC implementations. Whenever there is a project based on database intrinsic activities it is advisable to use Hibernate than do JDBC coding. It saves a huge amount of time revolving around unnecessary chores.
Having said that, the major question which strikes anyone who does majorly JDBC is that how does a Hibernate DAO layer look like. Without looking at a practical implementation one cannot be easily convinced to work on it. This is the only compelling reason why I intended to write The Great Hibernate Tutorial.
This tutorial is aimed at those developers who want to Read the rest of this entry »
BEA had invited people across India for attending their TechDays sessions of which Adobe was the event partner. I had registered for it almost a month ago. It was held on May 9th Friday at The Leela, a five star hotel in Andheri, Mumbai. The timings for the session were from 9:00 am till 12:00 pm and no registration nor event fees were taken. Here is my experience about the entire event.
The session was primarily held for the developers community and less for the corporate. This provided a relief as there weren’t much marketing gimmicks being played and the speakers were purely techie guys which proved to be an onus. BEA has upgraded their Weblogic Server to version 10.2 and their Workshop too. I had worked on the BEA workshop studio and Aqualogic platform for ESB earlier. So my main interests lied in what new features these upgraded products had in their offerings. After having attending this session I am now all the more excited to work in the BEA platform.
Although many people were awestruck with the features and some felt jealous for continuing to work on the older versions at their workplace, one thing was going through the minds of many including mine. The question was as to what was the road map for these BEA products since now the acquisition by Oracle has got completed. There was a slight wave of concern over this merger on the current developers as well as for those who wanted to adopt to the BEA environment in future. Would Oracle continue to support active upgradation to these wonderful products or take away the key features from them to promote its own products? The concerns were raised higher during the session when the BEA guys told us that Read the rest of this entry »
The most common ways of deploying a web application to Tomcat are either straightaway copy the exploded war file structure to $CATALINA_HOME/webapps or to do the more cumbersome task of compiling the web application to a war file and then using the tomcat manager to upload it. Both ways are the most used ones. But did you know there are other ways to deploy a web application to Tomcat. If you consider production environments, then applications are deployed using the deployment commands, if at all Tomcat is used. They can be made more simpler using the ant tasks.
But I am not going to discuss the production environment over here. The topic under scrutiny is how would you deploy your web application virtually to Tomcat. For that we have to know what is virtual deployment and learn about its advantages.
What is virtual deployment?
Virtual deployment in simple terms means deploying a web application from a different physical location. In this case, you are not required to put the web application in its exploded war structure to the webapps directory. Most of the beginners, tend to develop their web applications directly in the webapps directory itself. This technique might prove the most simplest and the quickest but it is the most hazardous. This is because the moment you Undeploy the web application from Tomcat’s manager the web application gets Read the rest of this entry »
JavaWorld has published a useful research paper which discusses how to discern which design patterns and frameworks would work best for your enterprise applications, written by Chris Richardson. As a developer it is very essential to know about the different strategies one would adopt in a particular business scenario. This paper helps you in making important decisions about which design patterns would best suite a given set of requirements.
According to the research done by Chris for enterprise applications, here are some of the important points which the paper elaborates:
- Make use of the POJO approach, with lightweight frameworks like Hibernate for ORM and Spring AOP for transactional activities.
- EJB 3 makes it possible to have your business logic sit within your POJO and also make it run outside the container which makes it really usable.
- Implementing 3 tiers for an application which commonly include
- Presentation tier
- Business Interfaces for encapsulation + Business tier logic in classes
- Persistence tier for handling transactions and concurrency
- The design should involve,
- Modeling your business classes appropriately
- Code structuring principles for easier maintenance
While the above points are usually very well known amongst the developer community, it helps if you know which decisions should be taken when. Design patterns which have been established over the years play a key role in making such decisions. The white paper explains a few of the design patterns which are particularly mentioned when enterprise applications are into consideration.
I would like to enumerate here, some of the different design patterns which are Read the rest of this entry »
The question which majority of we developers ask always is “Which framework should I use for my application?” or “Which framework is the best to use?”
The answer to these questions always comes in as “it depends” because requirements differ project wise. It might not be the case that the project which you might be working on will be requiring the same framework used in the prior projects. Requirements vary all the time and the framework which comes very close for implementing the specified tasks would be the best framework for you.
Having said that it is important to list down the key points on why you choose a particular framework. It is never a good reason to choose a framework just because others say it is cool. Let us focus on the key points for deciding a framework. Keep in mind, I am not trying to impose the usage of suggested framework for any particular project. This is a topic of general discussion in case where you might be eager to try out a new framework but are stuck to the choice of framework to start from.
The key points which might help you to make your choice are Read the rest of this entry »
Most business in today’s open market are demanding their websites & web application to have multilingual support. This is in order to attract non-English speaking audiences to increase their customer base and make people comfortable using the application in their native language. But for this, it would require an existing business application to be customized to support native locale. The process of producing an application that can be localized for a particular country without any changes to the program code is called Internationalization.
Following are the list of things one needs to take care while making an application to implement Internationalization.
1. Producing Content in Unicode
You need to make sure that all files which contain the multilingual content are in Unicode format. By default most text editors will store your file in ASCII which does not support other language characters. So after saving any content in ASCII format and loading it, your browser might not be able to display correct text in native language. Here you need to convert the file from ASCII to UTF format.
For example, the steps required for doing this if you are using Read the rest of this entry »
With the news of mergers happening here and there round the globe the developer community is not far from getting affected. The latest news of Oracle and BEA acquisition is bound to leave developers amidst some sort of uncertainty as to why has this taken place at all and what effects will it have on them.
BEA is known for its well diversified technology stack of Weblogic Java Application Servers, SOA products and the Aqualogic suite of ESB and BPM products. Also to mention that BEA holds a strong integration of all the above suites into its Weblogic Workshop which has been built around the Eclipse platform.
Oracle on the other hand too has Read the rest of this entry »