SimpleDateFormat dateFormat = new SimpleDateFormat("yyMMddHHmmss");
Context initialContext = getInitialContext();
boolean clusteringEnabled = false;
ClusterRemote statelessBean = (ClusterRemote) initialContext.lookup("org.ow2.easybeans.examples.cluster.ClusterBeanAN"
+ "_" + ClusterRemote.class.getName() + "@Remote");
if (statelessBean instanceof CMIProxy) {
clusteringEnabled = true;
System.out.println("Clustering is enabled.");