Posts

Virtual Host Configuration in JBoss

Virtual Host Configuration in JBoss 6.1.0 EAP / Jboss7 COMMUNITY EDITION "Virtual Hosts" is a method to serve requests for multiple host names for example you access your website similar to real host names like http://trvajjala.in   If you want set virtual host to your application you need to follow below instructions. Configure Virtual Hosts in standalone.xml Open standalone.xml under ${JBOSS}/standalone/configuration folder and configure below virtual hosts configurations in one of subsystems. If you have multiple applications in the same server you can use separate virtual host entry. <subsystem xmlns="urn:jboss:domain:web:1.4" default-virtual-server="default-host" native="false">             <connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http"/>             <connector name="ajp...

Container Managed Security in tomcat 7

Image
Resources within web application can be secured with declarative syntax in the web.xml.   This is the easiest way to implement security layer for your web application. Three steps to add security to your web application Ø   prepare deployment descriptor  with security elements Ø   define roles and user credentials in the  conf/tomcat-users.xml  (in memory) Ø   add realm value in the conf/services.xml Prepare deployment descriptor with security elements There are three direct child elements for <web-app> root element which does this functionality inside the web.xml 1.   <security-constraint> 2.   <login-config> 3.   <security-role> 1.  security-constraint : A  security constraint  is used to define the access privileges to a collection of resources using their URL mapping. The following elements can be part of a security constraint: ...

Parcel Boundary Implementation for Android Applications

Image
Parcel Boundary Implementation for Android Applications Parcel Boundary Implementation for Android Applications Parcel boundaries are the precise GIS (Geographic Information System) coordinates of a piece of property. Overlaid on top of a satellite or aerial image, they show a mapped image of the exact boundaries of a lot. They allow a potential real estate buyer to "walk" the boundaries of a piece of property from an online map, seeing its proximity to streets and highways, distance from neighboring homes, and access to green space, streams and wooded areas. Below diagram represents how parcel boundaries are plotted on the map. Parcel boundaries do more than just provide a "bird’s eye view" of a piece of property. Once the GIS coordinates of a property are loaded into a map-based platform, they can be combined with additional data sets like school districts, neighborhood demographics and other location information. Governments use par...

Clustering Environment with Tomcat

Image
Configuring Clustering Environment in Tomcat7 What is Clustering : Connecting two or more computers together in such ways that they behave like a single computer. Clustering is used for parallel processing, load balancing and fault tolerance. Clustering is a popular strategy for implementing parallel processing applications because it enables companies to leverage the investment already made in PCs and workstations. In addition, it's relatively easy to add new CPUs simply by adding a new PC to the network. There are two types of clustering is possible 1.        Vertical Clustering 2.        Horizontal Clustering Vertical Clustering: installing multiple Java application servers on a single physical machine Horizontal Clustering: Horizontal clustering involves running multiple Java application servers that are run on two or more separate physical ma...