Initialization callback methods Springframework provides flexibility to initialize its Beans using the user defined methods. There is some scenario where application developer want to initialize the beans properties after setting all the values. The following example program demonstrates by defining a custom method to initialize the calues. Spring’s managed bean has to implement InitializingBean from …
Archives for July 2008
Writing simple ANT build script
Apache Ant Example This article explains how to write a very basic ANT build script. This does not explain indepth knowledge on building your project using ANT script. But, this writeup will be more useful for the beginners who haben’t writen any ANT script before. Before start writing the script, lets look into how to …
Implement Internationalization and Localization in JSF
Internationalization and Localization are important features for an web based application. Internationalization is implementing the features in your application to support multiple languages. Localization is creating text in a specific language that is presented through an internationalized application also read: Introduction to JSF JSF Interview Questions Request Processing Lifecycle phases in JSF The following example …
EJB 3.0 and WebServices
This article discusses how an enterprise bean can act as a Web-Service component. Since Web-Services itself is a vast technology, the first part of the article discusses more about Web-Services. Specifically, the first part of the article discusses what Web-Services are, its unique features among other related technologies, its architecture, and the various base components …
How to use datasource in Hibernate application?
This article explains how to configure datasource in the JBoss application server and how to use the same datasource in the hibernate configuration file.Before looking into the hibernate configuration, we will start with creating datasource inside JBoss application server. also read: WebLogic Interview Questions JBoss Portal Server Development Tomcat Interview Questions Create MySql datasource in …
Types of Managed Bean scopes in Spring Framework
This article presents the different scopes on Spring managed beans. This is one of the greatest advantage using spring’s managed beans. Every bean definition can be declared with different scopes. If you are the beginner learning the Spring Framework first time, please read our introduction articles on the Spring Framework : also read: Spring Tutorials Spring 4 Tutorials Spring Interview Questions …
How to lazy initialize Spring beans?
Lazy Initiation in Spring IOC As we know Spring’s bean factory is pre-initiate all the beans when first time creating the factory. This is good practice because if there is any dependency error everything can be resolved at the time of start up. This is not case in all the application scenarios. The following are the few drawbacks …
Use rich:datascroller for rich:dataTable pagination
rich:datascroller and rich:dataTable rich:dataTable tag is the RichFaces version for datatable component which has few extra features on look and feel.One of the difficulty JSF developers is creating good pagination for the data dsiplayed using rich:datatable. To resole this problem, RichFaces tags library provides rich:datascroller component which can display the automatic paginations based on data …