Powered by Blogger.

How to change Context-root of an application in MyEclipse

>> Sunday, January 19, 2014

Before going to develop a web application, make sure all the settings and properties of MyEclipse, java and tomcat settings. If you have any doubts while Configuring java in MyEclipse or Installing and configuring Tomcat in your local machine or Configure the Tomcat in your MyEclipse to develop your web application take a look at my previous posts.

How to change Context-root of an application_JavabynataraJ
Normally we work on the same project most of the time with the same application name(context-root). When ever we take a new workspace in our local machines we may confuse while deploying the application in Tomcat or any other server. Other wise we have to remove the old deployed project and deploy the latest project. To overcome this problem, we can change the Context-root of our application. So that we can deploy the same web application with different names.

When to use ensureCapacity method in java

>> Sunday, January 5, 2014

In java Colleciton framework ArrayList and Vector classes contains ensureCapacity(int minCapacity) method to reduce or manage the amount of incremental memory allocation.
When to use ensureCapacity method in java_javabynataraj
Each ArrayList instance has a capacity. The capacity is the size of the array used to store the elements in the list. It is always at least as large as the list size. As elements are added to an ArrayList, its capacity grows automatically.

An application can increase the capacity of an ArrayList instance before adding a large number of elements using the ensureCapacity operation. This may reduce the amount of incremental reallocation.

Related Posts Plugin for WordPress, Blogger...
© javabynataraj.blogspot.com from 2009 - 2022. All rights reserved.